Bug 562689 - SELinux is preventing /sbin/readahead "read" access on cpuset.cpus.
Summary: SELinux is preventing /sbin/readahead "read" access on cpuset.cpus.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 12
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:2fec1b46cac...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-02-08 01:04 UTC by J. David Beutel
Modified: 2010-02-20 00:22 UTC (History)
3 users (show)

Fixed In Version: selinux-policy-3.6.32-89.fc12
Clone Of:
Environment:
Last Closed: 2010-02-20 00:22:09 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description J. David Beutel 2010-02-08 01:04:38 UTC
Summary:

SELinux is preventing /sbin/readahead "read" access on cpuset.cpus.

Detailed Description:

[readahead has a permissive type (readahead_t). This access was not denied.]

SELinux denied access requested by readahead. It is not expected that this
access is required by readahead 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:readahead_t:s0
Target Context                system_u:object_r:cgroup_t:s0
Target Objects                cpuset.cpus [ file ]
Source                        readahead
Source Path                   /sbin/readahead
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           readahead-1.5.4-1.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-78.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.3.fc12.x86_64 #1 SMP Mon Jan 18
                              19:52:07 UTC 2010 x86_64 x86_64
Alert Count                   4
First Seen                    Sun 07 Feb 2010 02:43:15 PM HST
Last Seen                     Sun 07 Feb 2010 02:43:15 PM HST
Local ID                      1060f7da-03e1-4e98-a6ff-e1de2cde45d7
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1265589795.547:29534): avc:  denied  { read } for  pid=1925 comm="readahead" name="cpuset.cpus" dev=cgroup ino=13545 scontext=system_u:system_r:readahead_t:s0 tcontext=system_u:object_r:cgroup_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1265589795.547:29534): arch=c000003e syscall=2 success=yes exit=128 a0=adf890 a1=0 a2=0 a3=37f0a25fd8 items=0 ppid=1922 pid=1925 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="readahead" exe="/sbin/readahead" subj=system_u:system_r:readahead_t:s0 key=(null)



Hash String generated from  selinux-policy-3.6.32-78.fc12,catchall,readahead,readahead_t,cgroup_t,file,read
audit2allow suggests:
audit2allow is not installed.

Comment 1 Daniel Walsh 2010-02-08 20:49:23 UTC
Miroslav add

fs_read_cgroup_files(readahead_t)


########################################
## <summary>
##	Read files on cgroup
##	file systems.
## </summary>
## <param name="domain">
##	<summary>
##	Domain allowed access.
##	</summary>
## </param>
#
interface(`fs_read_cgroup_files',`
	gen_require(`
		type cgroup_t;

	')

	read_files_pattern($1, cgroup_t, cgroup_t)
')

Comment 2 Miroslav Grepl 2010-02-09 09:22:07 UTC
Fixed in selinux-policy-3.6.32-86.fc12

Comment 3 Fedora Update System 2010-02-11 22:01:51 UTC
selinux-policy-3.6.32-89.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-89.fc12

Comment 4 Fedora Update System 2010-02-13 00:41:03 UTC
selinux-policy-3.6.32-89.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/F12/FEDORA-2010-1836

Comment 5 Fedora Update System 2010-02-20 00:20:05 UTC
selinux-policy-3.6.32-89.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.