Bug 1038746
Summary: | SELinux is preventing /usr/sbin/rsyslogd from 'open' accesses on the chr_file /dev/pts/0. | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Kamil Páral <kparal> |
Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 20 | CC: | dominick.grift, dwalsh, jlieskov, lkundrak, lvrabec, mah.darade, mgrepl, theinric |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Unspecified | ||
Whiteboard: | abrt_hash:50d77ea8bff4579ab975cd5f60cc44ce17fa6a3cde4dab62d0b0c96cdb2dacb0 | ||
Fixed In Version: | selinux-policy-3.12.1-116.fc20 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-01-16 07:09:24 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: |
Description
Kamil Páral
2013-12-05 18:05:10 UTC
Might be related to the latest re-appearance of bug 781807. Not sure why that is. Translating the AVC shows. type=SYSCALL msg=audit(12/05/2013 13:03:32.841:5691) : arch=unknown elf type(x86_64) syscall=read success=yes exit=ETXTBSY a0=0x7f99261d7650 a1=0x901 a2=0x8 a3=0x1 items=0 ppid=1 pid=853 auid=unset uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root ses=unset tty=(none) comm=rs:main Q:Reg exe=/usr/sbin/rsyslogd subj=system_u:system_r:syslogd_t:s0 key=(null) type=AVC msg=audit(12/05/2013 13:03:32.841:5691) : avc: denied { open } for pid=853 comm=rs:main Q:Reg path=/dev/pts/0 dev="devpts" ino=3 scontext=system_u:system_r:syslogd_t:s0 tcontext=unconfined_u:object_r:user_devpts_t:s0 tclass=chr_file Any idea why rsyslog would be trying to talk to a user terminal? Also what is "rs:main Q:Reg" (In reply to Daniel Walsh from comment #2) > Any idea why rsyslog would be trying to talk to a user terminal? Messages with the "emergency" severity go to all terminals per the default configuration. rsyslog.conf: > # Everybody gets emergency messages > *.emerg :omusrmsg:* Looking at the other BZ, the messages came from packagekit. Given that this is the default configuration, rsyslog should probably be allowed to write to terminals. > Also what is "rs:main Q:Reg" There are multiple threads handling the individual message queues. This looks like the "main message queue" thread. I'll just switch this back to selinux-policy. I'd say it's desirable to allow this usecase. Turning on the logging_syslogd_use_tty boolean would allow this. setsebool -P logging_syslogd_use_tty 1 I guess we could turn this on by default. commit 9c3b38d294ab23b4077edd81533ba63153d1b6c9 Author: Miroslav Grepl <mgrepl> Date: Tue Jan 7 15:28:55 2014 +0100 Turn on logging_syslogd_use_tty by default selinux-policy-3.12.1-116.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-116.fc20 Package selinux-policy-3.12.1-116.fc20: * should fix your issue, * was pushed to the Fedora 20 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-116.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-0806/selinux-policy-3.12.1-116.fc20 then log in and leave karma (feedback). selinux-policy-3.12.1-116.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report. |