mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-08-06 05:02:30 +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
44 lines
824 B
Plaintext
44 lines
824 B
Plaintext
#include <tunables/global>
|
|
|
|
profile bentopdf flags=(attach_disconnected,mediate_deleted) {
|
|
#include <abstractions/base>
|
|
capability sys_chroot,
|
|
|
|
# Capabilities
|
|
file,
|
|
signal (send) set=(kill,term,int,hup,cont),
|
|
|
|
# S6-Overlay
|
|
/init ix,
|
|
/bin/** ix,
|
|
/usr/bin/** ix,
|
|
/run/{s6,s6-rc*,service}/** ix,
|
|
/package/** ix,
|
|
/command/** ix,
|
|
/etc/services.d/** rwix,
|
|
/etc/cont-init.d/** rwix,
|
|
/etc/cont-finish.d/** rwix,
|
|
/run/{,**} rwk,
|
|
/dev/tty rw,
|
|
|
|
# Bashio
|
|
/usr/lib/bashio/** ix,
|
|
/tmp/** rwk,
|
|
|
|
# App data
|
|
/data/** rw,
|
|
|
|
# nginx
|
|
/usr/sbin/nginx ix,
|
|
/etc/nginx/** r,
|
|
/usr/share/nginx/** r,
|
|
/var/lib/nginx/** rw,
|
|
/var/log/nginx/** rw,
|
|
/run/nginx/** rw,
|
|
|
|
# Deny dangerous kernel interfaces
|
|
deny /proc/kcore rwklx,
|
|
deny /proc/sysrq-trigger rwklx,
|
|
deny /sys/firmware/** rwklx,
|
|
}
|