Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1438532

Summary: SELinux prevents tgtd from opening /etc/pki/tls/legacy-settings
Product: Red Hat Enterprise Linux 7 Reporter: Milos Malik <mmalik>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Milos Malik <mmalik>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.4CC: lvrabec, mgrepl, mmalik, plautrba, pvrabec, ssekidde
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: selinux-policy-3.13.1-176.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-10 12:28:17 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:
Embargoed:

Description Milos Malik 2017-04-03 16:38:49 UTC
Description of problem:
* if /usr/lib64/tgt/backing-store/bs_glfs.so is installed, then tgtd loads it and then the AVC appears because:
# ldd /usr/lib64/tgt/backing-store/bs_glfs.so | grep crypt
	libcrypto.so.10 => /lib64/libcrypto.so.10 (0x00007fa23d6e1000)
#

Version-Release number of selected component (if applicable):
scsi-target-utils-1.0.55-4.el7.x86_64
scsi-target-utils-gluster-1.0.55-4.el7.x86_64

How reproducible:
* always

Steps to Reproduce:
1. get a RHEL-7.4 machine (targeted policy is active)
2. service tgtd restart
3. ausearch -m avc -i -ts recent

Actual results:
----
type=PATH msg=audit(04/03/2017 18:06:56.731:828) : item=0 name=/etc/pki/tls/legacy-settings objtype=UNKNOWN 
type=CWD msg=audit(04/03/2017 18:06:56.731:828) :  cwd=/ 
type=SYSCALL msg=audit(04/03/2017 18:06:56.731:828) : arch=x86_64 syscall=open success=no exit=EACCES(Permission denied) a0=0x7efee091a622 a1=O_RDONLY a2=0x1b6 a3=0x24 items=1 ppid=1 pid=20890 auid=unset uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=(none) ses=unset comm=tgtd exe=/usr/sbin/tgtd subj=system_u:system_r:tgtd_t:s0 key=(null) 
type=AVC msg=audit(04/03/2017 18:06:56.731:828) : avc:  denied  { search } for  pid=20890 comm=tgtd name=pki dev="vda3" ino=33595530 scontext=system_u:system_r:tgtd_t:s0 tcontext=system_u:object_r:cert_t:s0 tclass=dir 
----

Expected results:
* no SELinux denials

Comment 7 errata-xmlrpc 2018-04-10 12:28:17 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:0763