Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 683345

Summary: avc: denied { read } for pid=823 comm="alsactl" name="controlC1" dev=devtmpfs
Product: Red Hat Enterprise Linux 6 Reporter: Jan Pazdziora (Red Hat) <jpazdziora>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED CURRENTRELEASE QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.1CC: bpeck, dcallagh, dwalsh, mcsontos, mgrepl, rmancy, stl
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-03-11 15:32:21 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 Jan Pazdziora (Red Hat) 2011-03-09 07:56:36 UTC
Description of problem:

When installing RHEL 6 on some systems, I get failed ./Sysinfo in /distribution/install because of AVC denial:

******** SElinux AVC Failures ********
type=1400 audit(1299591440.975:4): avc:  denied  { read } for  pid=823 comm="alsactl" name="controlC1" dev=devtmpfs ino=10736 scontext=system_u:system_r:alsa_t:s0-s0:c0.c1023 tcontext=system_u:object_r:device_t:s0 tclass=chr_file
***** Potential Issues install.log *****

Version-Release number of selected component (if applicable):

Not really sure -- whatever is installed as of yesterday.

How reproducible:

Seen a couple of time, not deterministic thou.

Steps to Reproduce:
1. Install RHEL 6.
2. Check the result of /distribution/install
  
Actual results:

Fail.

Expected results:

Pass.

Additional info:

Comment 2 Marian Csontos 2011-03-09 08:33:01 UTC
This is not a bug in harness nor test: there is an AVC error and test properly reports it.

I am against hiding genuine AVC errors.

All we can do is to take AVC_ERROR into account in sysinfo sub-test.

Please, report a bug against component which causes the problem too, please.

Comment 3 Jan Pazdziora (Red Hat) 2011-03-09 09:04:52 UTC
OK, thanks, flipping to RHEL 6 selinux-policy.

Comment 4 Jan Pazdziora (Red Hat) 2011-03-09 09:07:10 UTC
# audit2allow
type=1400 audit(1299591440.975:4): avc:  denied  { read } for  pid=823 comm="alsactl" name="controlC1" dev=devtmpfs ino=10736 scontext=system_u:system_r:alsa_t:s0-s0:c0.c1023 tcontext=system_u:object_r:device_t:s0 tclass=chr_file


#============= alsa_t ==============
allow alsa_t device_t:chr_file read;
# find /dev -inum 10736
/dev/snd/controlC1
#

Comment 7 Miroslav Grepl 2011-03-09 12:25:28 UTC
/dev/snd/controlC1 did not get the right label during install


matchpathcon /dev/snd/controlC1
/dev/snd/controlC1	system_u:object_r:sound_device_t:s0

How is the device labeled now?

ls -Z /dev/snd/controlC1

Comment 8 Jan Pazdziora (Red Hat) 2011-03-09 12:37:41 UTC
(In reply to comment #7)
> How is the device labeled now?
> 
> ls -Z /dev/snd/controlC1

# ls -Z /dev/snd/controlC1
crw-rw----. root audio system_u:object_r:sound_device_t:s0 /dev/snd/controlC1