| Summary: | SELinux is preventing kdm from 'write' accesses on the file /home/edy/.dmrc. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | edy <ed.mustOP> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 17 | CC: | dominick.grift, dwalsh, mgrepl |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i686 | ||
| OS: | Unspecified | ||
| Whiteboard: | abrt_hash:adda40c5d1c28a1b70e52b8044aacd4633231e5e820ea9398005322b2391d10f | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-03-29 11:06:48 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
It is mislabeled. restorecon -r -v /home/edy Was this an updated system? Not sure how the directory got created with the wrong label. |
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 : :