Bug 845441 - SELinux is preventing /usr/bin/kdm from 'getattr' accesses on the file /boot/grub2/grub.cfg.
SELinux is preventing /usr/bin/kdm from 'getattr' accesses on the file /boot/...
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
17
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
abrt_hash:79aafb4b519ec4b1c4c459b79d3...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-08-03 02:14 EDT by roddy
Modified: 2012-08-03 05:13 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-08-03 05:13:02 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description roddy 2012-08-03 02:14:21 EDT
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;
:
Comment 1 Miroslav Grepl 2012-08-03 05:13:02 EDT
:#============= xdm_t ==============
:#!!!! This avc can be allowed using the boolean 'xdm_exec_bootloader'


So execute

# setsebool -P xdm_exec_bootloader 1

Note You need to log in before you can comment on or make changes to this bug.