fix
This commit is contained in:
@@ -26,31 +26,28 @@ profile hassio_promtail flags=(attach_disconnected,mediate_deleted) {
|
|||||||
# S6-Overlay
|
# S6-Overlay
|
||||||
/init rix,
|
/init rix,
|
||||||
/bin/** rix,
|
/bin/** rix,
|
||||||
/usr/bin/** rix,
|
@{do_usr}/bin/** rix,
|
||||||
/usr/sbin/** rix,
|
@{do_usr}/sbin/** rix,
|
||||||
|
@{do_etc}/* rw,
|
||||||
@{do_etc}/s6*/** r,
|
@{do_etc}/s6*/** r,
|
||||||
@{do_etc}/fix-attrs.d/{,**} r,
|
@{do_etc}/fix-attrs.d/{,**} r,
|
||||||
@{do_etc}/cont-{init,finish}.d/{,**} rwix,
|
@{do_etc}/cont-{init,finish}.d/{,**} rwix,
|
||||||
@{do_etc}/services.d/{,**} rwix,
|
@{do_etc}/services.d/{,**} rwix,
|
||||||
@{do_run}/{s6,s6-rc*,service}/** rix,
|
|
||||||
/command/** rix,
|
|
||||||
/package/** rix,
|
|
||||||
@{do_run}/{,**} rwk,
|
|
||||||
/dev/tty rw,
|
|
||||||
@{do_usr}/lib/locale/{,**} r,
|
|
||||||
@{do_etc}/ssl/openssl.cnf r,
|
@{do_etc}/ssl/openssl.cnf r,
|
||||||
@{do_etc}/{group,hosts,passwd} r,
|
@{do_etc}/{group,hosts,passwd} r,
|
||||||
@{do_etc}/{host,nsswitch,resolv}.conf r,
|
@{do_etc}/{host,nsswitch,resolv}.conf r,
|
||||||
/dev/null k,
|
@{do_run}/{s6,s6-rc*,service}/** rix,
|
||||||
|
@{do_run}/{,**} rwk,
|
||||||
# https://github.com/hassio-addons/addon-debian-base/blob/main/base/rootfs/etc/cont-init.d/02-set-timezone.sh
|
@{do_usr}/lib/locale/{,**} r,
|
||||||
# Wants to link /etc/localtime but apparmor sees a random hash so * it is.
|
|
||||||
@{do_etc}/* rw,
|
|
||||||
@{do_usr}/share/{,**} r,
|
@{do_usr}/share/{,**} r,
|
||||||
|
/dev/tty rw,
|
||||||
|
/dev/null k,
|
||||||
/var/cache/{,**} rw,
|
/var/cache/{,**} rw,
|
||||||
|
/command/** rix,
|
||||||
|
/package/** rix,
|
||||||
|
|
||||||
# Bashio
|
# Bashio
|
||||||
/usr/lib/bashio/** ix,
|
@{do_usr}/lib/bashio/** ix,
|
||||||
/tmp/** rw,
|
/tmp/** rw,
|
||||||
|
|
||||||
# Options.json & addon data
|
# Options.json & addon data
|
||||||
@@ -64,11 +61,11 @@ profile hassio_promtail flags=(attach_disconnected,mediate_deleted) {
|
|||||||
@{journald} r,
|
@{journald} r,
|
||||||
|
|
||||||
# Programs
|
# Programs
|
||||||
/usr/bin/promtail cx -> promtail,
|
@{do_usr}/bin/promtail cx -> promtail_profile,
|
||||||
/usr/bin/yq Cx,
|
@{do_usr}/bin/yq Cx,
|
||||||
/usr/sbin/dpkg-reconfigure Cx,
|
@{do_usr}/sbin/dpkg-reconfigure Cx,
|
||||||
|
|
||||||
profile promtail flags=(attach_disconnected,mediate_deleted) {
|
profile promtail_profile flags=(attach_disconnected,mediate_deleted) {
|
||||||
include <abstractions/base>
|
include <abstractions/base>
|
||||||
|
|
||||||
# Receive signals from s6
|
# Receive signals from s6
|
||||||
@@ -94,7 +91,7 @@ profile hassio_promtail flags=(attach_disconnected,mediate_deleted) {
|
|||||||
@{journald} r,
|
@{journald} r,
|
||||||
|
|
||||||
# Runtime usage
|
# Runtime usage
|
||||||
/usr/bin/promtail rm,
|
@{do_usr}/bin/promtail rm,
|
||||||
@{do_etc}/{hosts,passwd} r,
|
@{do_etc}/{hosts,passwd} r,
|
||||||
@{do_etc}/{resolv,nsswitch}.conf r,
|
@{do_etc}/{resolv,nsswitch}.conf r,
|
||||||
@{PROC}/sys/net/core/somaxconn r,
|
@{PROC}/sys/net/core/somaxconn r,
|
||||||
@@ -112,7 +109,7 @@ profile hassio_promtail flags=(attach_disconnected,mediate_deleted) {
|
|||||||
/share/** r,
|
/share/** r,
|
||||||
|
|
||||||
# Runtime usage
|
# Runtime usage
|
||||||
/usr/bin/yq rm,
|
@{do_usr}/bin/yq rm,
|
||||||
@{sys}/kernel/mm/transparent_hugepage/hpage_pmd_size r,
|
@{sys}/kernel/mm/transparent_hugepage/hpage_pmd_size r,
|
||||||
/dev/null k,
|
/dev/null k,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user