Bug 1025401

Summary: Add some iscsi permissions
Product: [Fedora] Fedora Reporter: Fabian Deutsch <fdeutsch>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: dominick.grift, dwalsh, fdeutsch, lvrabec, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: selinux-policy-3.12.1-74.19.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-03-15 15:22:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1011193, 1057761    

Description Fabian Deutsch 2013-10-31 15:28:20 UTC
Description of problem:
As discovered in bug 1011193, some iscsi permissions are missing.

Version-Release number of selected component (if applicable):
Latest f19 (updates)
Please note that this appeared on oVirt Node (which is a r/o rootfs/livecd)

# audit2allow -alR

require {
	type iscsid_t;

# COMMENT: Should these also be added?
#============= initrc_t ==============
allow initrc_t sshd_net_t:process dyntransition;
allow initrc_t unconfined_t:process dyntransition;

# COMMENT: The missing permissions
#============= iscsid_t ==============
allow iscsid_t iscsi_var_lib_t:dir { write remove_name create add_name rmdir };
allow iscsid_t iscsi_var_lib_t:file { write create unlink };
allow iscsid_t iscsi_var_lib_t:lnk_file { create unlink };

Comment 1 Miroslav Grepl 2014-02-18 10:01:23 UTC
You have sshd daemon running as initrc_t?

# ps -efZ |grep initrc

Comment 2 Lukas Vrabec 2014-02-19 15:19:40 UTC
I fixed problems with isci_var_lib_t labels, but please respond to the comment above.

commit c2929a0a2d32b5bafc86b44f4d51ad13e6a86b7b
Author: Lukas Vrabec <lvrabec@redhat.com>
Date:   Wed Feb 19 16:15:16 2014 +0100

    Allow iscsi to manage iscsi_var_lib_t files and dirs

Comment 3 Lukas Vrabec 2014-02-19 15:23:52 UTC
I added one more rule.

commit 8e1094f696ce6cb3c84d9da1d926d1ec3337c349
Author: Lukas Vrabec <lvrabec@redhat.com>
Date:   Wed Feb 19 16:23:18 2014 +0100

    Added var_lib filetrans in iscsi policy

Comment 4 Fedora Update System 2014-02-24 13:16:23 UTC
selinux-policy-3.12.1-74.19.fc19 has been submitted as an update for Fedora 19.

Comment 5 Fedora Update System 2014-02-25 07:45:01 UTC
Package selinux-policy-3.12.1-74.19.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.12.1-74.19.fc19'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2014-03-15 15:22:07 UTC
selinux-policy-3.12.1-74.19.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.