Bug 1109498

Summary: SELinux is preventing /usr/bin/wall from 'open' accesses on the chr_file /dev/pts/0.
Product: [Fedora] Fedora Reporter: hx
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, lvrabec, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:6ed1c5dd34eaad039678c7024baaafb0f8dc809c3f3b9219a86343060303e7ba
Fixed In Version: selinux-policy-3.12.1-74.30.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-12-19 18:29:32 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 hx 2014-06-14 14:38:37 UTC
Description of problem:
SELinux is preventing /usr/bin/wall from 'open' accesses on the chr_file /dev/pts/0.

*****  Plugin catchall_boolean (89.3 confidence) suggests  *******************

If you want to allow all daemons the ability to read/write terminals
Then you must tell SELinux about this by enabling the 'daemons_use_tty' boolean.
You can read 'user_selinux' man page for more details.
Do
setsebool -P daemons_use_tty 1

*****  Plugin catchall (11.6 confidence) suggests  ***************************

If you believe that wall should be allowed open access on the 0 chr_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 wall /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:apcupsd_t:s0
Target Context                unconfined_u:object_r:user_devpts_t:s0
Target Objects                /dev/pts/0 [ chr_file ]
Source                        wall
Source Path                   /usr/bin/wall
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           sysvinit-tools-2.88-10.dsf.fc19.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-74.19.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.14.4-100.fc19.x86_64 #1 SMP Tue
                              May 13 15:00:26 UTC 2014 x86_64 x86_64
Alert Count                   14
First Seen                    2014-06-08 21:19:04 EEST
Last Seen                     2014-06-13 09:19:19 EEST
Local ID                      fab8274c-d7c8-4ef8-9795-1e872b4de459

Raw Audit Messages
type=AVC msg=audit(1402640359.362:84538): avc:  denied  { open } for  pid=32450 comm="wall" path="/dev/pts/0" dev="devpts" ino=3 scontext=system_u:system_r:apcupsd_t:s0 tcontext=unconfined_u:object_r:user_devpts_t:s0 tclass=chr_file


type=SYSCALL msg=audit(1402640359.362:84538): arch=x86_64 syscall=open success=yes exit=EINTR a0=7fff4aee5c00 a1=901 a2=ffffffa0 a3=8 items=0 ppid=1 pid=32450 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=5 sgid=5 fsgid=5 tty=(none) ses=4294967295 comm=wall exe=/usr/bin/wall subj=system_u:system_r:apcupsd_t:s0 key=(null)

Hash: wall,apcupsd_t,user_devpts_t,chr_file,open

Additional info:
reporter:       libreport-2.2.1
hashmarkername: setroubleshoot
kernel:         3.14.4-100.fc19.x86_64
type:           libreport

Comment 1 Daniel Walsh 2014-06-17 21:12:28 UTC
4086a9b753620b8df031d93b29adb440e8edaaad fixes this in git

Comment 2 Lukas Vrabec 2014-06-18 08:58:35 UTC
backported.

Comment 3 hx 2014-06-28 08:28:52 UTC
Description of problem:
updated apcupsd daemon to report to gnome 3 wall using NotifySend function.

Additional info:
reporter:       libreport-2.2.2
hashmarkername: setroubleshoot
kernel:         3.14.7-100.fc19.x86_64
type:           libreport

Comment 4 Fedora Update System 2014-08-13 12:02:39 UTC
selinux-policy-3.12.1-74.29.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-74.29.fc19

Comment 5 Fedora Update System 2014-08-16 00:27:06 UTC
Package selinux-policy-3.12.1-74.29.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-74.29.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-9432/selinux-policy-3.12.1-74.29.fc19
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2014-12-03 12:53:29 UTC
selinux-policy-3.12.1-74.30.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-74.30.fc19

Comment 7 Fedora Update System 2014-12-19 18:29:32 UTC
selinux-policy-3.12.1-74.30.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.