Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 497273

Summary: Comming autofs update needs Selinux policy update
Product: Red Hat Enterprise Linux 5 Reporter: Ian Kent <ikent>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED ERRATA QA Contact: BaseOS QE <qe-baseos-auto>
Severity: low Docs Contact:
Priority: low    
Version: 5.3CC: ikent, jmoyer, mmalik, ohudlick
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 433407 Environment:
Last Closed: 2009-09-02 08:00:13 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: 433407    
Bug Blocks:    
Attachments:
Description Flags
RHEL-5.3 selinux alert from Selinux Troubleshooter
none
RHEL-5.3 selinux alert from Selinux Troubleshooter none

Description Ian Kent 2009-04-23 06:02:08 UTC
+++ This bug was initially created as a clone of Bug #433407 +++

Description of problem:

Heads up!

There is a problem with the active re-start, that is the
restart of autofs with active mounts.

The details are a bit complicated and the best way to
understand the problem is to look at bug #431716, in
particular comment #5. Bug #287411 is alao an example
of the problem.

The bottom line is that, to resolve the issue, ioctl
commands need to be sent to autofs via a miscellaneous
device node. So autofs will need appropriate access rights
to use the device file (udev creates it as /dev/autofs at
kernel module load time).

The changes for the kernel module and the daemon are well
along and I will collect specific avc messages as the final
step in my testing and post them to this bug.

The changes will, as the work progresses, need to find their
way into F8 (and perhaps F7), RHEL-5 and RHEL-4.

Ian

--- Additional comment from ikent on 2008-02-19 22:25:04 EDT ---

Created an attachment (id=295375)
Alerts from device file access


--- Additional comment from ikent on 2008-02-19 22:26:22 EDT ---

Created an attachment (id=295376)
Alerts from mount and umount

I'm also seeing these in F8.
They appear to be new alerts.

--- Additional comment from dwalsh on 2008-02-20 08:56:01 EDT ---

selinux-policy-3.2.8-2.fc9.noarch has the definition for /dev/autofs

The second group of avcs for mount seem to be a leaked file descriptor.

selinux-policy-3.0.8-88.fc8 has the same policy so please make sure it works in
rawhide.

Comment 1 Ian Kent 2009-04-23 06:06:33 UTC
This functionality is to be incorporated in RHEL-5.4 autofs.

Sorry I didn't alert you to this earlier but it slipped my mind
that, although addressed in Fedora, I would need to request it
be included in RHEL-5 policy.

It didn't occur to me until I saw the avcs when testing against
RHEL-5.3.

Comment 2 Ian Kent 2009-04-23 06:09:26 UTC
Created attachment 340871 [details]
RHEL-5.3 selinux alert from Selinux Troubleshooter

Comment 3 Ian Kent 2009-04-23 06:12:24 UTC
Created attachment 340872 [details]
RHEL-5.3 selinux alert from Selinux Troubleshooter

These two alerts are the only relevant avs I can see on RHEL-5.3.
AFAICT the other alerts I have are common in my test setup and
don't occur in normal use of autofs.

Comment 4 Daniel Walsh 2009-04-23 12:22:35 UTC
Fixed in selinux-policy-2.4.6-228.el5

Comment 11 errata-xmlrpc 2009-09-02 08:00:13 UTC
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-2009-1242.html