Hide Forgot
libreport version: 2.0.8 executable: /usr/bin/python hashmarkername: setroubleshoot kernel: 3.2.2-1.fc16.x86_64 reason: SELinux is preventing /lib/systemd/systemd-logind (deleted) from 'setattr' accesses on the None 002. time: Do 02 Feb 2012 16:43:52 CET description: :SELinux is preventing /lib/systemd/systemd-logind (deleted) from 'setattr' accesses on the None 002. : :***** Plugin catchall (100. confidence) suggests *************************** : :If you believe that systemd-logind (deleted) should be allowed setattr access on the 002 <Unbekannt> 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 systemd-logind /var/log/audit/audit.log | audit2allow -M mypol :# semodule -i mypol.pp : :Additional Information: :Source Context system_u:system_r:systemd_logind_t:s0 :Target Context system_u:object_r:svirt_image_t:s0:c363,c417 :Target Objects 002 [ None ] :Source systemd-logind :Source Path /lib/systemd/systemd-logind (deleted) :Port <Unbekannt> :Host (removed) :Source RPM Packages :Target RPM Packages :Policy RPM <Unbekannt> :Selinux Enabled True :Policy Type targeted :Enforcing Mode Enforcing :Host Name (removed) :Platform Linux (removed) 3.2.2-1.fc16.x86_64 #1 SMP Thu Jan : 26 03:21:58 UTC 2012 x86_64 x86_64 :Alert Count 5 :First Seen Do 02 Feb 2012 05:22:25 CET :Last Seen Do 02 Feb 2012 16:42:09 CET :Local ID c4beaa9e-8a05-461b-8f6a-380d2d0ef2bb : :Raw Audit Messages :type=AVC msg=audit(1328197329.853:1056): avc: denied { setattr } for pid=1022 comm="systemd-logind" name="002" dev=devtmpfs ino=12999 scontext=system_u:system_r:systemd_logind_t:s0 tcontext=system_u:object_r:svirt_image_t:s0:c363,c417 tclass=chr_filenode=(removed) type=SYSCALL msg=audit(1328197329.853:1056): arch=c000003e syscall=188 success=yes exit=0 a0=23bfd40 a1=3913e05d2b a2=23c0580 a3=2c items=0 ppid=1 pid=1022 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="systemd-logind" exe=2F6C69622F73797374656D642F73797374656D642D6C6F67696E64202864656C6574656429 subj=system_u:system_r:systemd_logind_t:s0 key=(null) : : :Hash: systemd-logind,systemd_logind_t,svirt_image_t,None,setattr : :audit2allow : : :audit2allow -R : :
This looks correct since we probably do not want systemd-logind changing the attributes of a usb device being used by a virtual machine.
*** Bug 795101 has been marked as a duplicate of this bug. ***
Should we dontaudit this then?
Probably but I don't beleive that systemd-logind should be attempting to set attributes on a device that is currently being used.
Lets see if we get others. You can dontudit them using # grep systemd-logind /var/log/audit/audit.log | audit2allow -D -M mypol # semodule -i mypol.pp