Bug 577745

Summary: SELinux is preventing /sbin/alsactl "write" access on /dev/pts/0.
Product: [Fedora] Fedora Reporter: Tadej Janež <tadej.j>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 12CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:a1bf56656f3e55795ba966334fe8364fd51601936fe85ae8b4b3939dfb1cfa58
Fixed In Version: selinux-policy-3.6.32-108.fc12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-04-09 01:24:26 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 Tadej Janež 2010-03-29 07:10:01 UTC
Summary:

SELinux is preventing /sbin/alsactl "write" access on /dev/pts/0.

Detailed Description:

SELinux denied access requested by alsactl. It is not expected that this access
is required by alsactl and this access may signal an intrusion attempt. It is
also possible that the specific version or configuration of the application is
causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                system_u:system_r:alsa_t:s0
Target Context                system_u:object_r:devpts_t:s0
Target Objects                /dev/pts/0 [ chr_file ]
Source                        alsactl
Source Path                   /sbin/alsactl
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           alsa-utils-1.0.22-1.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-103.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.31.12-174.2.19.fc12.i686.PAE #1 SMP Thu Feb 11
                              07:22:55 UTC 2010 i686 i686
Alert Count                   2
First Seen                    Tue 23 Mar 2010 10:03:31 AM CET
Last Seen                     Tue 23 Mar 2010 10:03:31 AM CET
Local ID                      c30f9ddd-ba47-46f7-b267-5fc9acf77a7d
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1269335011.69:16): avc:  denied  { write } for  pid=1492 comm="alsactl" path="/dev/pts/0" dev=devpts ino=3 scontext=system_u:system_r:alsa_t:s0 tcontext=system_u:object_r:devpts_t:s0 tclass=chr_file

node=(removed) type=SYSCALL msg=audit(1269335011.69:16): arch=40000003 syscall=4 success=no exit=-13 a0=2 a1=bfaf555c a2=2d a3=2d items=0 ppid=1490 pid=1492 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="alsactl" exe="/sbin/alsactl" subj=system_u:system_r:alsa_t:s0 key=(null)



Hash String generated from  catchall,alsactl,alsa_t,devpts_t,chr_file,write
audit2allow suggests:

#============= alsa_t ==============
allow alsa_t devpts_t:chr_file write;

Comment 1 Tadej Janež 2010-03-29 07:12:44 UTC
I don't know if this is actually a bug, but I reported it anyway as other people may also encounter it and be similarly confused as I am.

Comment 2 Daniel Walsh 2010-03-29 14:05:12 UTC
The AVC is indicating that alsa tried to write to /dev/pts/0 which is probably stdin.

It can be safely ignored.

Miroslav add

term_dontaudit_use_generic_ptys(alsa_t)
term_dontaudit_use_all_ptys(alsa_t)

Comment 3 Miroslav Grepl 2010-03-30 07:07:52 UTC
Fixed in selinux-policy-3.6.32-108.fc12

Comment 4 Fedora Update System 2010-03-30 19:47:59 UTC
selinux-policy-3.6.32-108.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-108.fc12

Comment 5 Fedora Update System 2010-04-01 01:53:55 UTC
selinux-policy-3.6.32-108.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-108.fc12

Comment 6 Fedora Update System 2010-04-09 01:23:34 UTC
selinux-policy-3.6.32-108.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.