Bug 807963 - SELinux is preventing kdm from 'write' accesses on the file /home/edy/.dmrc.
SELinux is preventing kdm from 'write' accesses on the file /home/edy/.dmrc.
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
17
i686 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
abrt_hash:adda40c5d1c28a1b70e52b8044a...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-03-29 05:06 EDT by edy
Modified: 2012-03-29 07:06 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-03-29 07:06:48 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 edy 2012-03-29 05:06:11 EDT
libreport version: 2.0.10
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.3.0-0.rc3.git7.2.fc17.i686
time:           Thu 29 Mar 2012 04:08:09 PM GMT+7

description:
:SELinux is preventing kdm from 'write' accesses on the file /home/edy/.dmrc.
:
:*****  Plugin restorecon (99.5 confidence) suggests  *************************
:
:If you want to fix the label. 
:/home/edy/.dmrc default label should be xdm_home_t.
:Then you can run restorecon.
:Do
:# /sbin/restorecon -v /home/edy/.dmrc
:
:*****  Plugin catchall (1.49 confidence) suggests  ***************************
:
:If you believe that kdm should be allowed write access on the .dmrc 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                system_u:object_r:user_home_t:s0
:Target Objects                /home/edy/.dmrc [ file ]
:Source                        kdm
:Source Path                   kdm
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-106.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.3.0-5.fc17.i686 #1
:                              SMP Fri Mar 23 20:52:57 UTC 2012 i686 i686
:Alert Count                   10
:First Seen                    Thu 29 Mar 2012 02:16:51 PM GMT+7
:Last Seen                     Thu 29 Mar 2012 03:53:46 PM GMT+7
:Local ID                      d828aedd-4b42-446d-abd4-00adb403191b
:
:Raw Audit Messages
:type=AVC msg=audit(1333061626.480:93): avc:  denied  { write } for  pid=1786 comm="kdm" name=".dmrc" dev="dm-2" ino=524297 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:user_home_t:s0 tclass=file
:
:
:Hash: kdm,xdm_t,user_home_t,file,write
:
:audit2allowunable to open /sys/fs/selinux/policy:  Permission denied
:
:
:audit2allow -Runable to open /sys/fs/selinux/policy:  Permission denied
:
:
Comment 1 Daniel Walsh 2012-03-29 07:06:03 EDT
It is mislabeled.

restorecon -r -v /home/edy

Was this an updated system?

Not sure how the directory got created with the wrong label.

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