Bug 978004

Summary: disable dontaudit rules for lightdm
Product: [Fedora] Fedora Reporter: Karel Volný <kvolny>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: selinux-policy-3.12.1-57.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-04 00:56:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Karel Volný 2013-06-25 19:10:32 UTC
Description of problem:
Please disable dontaudit rules for lightdm.
This has just costed me more than hour of life because I've hit bug 969090. Selinux was my first suspect, but as I could not find anything in audit.log (see bug 967199#c1), I tried other false traces.
Googling and interacting with Bugzilla through links text mode interface, as for some reason I could not get X session working without dm was a real pleasure ...

Version-Release number of selected component (if applicable):
selinux-policy-3.12.1-54.fc19

How reproducible:
always

Steps to Reproduce:
1. use razorqt with lightdm
2. use selinux-policy-3.12.1-54.fc19
3. after unsucessful GUI startup, login in text on second console
4. grep light /var/log/audit/audit.log | grep AVC
5. run lightdm manually and try to login
6. grep light /var/log/audit/audit.log | grep AVC

Actual results:
4. nothing
6.
type=AVC msg=audit(1372182105.389:231): avc:  denied  { read open } for  pid=1611 comm="lightdm" path="/usr/bin/razor-lightdm-greeter" dev="dm-0" ino=10497833 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:spamc_exec_t:s0 tclass=file
type=AVC msg=audit(1372182105.389:231): avc:  denied  { execute_no_trans } for  pid=1611 comm="lightdm" path="/usr/bin/razor-lightdm-greeter" dev="dm-0" ino=10497833 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:spamc_exec_t:s0 tclass=file

Expected results:
well, primarily no errors, as bug 969090 should be fixed ... but when it's still there, you should get error messagess in all cases of broken lightdm startup, no matter if started from the init system or manually

Additional info:
have I said already that I hate dontaudit rules in general?

Comment 1 Miroslav Grepl 2013-06-25 19:45:43 UTC
# matchpathcon /usr/bin/razor-lightdm-greeter
/usr/bin/razor-lightdm-greeter	system_u:object_r:xdm_exec_t:s0

Has been fixed.

Comment 2 Fedora Update System 2013-06-26 20:19:25 UTC
selinux-policy-3.12.1-57.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-57.fc19

Comment 3 Fedora Update System 2013-06-27 15:49:55 UTC
Package selinux-policy-3.12.1-57.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.12.1-57.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-11846/selinux-policy-3.12.1-57.fc19
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2013-07-04 00:56:03 UTC
selinux-policy-3.12.1-57.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.