2013-09-22 15:01:34 +05:30
|
|
|
# A simple test comment which will persist
|
|
|
|
#include <tunables/global>
|
|
|
|
|
2020-05-04 21:17:36 +02:00
|
|
|
#include if exists <tunables/nothing>
|
|
|
|
|
2020-05-14 21:56:44 +02:00
|
|
|
#include if exists <tunables/global>
|
|
|
|
include if exists <tunables/global>
|
2020-05-04 21:17:36 +02:00
|
|
|
|
2018-05-06 19:35:22 +02:00
|
|
|
alias /foo -> /bar ,
|
|
|
|
|
2018-05-31 21:57:13 +02:00
|
|
|
@{xy} = y x
|
|
|
|
|
2018-09-26 22:09:17 +02:00
|
|
|
abi <abi/4.19> ,
|
|
|
|
|
2018-05-31 21:57:13 +02:00
|
|
|
@{asdf} = foo ""
|
|
|
|
|
2020-12-25 17:55:15 +01:00
|
|
|
$foo = false
|
|
|
|
|
|
|
|
$bar = true
|
|
|
|
|
2013-09-22 15:01:34 +05:30
|
|
|
/usr/bin/a/simple/cleanprof/test/profile {
|
2020-11-19 12:30:04 -08:00
|
|
|
# Just for the heck of it, this comment won't see the day of light
|
2013-09-22 15:08:30 +05:30
|
|
|
#include <abstractions/base>
|
2016-02-21 21:34:31 +01:00
|
|
|
|
2020-05-03 13:58:37 +02:00
|
|
|
#include if exists <foo>
|
2020-05-13 21:45:00 +02:00
|
|
|
#include if exists <abstractions/base>
|
|
|
|
include <abstractions/base>
|
2020-05-03 13:58:37 +02:00
|
|
|
|
2016-02-21 21:34:31 +01:00
|
|
|
capability sys_admin,
|
|
|
|
audit capability,
|
|
|
|
|
|
|
|
change_profile -> /bin/foo,
|
|
|
|
change_profile,
|
|
|
|
|
|
|
|
network inet stream,
|
2018-09-26 22:09:17 +02:00
|
|
|
abi "abi/4.20" ,
|
2016-02-21 21:34:31 +01:00
|
|
|
network stream,
|
|
|
|
|
2013-09-22 15:08:30 +05:30
|
|
|
#Below rule comes from abstractions/base
|
|
|
|
allow /usr/share/X11/locale/** r,
|
2013-09-22 15:01:34 +05:30
|
|
|
allow /home/*/** r,
|
2015-06-19 21:25:39 +02:00
|
|
|
|
2016-02-21 21:34:31 +01:00
|
|
|
ptrace tracedby peer=/bin/strace,
|
|
|
|
ptrace tracedby,
|
2015-12-17 23:47:08 +01:00
|
|
|
unix (receive) type=dgram,
|
|
|
|
|
2016-05-23 23:21:13 +02:00
|
|
|
dbus send bus=session,
|
|
|
|
dbus send bus=session peer=(label=foo),
|
|
|
|
|
2021-04-12 13:02:58 +02:00
|
|
|
profile test_child /foobar {
|
|
|
|
/etc/child rw,
|
|
|
|
}
|
|
|
|
|
2016-02-21 21:34:31 +01:00
|
|
|
set rlimit nofile <= 256,
|
|
|
|
set rlimit nofile <= 64,
|
|
|
|
|
|
|
|
signal set=(hup int quit ill trap abrt)
|
|
|
|
set=(bus,fpe,,,kill,usr1)
|
|
|
|
set=segv set=usr2 set=pipe set=alrm set=term set=stkflt set=chld,
|
|
|
|
signal set=(hup int quit),
|
|
|
|
|
2015-06-19 21:25:39 +02:00
|
|
|
^foo {
|
|
|
|
/etc/fstab r,
|
|
|
|
capability dac_override,
|
|
|
|
}
|
|
|
|
|
|
|
|
^foo, # hat declarations are obsolete and will be removed when aa-cleanprof or aa-logprof writes the profile
|
|
|
|
|
2018-05-09 21:57:37 +02:00
|
|
|
mount options=(rw,suid) /c -> /3,
|
|
|
|
|
2021-05-23 18:19:28 +02:00
|
|
|
hat bar {
|
|
|
|
/etc/passwd r,
|
|
|
|
capability sys_admin,
|
|
|
|
}
|
|
|
|
|
2018-05-09 21:57:37 +02:00
|
|
|
pivot_root oldroot=/mnt/root/old/,
|
|
|
|
|
2019-04-22 23:41:08 +02:00
|
|
|
deny owner link /some/thing -> /foo/bar ,
|
2018-05-09 21:57:37 +02:00
|
|
|
unix shutdown addr=@HypotheticalServiceDaemon,
|
2015-06-19 21:25:39 +02:00
|
|
|
|
2018-05-06 14:51:19 +02:00
|
|
|
link subset /alpha/beta -> /tmp/**,
|
|
|
|
|
2013-09-22 15:01:34 +05:30
|
|
|
allow /home/foo/bar r,
|
|
|
|
allow /home/foo/** w,
|
|
|
|
}
|
|
|
|
|
|
|
|
/usr/bin/other/cleanprof/test/profile {
|
|
|
|
# This one shouldn't be affected by the processing
|
|
|
|
# However this comment will be wiped, need to change that
|
|
|
|
allow /home/*/** rw,
|
|
|
|
allow /home/foo/bar r,
|
2015-06-19 21:25:39 +02:00
|
|
|
}
|
2018-12-09 20:54:41 +01:00
|
|
|
|
|
|
|
/what/ever/xattr xattrs=( foo=bar )
|
|
|
|
flags=( complain
|
|
|
|
) {
|
|
|
|
/what/ever r,
|
|
|
|
}
|