feat(profile): aa-log - move call to journalctl to a subprofile.
This commit is contained in:
parent
fbbf68f0ee
commit
e73ea12cea
1 changed files with 20 additions and 7 deletions
|
|
@ -16,21 +16,34 @@ profile aa-log @{exec_path} {
|
||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
|
||||||
@{bin}/journalctl rix,
|
@{bin}/journalctl rCx -> journalctl,
|
||||||
|
|
||||||
/etc/machine-id r,
|
|
||||||
/var/lib/dbus/machine-id r,
|
|
||||||
|
|
||||||
/var/log/audit/* r,
|
/var/log/audit/* r,
|
||||||
/var/log/syslog* r,
|
/var/log/syslog* r,
|
||||||
|
|
||||||
/{run,var}/log/journal/ r,
|
|
||||||
/{run,var}/log/journal/@{hex32}/{,*} r,
|
|
||||||
|
|
||||||
@{sys}/kernel/mm/transparent_hugepage/hpage_pmd_size r,
|
@{sys}/kernel/mm/transparent_hugepage/hpage_pmd_size r,
|
||||||
|
|
||||||
/dev/tty@{int} rw,
|
/dev/tty@{int} rw,
|
||||||
|
|
||||||
|
profile journalctl {
|
||||||
|
include <abstractions/base>
|
||||||
|
include <abstractions/consoles>
|
||||||
|
|
||||||
|
capability sys_resource,
|
||||||
|
|
||||||
|
@{bin}/journalctl mr,
|
||||||
|
|
||||||
|
/etc/machine-id r,
|
||||||
|
/var/lib/dbus/machine-id r,
|
||||||
|
|
||||||
|
/{run,var}/log/journal/ r,
|
||||||
|
/{run,var}/log/journal/@{hex32}/{,*} r,
|
||||||
|
|
||||||
|
@{PROC}/sys/kernel/random/boot_id r,
|
||||||
|
|
||||||
|
include if exists <local/aa-log_journalctl>
|
||||||
|
}
|
||||||
|
|
||||||
include if exists <local/aa-log>
|
include if exists <local/aa-log>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue