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

This patch adds basic signal tests to the parser's simple language test suite. Signed-off-by: Steve Beattie <steve@nxnw.org> Acked-by: Seth Arnold <seth.arnold@canonical.com>
19 lines
361 B
Text
19 lines
361 B
Text
#
|
|
#=Description basic signal w/regex peer
|
|
#=EXRESULT PASS
|
|
#
|
|
|
|
/usr/bin/signal-test1 {
|
|
signal (send) peer=/{**/,}bin/{sh,true},
|
|
|
|
}
|
|
|
|
/usr/bin/signal-test2 {
|
|
signal (receive) set=(fpe stop) peer=/sbin/{init,systend,upstart},
|
|
|
|
}
|
|
|
|
/usr/bin/signal-test3 {
|
|
audit deny signal receive set=(stop, int, usr1, usr2) peer=/**.{py,pl,rb},
|
|
signal receive set=(segv),
|
|
}
|