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 1526012

Summary: rsyslogd is not allowed to read IDM's Tomcat pki_log files
Product: Red Hat Enterprise Linux 7 Reporter: Fulvio Carrus <fcarrus>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Milos Malik <mmalik>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.4CC: aperotti, cww, dconsoli, fcarrus, ktordeur, lvrabec, mgrepl, mmalik, plautrba, ssekidde
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-30 10:02:20 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:
Bug Depends On:    
Bug Blocks: 1477664    

Description Fulvio Carrus 2017-12-14 15:38:02 UTC
Description of problem:
SELinux denies access while trying to feed IDM's /var/log/pki/pki-tomcat/ca/transaction files into rsyslogd through imfile module.

Version-Release number of selected component (if applicable):
- Red Hat Enterprise Linux Server release 7.4 (Maipo) 
- Red Hat IDM 4.5 (ipa-server-4.5.0-21.el7_4.1.2)

How reproducible:


Steps to Reproduce:
1. Install RHEL 7.4 and IDM
2. Create an rsyslog.d conf file like this:
input(
  type="imfile"
  ruleset="remote_ipa_logger"
  file="/var/log/pki/pki-tomcat/ca/transactions"
  facility="local6"
  severity="info"
  tag="ipa-ca-transaction"
)



Actual results:
Checking /var/log/audit/audit.log, it reports:
type=AVC msg=audit(..timestamp..): avc: denied { search } for pid=xyz comm="in:imfile" name="pki" dev="dm-5" ino=179 scontext=system_u:system_r:syslogd_t:s0 tcontext=system_u:object_r:pki_log_t:s0 tclass=dir


Expected results:
No AVC denies

Additional info:
Suggested policy from audit2allow is:

allow syslogd_t pki_log_t:dir search;

Suggested policy was successfully compiled and loaded into the system. It should be allowed by default, though.

Comment 10 errata-xmlrpc 2018-10-30 10:02:20 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:3111