Bug 1251686 - SELinux is preventing kdm from 'unlink' accesses on the lnk_file .xsession-errors.
SELinux is preventing kdm from 'unlink' accesses on the lnk_file .xsession-er...
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
22
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
abrt_hash:5f7c32fcc5f6de2cd5030e68c4b...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-08-08 13:13 EDT by Doncho N. Gunchev
Modified: 2015-08-27 11:57 EDT (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-08-27 11:57:32 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 Doncho N. Gunchev 2015-08-08 13:13:58 EDT
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 11:57:32 EDT
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.