Bug 665204

Summary: SELinux is preventing /sbin/iscsid from using the 'setsched' accesses on a process.
Product: [Fedora] Fedora Reporter: shane <stooggy>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 14CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:38777986938be7304dcc3ea4e36b0008fd7997edbda727c3c9148f55734988f3
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-12-23 15:33:39 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 shane 2010-12-23 04:13:53 UTC
SELinux is preventing /sbin/iscsid from using the 'setsched' accesses on a process.

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that iscsid should be allowed setsched access on processes labeled kernel_t 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 /sbin/iscsid /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:system_r:iscsid_t:s0
Target Context                system_u:system_r:kernel_t:s0
Target Objects                Unknown [ process ]
Source                        iscsid
Source Path                   /sbin/iscsid
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           iscsi-initiator-utils-6.2.0.872-8.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-18.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.9-64.fc14.x86_64 #1 SMP Fri Dec
                              3 12:19:41 UTC 2010 x86_64 x86_64
Alert Count                   6
First Seen                    Wed 22 Dec 2010 06:39:35 PM CST
Last Seen                     Wed 22 Dec 2010 08:52:47 PM CST
Local ID                      1882d5d2-e438-46ea-8982-d78069f4761e

Raw Audit Messages
type=AVC msg=audit(1293072767.195:26463): avc:  denied  { setsched } for  pid=10528 comm="iscsid" scontext=unconfined_u:system_r:iscsid_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=process

iscsid,iscsid_t,kernel_t,process,setsched
type=SYSCALL msg=audit(1293072767.195:26463): arch=x86_64 syscall=setpriority success=yes exit=0 a0=0 a1=294a a2=ffffffec a3=0 items=0 ppid=1 pid=10528 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=44 comm=iscsid exe=/sbin/iscsid subj=unconfined_u:system_r:iscsid_t:s0 key=(null)
iscsid,iscsid_t,kernel_t,process,setsched

#============= iscsid_t ==============
allow iscsid_t kernel_t:process setsched;

Comment 1 Daniel Walsh 2010-12-23 15:33:39 UTC

*** This bug has been marked as a duplicate of bug 665203 ***