apparmor.d/tests/string.aa

43 lines
1.1 KiB
Plaintext
Raw Normal View History

# Simple test profile for the AppArmorProfile.String() method
abi <abi/4.0>,
alias /mnt/usr -> /usr,
2023-09-29 21:28:56 +02:00
include <tunables/global>
2023-10-01 20:12:27 +02:00
@{exec_path} = @{bin}/foo @{lib}/foo
profile foo @{exec_path} xattrs=(security.tagged=allowed) flags=(complain attach_disconnected) {
include <abstractions/base>
include <abstractions/nameservice-strict>
set rlimit nproc <= 200,
capability dac_read_search,
capability dac_override,
network inet stream,
network inet6 stream,
mount fstype=fuse.portal options=(rw rbind) @{run}/user/@{uid}/ -> /,
umount @{run}/user/@{uid}/,
signal (receive) set=(term) peer=at-spi-bus-launcher,
ptrace (read) peer=nautilus,
unix (send receive) type=stream addr=@/tmp/.ICE-unix/1995 peer=(label=gnome-shell, addr=none),
dbus bind bus=session name=org.gnome.*,
dbus receive bus=system path=/org/freedesktop/DBus
interface=org.freedesktop.DBus
member=AddMatch
peer=(name=:1.3, label=power-profiles-daemon),
/opt/intel/oneapi/compiler/*/linux/lib/*.so./* rm,
@{PROC}/@{pid}/task/@{tid}/comm rw,
@{sys}/devices/pci[0-9]*/**/class r,
include if exists <local/foo>
}