Bug 685116
Summary: | mls: selinux blocks console login | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Karel Srot <ksrot> | ||||
Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> | ||||
Status: | CLOSED ERRATA | QA Contact: | BaseOS QE Security Team <qe-baseos-security> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 6.1 | CC: | dwalsh, linda.knippers, plautrba, sgrubb | ||||
Target Milestone: | rc | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | selinux-policy-3.7.19-79.el6 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2011-05-19 12:24:30 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 584498, 682670, 846801, 846802 | ||||||
Attachments: |
|
Description
Karel Srot
2011-03-15 10:54:11 UTC
securetty is trying to add "ttyS0" to /etc/securetty. 1. Is securetty supposed to do it in MLS? 2. I cannot login even if it is already there, this seems to be some initscript bug. I do not think they are related. Not sure why you can not login via the console? What platform is this happing on? ppc? Looks like we might need a policy for securetty Or change the label on /etc/securetty to etc_runtime_t. chcon -t etc_runtime_t /etc/securetty Should elminate the AVC. Can you execute semodule -DB and see if their are avcs relabeled to console_device_t when you login? I am seeing the same issue. I think we should add the etc_runtime_t label for now. And I can try to write a policy for that. Karel, it works fine for me with chcon -t etc_runtime_t /etc/securetty And I am not seeing AVC msgs which Dan mentioned in the comment #4. Created attachment 484502 [details]
audit.log after console login
I am testing on virtual (kvm/qemu) x86_64 host on x86_64 RHEL6 guest.
Changing the context allowed me to login, I am adding the audit.log as the attachment.
Well if you are able to login with the securetty completing successfull, no other changes need to be made other then changing the label on /etc/securettys The only concern with changing this label would be if other confined domains need to read it and can not. I think all login domains can read it, not sure what else would read it. The 'chcon -t etc_runtime_t /etc/securetty' command suggested in the BZ resolved an AVC I was seeing and also allows the getty to start on the console of my RHEL6.1 mls test system. Fixed in selinux-policy-3.7.19-79.el6 An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2011-0526.html |