apparmor/parser/tst/simple_tests/ptrace/ok_22.sd
Steve Beattie 5cf1c6973d parser: add ptrace language tests
This patch adds a bunch of language parsing tests for ptrace rules.

Signed-off-by: Steve Beattie <steve@nxnw.org>
Acked-by: John Johansen <john.johansen@canonical.com>
2014-04-23 12:25:45 -07:00

15 lines
388 B
Text

#
#=Description ptrace peer w/perms and misc modifiers rule
#=EXRESULT PASS
#
/usr/bin/foo {
deny ptrace read peer=/bin/sh,
allow ptrace write peer=/bin/true,
audit ptrace trace peer=/bin/false,
audit deny ptrace readby peer=/sbin/init,
audit allow ptrace tracedby peer=/usr/bin/gdb,
ptrace rw peer=/usr/bin/top,
deny ptrace (readby, tracedby) peer=/usr/bin/valgrind,
}