I'm using Ubuntu 12.04 amd64, kernel 3.2.26 patched with grsecurity-2.9.1-3.2.26-201208062017 and RBAC enabled.
I've encountered a problem with cups printing system. When trying to print cupsd fails to execute backend subprocess and grsec reports:
- Code: Select all
grsec: (root:U:/usr/sbin/cupsd) denied ptrace of /usr/lib/cups/backend/ipp14 by /usr/lib/cups/backend/ipp14[cupsd:7659] uid/euid:0/0 gid/egid:7/7, parent /usr/sbin/cupsd[cupsd:7394] uid/euid:0/0 gid/egid:0/0
The strange thing is that cupsd is not doing any ptrace calls - just plain execve() of ipp14.
It gets even better - if I attach strace (running from admin role) to cupsd process everything works correctly - after detaching ptrace error comes back.
Adding 'r' subject flag to /usr/sbin/cupsd doesn't change anything.
I've seen this error before with different processes (e.g. udev executed from init), so it's not specific to cups, but it's a good reproducible test case.
Let me know if you need more info, I'll be more than happy to debug this further.