mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-08-07 21:52:29 +02:00
- Add `capability sys_chroot` to all add-on AppArmor profiles (prophylactic fix; required by any service that uses privilege-separation chroot, e.g. sshd, Elasticsearch JVM, postgres) - Fix AppArmor profile name collisions where add-ons had copy-pasted a wrong profile name (inadyn_addon, db21ed7f_qbittorrent, radarr_addon, db21ed7f_scrutiny, addon_db21ed7f_emby_nas, addon_updater, chromium_addon, fireflyiii_addon, webtop_addon, joplin, gitea_addon) causing AppArmor to silently apply the wrong profile No version bumps — profiles apply on next add-on update. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01V7P3Nbem7n9FqGTXrLMadP
36 lines
644 B
Plaintext
36 lines
644 B
Plaintext
#include <tunables/global>
|
|
|
|
profile netalertx_addon flags=(attach_disconnected,mediate_deleted) {
|
|
#include <abstractions/base>
|
|
|
|
capability chown,
|
|
capability dac_override,
|
|
capability fowner,
|
|
capability net_admin,
|
|
capability net_raw,
|
|
capability setgid,
|
|
capability setuid,
|
|
capability sys_chroot,
|
|
file,
|
|
signal,
|
|
mount,
|
|
remount,
|
|
umount,
|
|
network,
|
|
ptrace,
|
|
|
|
/init ix,
|
|
/run/{s6,s6-rc*,service}/** ix,
|
|
/package/** ix,
|
|
/command/** ix,
|
|
/bin/** ix,
|
|
/usr/bin/** ix,
|
|
/usr/lib/bashio/** ix,
|
|
/etc/s6/** rix,
|
|
/run/s6/** rix,
|
|
/etc/services.d/** rwix,
|
|
/etc/cont-init.d/** rwix,
|
|
/etc/cont-finish.d/** rwix,
|
|
}
|
|
|