mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-09 02:16:29 +00:00
Add apparmor skelleton (#556)
Co-authored-by: Tom Brien <TomBrien@users.noreply.github.com> Co-authored-by: Franck Nijhof <git@frenck.dev>
This commit is contained in:
parent
7a64a0b1ea
commit
7e15c2fa2f
@ -43,7 +43,29 @@ If you are in need of a guide on keeping a changelog, we would recommend checkin
|
|||||||
|
|
||||||
## AppArmor
|
## AppArmor
|
||||||
|
|
||||||
You can use own security profile for you Add-on with AppArmor. Default it is enabled and use the Docker default profile. Put `apparmor.txt` file into your Add-on folder and it will load this file as primary profile. Use the config options to set the name of that profile.
|
You can use own security profile for your add-on with AppArmor. By default it is enabled and uses the Docker default profile. Putting a `apparmor.txt` file into your add-on folder, will load that file as the primary profile instead. Use the config options to set the name of that profile.
|
||||||
|
|
||||||
|
apparmor.txt
|
||||||
|
```txt
|
||||||
|
#include <tunables/global>
|
||||||
|
|
||||||
|
profile ADDON_SLUG flags=(attach_disconnected,mediate_deleted) {
|
||||||
|
#include <abstractions/base>
|
||||||
|
|
||||||
|
# S6-Overlay
|
||||||
|
/bin/** ix,
|
||||||
|
/usr/bin/** ix,
|
||||||
|
/usr/lib/bashio/** ix,
|
||||||
|
/etc/s6/** ix,
|
||||||
|
/run/s6/** ix,
|
||||||
|
/etc/services.d/** rwix,
|
||||||
|
/etc/cont-init.d/** rwix,
|
||||||
|
/etc/cont-finish.d/** rwix,
|
||||||
|
|
||||||
|
# Data access
|
||||||
|
/data/** rw,
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
## Ingress
|
## Ingress
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user