Fix AppArmor cache path (#3272)

This commit is contained in:
Pascal Vizeli 2021-10-27 15:59:28 +02:00 committed by GitHub
parent 3c52f87cdc
commit da246dc40a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -126,7 +126,7 @@ class AppArmorControl(CoreSysAttributes):
try: try:
await self.sys_dbus.agent.apparmor.load_profile( await self.sys_dbus.agent.apparmor.load_profile(
self.sys_config.path_extern_apparmor.joinpath(profile_name), self.sys_config.path_extern_apparmor.joinpath(profile_name),
self.sys_config.path_apparmor_cache, self.sys_config.path_extern_apparmor_cache,
) )
except DBusError as err: except DBusError as err:
raise HostAppArmorError( raise HostAppArmorError(
@ -138,7 +138,7 @@ class AppArmorControl(CoreSysAttributes):
try: try:
await self.sys_dbus.agent.apparmor.unload_profile( await self.sys_dbus.agent.apparmor.unload_profile(
self.sys_config.path_extern_apparmor.joinpath(profile_name), self.sys_config.path_extern_apparmor.joinpath(profile_name),
self.sys_config.path_apparmor_cache, self.sys_config.path_extern_apparmor_cache,
) )
except DBusError as err: except DBusError as err:
raise HostAppArmorError( raise HostAppArmorError(