Bug 665203 - SELinux is preventing /sbin/iscsid from using the 'sys_ptrace' capabilities.
Summary: SELinux is preventing /sbin/iscsid from using the 'sys_ptrace' capabilities.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 14
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:c3b40f2eacc...
: 665204 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-12-23 04:13 UTC by shane
Modified: 2011-02-03 20:26 UTC (History)
3 users (show)

Fixed In Version: selinux-policy-3.9.7-28.fc14
Clone Of:
Environment:
Last Closed: 2011-02-03 20:26:08 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description shane 2010-12-23 04:13:03 UTC
SELinux is preventing /sbin/iscsid from using the 'sys_ptrace' capabilities.

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

If you believe that iscsid should have the sys_ptrace capability 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                unconfined_u:system_r:iscsid_t:s0
Target Objects                Unknown [ capability ]
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                   7
First Seen                    Wed 22 Dec 2010 06:39:35 PM CST
Last Seen                     Wed 22 Dec 2010 08:52:47 PM CST
Local ID                      0f396d09-7006-4389-a7d2-e5fea22864ac

Raw Audit Messages
type=AVC msg=audit(1293072767.178:26462): avc:  denied  { sys_ptrace } for  pid=10528 comm="iscsid" capability=19  scontext=unconfined_u:system_r:iscsid_t:s0 tcontext=unconfined_u:system_r:iscsid_t:s0 tclass=capability

iscsid,iscsid_t,iscsid_t,capability,sys_ptrace
type=SYSCALL msg=audit(1293072767.178:26462): arch=x86_64 syscall=read success=yes exit=156 a0=b a1=7fffd57d9c10 a2=400 a3=1999999999999999 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,iscsid_t,capability,sys_ptrace

#============= iscsid_t ==============
allow iscsid_t self:capability sys_ptrace;

Comment 1 Daniel Walsh 2010-12-23 15:33:22 UTC
Miroslav back port rawhide iscsi policy to F13/F14

Shane alert above explains how to allow this for now.

Comment 2 Daniel Walsh 2010-12-23 15:33:39 UTC
*** Bug 665204 has been marked as a duplicate of this bug. ***

Comment 3 Miroslav Grepl 2011-01-03 07:56:57 UTC
Fixed in selinux-policy-3.9.7-20.fc14

Comment 4 Fedora Update System 2011-01-04 18:00:20 UTC
selinux-policy-3.9.7-20.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-20.fc14

Comment 5 Fedora Update System 2011-01-05 21:21:14 UTC
selinux-policy-3.9.7-20.fc14 has been pushed to the Fedora 14 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: https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-20.fc14

Comment 6 Fedora Update System 2011-01-17 20:50:43 UTC
selinux-policy-3.9.7-20.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 thomas 2011-01-30 14:20:15 UTC
I'm still seeing a setsched denial for iscsid (same as bug 665204) when using 

# rpm -q selinux-policy
selinux-policy-3.9.7-25.fc14.noarch


# grep AVC /var/log/audit/audit.log | grep iscsid
type=AVC msg=audit(1296394249.096:4): avc:  denied  { setsched } for  pid=818 comm="iscsid" scontext=system_u:system_r:iscsid_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=process

Comment 8 Miroslav Grepl 2011-01-31 09:13:49 UTC
You are right. Thanks.

Comment 9 Miroslav Grepl 2011-01-31 09:14:29 UTC
Fixed in selinux-policy-3.9.7-27.fc14

Comment 10 Fedora Update System 2011-02-02 12:57:55 UTC
selinux-policy-3.9.7-28.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-28.fc14

Comment 11 Fedora Update System 2011-02-02 19:31:06 UTC
selinux-policy-3.9.7-28.fc14 has been pushed to the Fedora 14 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: https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-28.fc14

Comment 12 Fedora Update System 2011-02-03 20:25:15 UTC
selinux-policy-3.9.7-28.fc14 has been pushed to the Fedora 14 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.