mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-07 01:41:00 +01:00

Provide example rules in parser.conf to pin pre 3.0 policy and appropriate abi files. abis for vanilla upstream kernels and outoftree network patched kernels are provided. With both ABIs dropping v8 support from advertised by the kernel as 2.x policy/userspace did not support it. MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/598 Acked-by: Steve Beattie <steve.beattie@canonical.com> Signed-off-by: John Johansen <john.johansen@canonical.com>
68 lines
1.3 KiB
Text
68 lines
1.3 KiB
Text
query {label {multi_transaction {yes
|
|
}
|
|
data {yes
|
|
}
|
|
perms {allow deny audit quiet
|
|
}
|
|
}
|
|
}
|
|
signal {mask {hup int quit ill trap abrt bus fpe kill usr1 segv usr2 pipe alrm term stkflt chld cont stop stp ttin ttou urg xcpu xfsz vtalrm prof winch io pwr sys emt lost
|
|
}
|
|
}
|
|
ptrace {mask {read trace
|
|
}
|
|
}
|
|
caps {mask {chown dac_override dac_read_search fowner fsetid kill setgid setuid setpcap linux_immutable net_bind_service net_broadcast net_admin net_raw ipc_lock ipc_owner sys_module sys_rawio sys_chroot sys_ptrace sys_pacct sys_admin sys_boot sys_nice sys_resource sys_time sys_tty_config mknod lease audit_write audit_control setfcap mac_override mac_admin syslog wake_alarm block_suspend audit_read
|
|
}
|
|
}
|
|
rlimit {mask {cpu fsize data stack core rss nproc nofile memlock as locks sigpending msgqueue nice rtprio rttime
|
|
}
|
|
}
|
|
capability {0xffffff
|
|
}
|
|
namespaces {pivot_root {no
|
|
}
|
|
profile {yes
|
|
}
|
|
}
|
|
mount {mask {mount umount pivot_root
|
|
}
|
|
}
|
|
}
|
|
file {mask {create read write exec append mmap_exec link lock
|
|
}
|
|
}
|
|
domain {version {1.2
|
|
}
|
|
attach_conditions {xattr {yes
|
|
}
|
|
}
|
|
computed_longest_left {yes
|
|
}
|
|
post_nnp_subset {yes
|
|
}
|
|
fix_binfmt_elf_mmap {yes
|
|
}
|
|
stack {yes
|
|
}
|
|
change_profile {yes
|
|
}
|
|
change_onexec {yes
|
|
}
|
|
change_hatv {yes
|
|
}
|
|
change_hat {yes
|
|
}
|
|
}
|
|
policy {set_load {yes
|
|
}
|
|
versions {v8 {yes
|
|
}
|
|
v7 {yes
|
|
}
|
|
v6 {yes
|
|
}
|
|
v5 {yes
|
|
}
|
|
}
|
|
}
|