SELinux is preventing /usr/sbin/gpsd from using the sys_ptrace capability. ***** Plugin catchall (100. confidence) suggests *************************** If you believe that gpsd should have the sys_ptrace capability by default. Then you should report this as a bug. You can generate a local policy module to allow this access. Do allow this access for now by executing: # grep gpsd /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp Additional Information: Source Context system_u:system_r:gpsd_t:s0 Target Context system_u:system_r:gpsd_t:s0 Target Objects [ capability ] Source gpsd Source Path /usr/sbin/gpsd Port <Unknown> Host ipa Source RPM Packages gpsd-3.5-2.fc18.i686 Target RPM Packages Policy RPM selinux-policy-3.11.1-91.fc18.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Permissive Host Name ipa Platform Linux ipa 3.8.8-202.fc18.i686.PAE #1 SMP Wed Apr 17 23:36:49 UTC 2013 i686 i686 Alert Count 1 First Seen 2013-04-20 14:15:17 CEST Last Seen 2013-04-20 14:15:17 CEST Local ID c7b7eb25-34e5-4880-abe3-ef1824be5787 Raw Audit Messages type=AVC msg=audit(1366460117.426:126): avc: denied { sys_ptrace } for pid=1663 comm="gpsd" capability=19 scontext=system_u:system_r:gpsd_t:s0 tcontext=system_u:system_r:gpsd_t:s0 tclass=capability type=SYSCALL msg=audit(1366460117.426:126): arch=i386 syscall=readlink success=yes exit=EBADF a0=bfcc541c a1=bfcc545c a2=40 a3=bfcc541c items=0 ppid=1 pid=1663 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=gpsd exe=/usr/sbin/gpsd subj=system_u:system_r:gpsd_t:s0 key=(null) Hash: gpsd,gpsd_t,gpsd_t,capability,sys_ptrace audit2allow #============= gpsd_t ============== allow gpsd_t self:capability sys_ptrace; audit2allow -R require { type gpsd_t; class capability sys_ptrace; } #============= gpsd_t ============== allow gpsd_t self:capability sys_ptrace;
Disabled some of my old custom fixes to the policy, and this one shows up when I restart gpsd via systemctl
b93d96bbd97dd86c9a9956c06ae23c23c963867b adds a dontaudit in git. I don't think gpsd actually needs this access.
selinux-policy-3.11.1-92.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-92.fc18
Package selinux-policy-3.11.1-92.fc18: * should fix your issue, * was pushed to the Fedora 18 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing selinux-policy-3.11.1-92.fc18' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-6769/selinux-policy-3.11.1-92.fc18 then log in and leave karma (feedback).
selinux-policy-3.11.1-92.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report.