This commit is contained in:
2023-08-25 03:59:01 +02:00
parent 4217b38853
commit 38e420ff8e
2 changed files with 4 additions and 18 deletions

View File

@@ -3,7 +3,7 @@
# Systemd Journal location
@{journald}=/{run,var}/log/journal/{,**}
profile promtail flags=(attach_disconnected,mediate_deleted) {
profile hassio_promtail flags=(attach_disconnected,mediate_deleted) {
#include <abstractions/base>
# Capabilities
@@ -42,7 +42,6 @@ profile promtail flags=(attach_disconnected,mediate_deleted) {
# Start new profile for service
/usr/bin/promtail cx -> promtail_profile,
/usr/bin/yq cx -> yq_profile,
profile promtail_profile flags=(attach_disconnected,mediate_deleted) {
include <abstractions/base>
@@ -64,13 +63,14 @@ profile promtail_profile flags=(attach_disconnected,mediate_deleted) {
/data/promtail/** rwk,
# Config & log data
@{do_etc}/promtail/config.yaml r,
@{do_etc}/promtail/* rw,
/config/promtail/{,**} r,
/{share,ssl}/** r,
@{journald} r,
# Runtime usage
/usr/bin/promtail rm,
/usr/bin/yq rm,
@{do_etc}/{hosts,passwd} r,
@{do_etc}/{resolv,nsswitch}.conf r,
@{PROC}/sys/net/core/somaxconn r,
@@ -78,18 +78,4 @@ profile promtail_profile flags=(attach_disconnected,mediate_deleted) {
/dev/null k,
@{do_etc}/ssl/certs/** r,
}
profile yq_profile flags=(attach_disconnected,mediate_deleted) {
include <abstractions/base>
# Config files
@{do_etc}/promtail/* rw,
/config/promtail/{,**} r,
/share/** r,
# Runtime usage
/usr/bin/yq rm,
@{sys}/kernel/mm/transparent_hugepage/hpage_pmd_size r,
/dev/null k,
}
}