Bug 1251686 - SELinux is preventing kdm from 'unlink' accesses on the lnk_file .xsession-errors.
Summary: SELinux is preventing kdm from 'unlink' accesses on the lnk_file .xsession-er...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 22
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:5f7c32fcc5f6de2cd5030e68c4b...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-08-08 17:13 UTC by Doncho Gunchev
Modified: 2015-08-27 15:57 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-27 15:57:32 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Doncho Gunchev 2015-08-08 17:13:58 UTC
Description of problem:
SELinux is preventing kdm from 'unlink' accesses on the lnk_file .xsession-errors.

*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that kdm should be allowed unlink access on the .xsession-errors lnk_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:user_home_t:s0
Target Objects                .xsession-errors [ lnk_file ]
Source                        kdm
Source Path                   kdm
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-128.8.fc22.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.1.3-201.fc22.x86_64 #1 SMP Wed
                              Jul 29 19:50:22 UTC 2015 x86_64 x86_64
Alert Count                   1
First Seen                    2015-08-08 20:12:40 EEST
Last Seen                     2015-08-08 20:12:40 EEST
Local ID                      cec5f2b5-5dd4-4c9c-b12c-30fb6b4f97bb

Raw Audit Messages
type=AVC msg=audit(1439053960.83:632): avc:  denied  { unlink } for  pid=1904 comm="kdm" name=".xsession-errors" dev="dm-1" ino=47895 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=lnk_file permissive=0


Hash: kdm,xdm_t,user_home_t,lnk_file,unlink

Version-Release number of selected component:
selinux-policy-3.13.1-128.8.fc22.noarch

Additional info:
reporter:       libreport-2.6.2
hashmarkername: setroubleshoot
kernel:         4.1.3-201.fc22.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2015-08-27 15:57:32 UTC
Please execute

$ restorecon -R -v ~/

and reopen if you are able to reproduce it. Thank you.


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