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 1397802 - SELinux prevents console-kit-daemon from creating /var/log/ConsoleKit directory
Summary: SELinux prevents console-kit-daemon from creating /var/log/ConsoleKit directory
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: selinux-policy
Version: 6.9
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Lukas Vrabec
QA Contact: Milos Malik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-23 11:34 UTC by Milos Malik
Modified: 2017-03-21 09:49 UTC (History)
7 users (show)

Fixed In Version: selinux-policy-3.7.19-305.el6
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-03-21 09:49:48 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:0627 0 normal SHIPPED_LIVE selinux-policy bug fix update 2017-03-21 12:29:23 UTC

Description Milos Malik 2016-11-23 11:34:33 UTC
Description of problem:

Version-Release number of selected component (if applicable):
selinux-policy-3.7.19-292.el6.noarch
selinux-policy-targeted-3.7.19-292.el6.noarch

How reproducible:
* always

Steps to Reproduce:
1. get a clean RHEL-6.8 machine (targeted policy is active)
2. try to run semanage even if it's not installed
# semanage
Command not found. Install package 'policycoreutils-python' to provide command 'semanage'? [N/y] # 
3. skip the installation of the package

Actual results (enforcing mode):
----
time->Wed Nov 23 06:24:42 2016
type=SYSCALL msg=audit(1479900282.454:212): arch=c000003e syscall=83 success=no exit=-13 a0=dbdf00 a1=1ed a2=2 a3=7fff61ab4a90 items=0 ppid=1702 pid=1703 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="console-kit-dae" exe="/usr/sbin/console-kit-daemon" subj=system_u:system_r:consolekit_t:s0-s0:c0.c1023 key=(null)
type=AVC msg=audit(1479900282.454:212): avc:  denied  { create } for  pid=1703 comm="console-kit-dae" name="ConsoleKit" scontext=system_u:system_r:consolekit_t:s0-s0:c0.c1023 tcontext=system_u:object_r:var_log_t:s0 tclass=dir
----

Actual results (permissive mode):
----
time->Wed Nov 23 06:27:02 2016
type=SYSCALL msg=audit(1479900422.521:214): arch=c000003e syscall=83 success=yes exit=0 a0=1a62f00 a1=1ed a2=2 a3=7fff77de50d0 items=0 ppid=1786 pid=1787 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="console-kit-dae" exe="/usr/sbin/console-kit-daemon" subj=system_u:system_r:consolekit_t:s0-s0:c0.c1023 key=(null)
type=AVC msg=audit(1479900422.521:214): avc:  denied  { create } for  pid=1787 comm="console-kit-dae" name="ConsoleKit" scontext=system_u:system_r:consolekit_t:s0-s0:c0.c1023 tcontext=system_u:object_r:var_log_t:s0 tclass=dir
----

Expected results:
* no AVCs
* /var/log/ConsoleKit directory is labeled correctly during its creation

# ls -dZ /var/log/ConsoleKit
drwxr-xr-x. root root system_u:object_r:var_log_t:s0   /var/log/ConsoleKit
# ls -dZ /var/log/ConsoleKit/history 
-rw-r--r--. root root system_u:object_r:consolekit_log_t:s0 /var/log/ConsoleKit/history
#

Comment 6 errata-xmlrpc 2017-03-21 09:49:48 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://rhn.redhat.com/errata/RHBA-2017-0627.html


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