[apparmor] [patch] parser: add signal language tests

Seth Arnold seth.arnold at canonical.com
Sat Apr 26 00:39:43 UTC 2014


On Fri, Apr 25, 2014 at 03:59:31PM -0700, Steve Beattie wrote:
> This patch adds basic signal tests to the parser's simple language
> test suite.
> 
> Signed-off-by: Steve Beattie <steve at nxnw.org>

Acked-by: Seth Arnold <seth.arnold at canonical.com>

> Index: b/parser/tst/simple_tests/signal/ok_19.sd
> ===================================================================
> --- /dev/null
> +++ b/parser/tst/simple_tests/signal/ok_19.sd
> @@ -0,0 +1,11 @@
> +#
> +#=Description basic signal w/multiple signal set rule
> +#=EXRESULT PASS
> +#
> +/usr/bin/signal-test1 {
> +  signal set=hup set=int set=quit set=ill set=trap set=abrt set=bus
> +         set=fpe set=kill set=usr1 set=segv set=usr2 set=pipe set=alrm
> +         set=term set=stkflt set=chld set=cont set=stop set=stp
> +         set=ttin set=ttou set=urg set=xcpu set=xfsz set=vtalrm
> +         set=prof set=winch set=io set=pwr set=sys set=emt set=exists,
> +}

I was surprised by this and the other tests that multiple set= tokens are
accepted. I don't know if I actually want to argue that it shouldn't be
supported :) but I am surprised it worked.

Thanks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20140425/73e192df/attachment.pgp>


More information about the AppArmor mailing list