mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-28 11:36:32 +00:00
Fix AppArmor cache path (#3272)
This commit is contained in:
parent
3c52f87cdc
commit
da246dc40a
@ -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(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user