Bug 590124 - tgtd requires selinux policy
tgtd requires selinux policy
Status: CLOSED CURRENTRELEASE
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
13
All Linux
low Severity high
: ---
: ---
Assigned To: Daniel Walsh
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2010-05-07 15:03 EDT by Dave Allan
Modified: 2016-04-26 16:43 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2010-07-29 12:37:51 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Dave Allan 2010-05-07 15:03:42 EDT
Description of problem:
tgtd does not start on F13 unless selinux is disabled.  I hacked together the following policy to get it to start, but I'm not an selinux wizard, so I'm not certain of the appropriateness of this policy, particularly the default_t file part.

Version-Release number of selected component (if applicable):
scsi-target-utils-1.0.1-3.fc13.x86_64

How reproducible:
100%

Steps to Reproduce:
1. enable selinux
2. start tgtd

Here's the policy I used to get it to start:

module tgtd 1.0;

require {
	type tgtd_t;
	type iscsid_t;
	type default_t;
	class sem { unix_read unix_write associate read write destroy };
	class file { read write open getattr };
}

#============= tgtd_t ==============
allow tgtd_t iscsid_t:sem  { unix_read unix_write associate read write destroy };
allow tgtd_t default_t:file { read write open getattr };

If there's more information I can provide, please don't hesitate to ask.  It's also easy for me to create throwaway VMs for testing.
Comment 1 Mike Christie 2010-05-07 21:52:25 EDT
Moving to selinux policy since that package is the one that will have to be modified for the changes.
Comment 2 Daniel Walsh 2010-05-10 13:46:22 EDT
Could you attach the audit log that you used to generate this policy?

default_t looks wrong.  Is there a new directory under /?


Does tgtd communicate with iscsi using semaphores?
Comment 3 Daniel Walsh 2010-05-10 13:52:52 EDT
Added semaphore line in selinux-policy-3.7.19-15.fc13.noarch

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