mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-22 01:57:43 +00:00
The new option --show-matching-path shows a path that matches in the host filesystem, to prove that the profile is indeed used. Also, profiles' xattrs are now parsed into a dict and are taken in consideration when looking for matching profiles. Signed-off-by: Maxime Bélair <maxime.belair@canonical.com>
89 lines
1.3 KiB
Plaintext
89 lines
1.3 KiB
Plaintext
abi <abi/4.19>,
|
|
|
|
alias /foo -> /bar,
|
|
|
|
include <tunables/global>
|
|
include if exists <tunables/nothing>
|
|
|
|
@{xy} = x y
|
|
@{asdf} = "" foo
|
|
|
|
$foo = false
|
|
$bar = true
|
|
|
|
/bin/bar///bin/baz {
|
|
/home/pathchild w,
|
|
|
|
}
|
|
# A simple test comment which will persist
|
|
|
|
|
|
/usr/bin/a/simple/cleanprof/test/profile {
|
|
abi "abi/4.20",
|
|
|
|
include <abstractions/base>
|
|
include if exists <foo>
|
|
|
|
set rlimit nofile <= 256,
|
|
|
|
audit capability,
|
|
|
|
network stream,
|
|
|
|
dbus send bus=session,
|
|
|
|
mount options=(rw, suid) /c -> /3,
|
|
|
|
signal set=(abrt alrm bus chld fpe hup ill int kill pipe quit segv stkflt term trap usr1 usr2),
|
|
|
|
pivot_root oldroot=/mnt/root/old/,
|
|
|
|
unix (receive) type=dgram,
|
|
|
|
deny owner link /some/thing -> /foo/bar,
|
|
|
|
allow /home/*/** r,
|
|
allow /home/foo/** w,
|
|
link subset /alpha/beta -> /tmp/**,
|
|
|
|
change_profile,
|
|
|
|
|
|
hat bar {
|
|
capability sys_admin,
|
|
|
|
/etc/passwd r,
|
|
|
|
}
|
|
|
|
^foo {
|
|
capability dac_override,
|
|
|
|
/etc/fstab r,
|
|
|
|
}
|
|
|
|
profile test_child /foobar {
|
|
/etc/child rw,
|
|
|
|
}
|
|
}
|
|
|
|
/usr/bin/a/simple/cleanprof/test/profile//child {
|
|
/home/test-child r,
|
|
|
|
}
|
|
/usr/bin/other/cleanprof/test/profile {
|
|
allow /home/*/** rw,
|
|
allow /home/foo/bar r,
|
|
|
|
}
|
|
/what/ever/xattr xattrs=(foo=bar) flags=( complain ) {
|
|
/what/ever r,
|
|
|
|
}
|
|
profile foo//bar {
|
|
/home/namedchild r,
|
|
|
|
}
|