libreport version: 2.0.10 executable: /usr/bin/python2.7 hashmarkername: setroubleshoot kernel: 3.5.0-2.fc17.x86_64 time: ven. 03 août 2012 10:13:17 RET description: :SELinux is preventing /usr/bin/kdm from 'getattr' accesses on the file /boot/grub2/grub.cfg. : :***** Plugin catchall (100. confidence) suggests *************************** : :If you believe that kdm should be allowed getattr access on the grub.cfg file 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 kdm /var/log/audit/audit.log | audit2allow -M mypol :# semodule -i mypol.pp : :Additional Information: :Source Context system_u:system_r:xdm_t:s0-s0:c0.c1023 :Target Context unconfined_u:object_r:boot_t:s0 :Target Objects /boot/grub2/grub.cfg [ file ] :Source kdm :Source Path /usr/bin/kdm :Port <Inconnu> :Host (removed) :Source RPM Packages kdm-4.8.4-1.fc17.x86_64 :Target RPM Packages grub2-2.0-0.37.beta6.fc17.x86_64 :Policy RPM selinux-policy-3.10.0-142.fc17.noarch :Selinux Enabled True :Policy Type targeted :Enforcing Mode Permissive :Host Name (removed) :Platform Linux (removed) 3.4.6-2.fc17.x86_64 #1 : SMP Thu Jul 19 22:54:16 UTC 2012 x86_64 x86_64 :Alert Count 1 :First Seen ven. 03 août 2012 09:25:09 RET :Last Seen ven. 03 août 2012 09:25:09 RET :Local ID 80793c18-86dc-4b9a-949d-9216fc03265d : :Raw Audit Messages :type=AVC msg=audit(1343971509.856:121): avc: denied { getattr } for pid=824 comm="kdm" path="/boot/grub2/grub.cfg" dev="sda1" ino=65056 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:boot_t:s0 tclass=file : : :type=SYSCALL msg=audit(1343971509.856:121): arch=x86_64 syscall=stat success=yes exit=0 a0=41f3c1 a1=7fff2349ca40 a2=7fff2349ca40 a3=10 items=0 ppid=1 pid=824 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=kdm exe=/usr/bin/kdm subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null) : :Hash: kdm,xdm_t,boot_t,file,getattr : :audit2allow : :#============= xdm_t ============== :#!!!! This avc can be allowed using the boolean 'xdm_exec_bootloader' : :allow xdm_t boot_t:file getattr; : :audit2allow -R : :#============= xdm_t ============== :#!!!! This avc can be allowed using the boolean 'xdm_exec_bootloader' : :allow xdm_t boot_t:file getattr; :
:#============= xdm_t ============== :#!!!! This avc can be allowed using the boolean 'xdm_exec_bootloader' So execute # setsebool -P xdm_exec_bootloader 1