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 1195175 - file context patterns for inn* programs are incorrect
Summary: file context patterns for inn* programs are incorrect
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: selinux-policy
Version: 7.1
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Lukas Vrabec
QA Contact: Milos Malik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-02-23 10:30 UTC by Milos Malik
Modified: 2019-04-29 09:15 UTC (History)
6 users (show)

Fixed In Version: selinux-policy-3.13.1-33.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-19 10:26:51 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:2300 0 normal SHIPPED_LIVE selinux-policy bug fix update 2015-11-19 09:55:26 UTC

Description Milos Malik 2015-02-23 10:30:08 UTC
Description of problem:
 * file context patterns for inn* programs are incorrect therefore innd runs as unconfined_service_t even if correct contexts exist

Version-Release number of selected component (if applicable):
inn-2.5.3-18.el7.x86_64
inn-libs-2.5.3-18.el7.x86_64
selinux-policy-3.13.1-23.el7.noarch
selinux-policy-devel-3.13.1-23.el7.noarch
selinux-policy-doc-3.13.1-23.el7.noarch
selinux-policy-minimum-3.13.1-23.el7.noarch
selinux-policy-mls-3.13.1-23.el7.noarch
selinux-policy-sandbox-3.13.1-23.el7.noarch
selinux-policy-targeted-3.13.1-23.el7.noarch

How reproducible:
always

Steps to Reproduce:
# matchpathcon /usr/lib/news/bin/innd
/usr/lib/news/bin/innd	system_u:object_r:innd_exec_t:s0
# ls -l /usr/lib/news/bin/innd
ls: cannot access /usr/lib/news/bin/innd: No such file or directory
# ls -l /usr/libexec/news/innd
-rwxr-xr-x. 1 root news 229304 Jan 15  2014 /usr/libexec/news/innd
# matchpathcon /usr/libexec/news/innd
/usr/libexec/news/innd	system_u:object_r:bin_t:s0
# service innd status
Redirecting to /bin/systemctl status  innd.service
innd.service - Inetnet News Daemon
   Loaded: loaded (/usr/lib/systemd/system/innd.service; disabled)
   Active: active (running) since Mon 2015-02-23 11:22:03 CET; 1s ago
  Process: 21942 ExecStart=/usr/libexec/news/rc.news (code=exited, status=0/SUCCESS)
 Main PID: 21971 (innd)
   CGroup: /system.slice/innd.service
           ├─21971 /usr/libexec/news/innd
           └─21975 controlchan

Feb 23 11:22:03 rhel70.localdomain innd[21971]: SERVER outgoing 1010
Feb 23 11:22:03 rhel70.localdomain innd[21971]: SERVER ccsetup control:12
Feb 23 11:22:03 rhel70.localdomain innd[21971]: SERVER lcsetup localconn:14
Feb 23 11:22:03 rhel70.localdomain innd[21971]: SERVER rcsetup remconn:15
Feb 23 11:22:03 rhel70.localdomain innd[21971]: SERVER rcsetup remconn:17
Feb 23 11:22:03 rhel70.localdomain innd[21971]: controlchan! spawned control...5
Feb 23 11:22:03 rhel70.localdomain systemd[1]: Started Inetnet News Daemon.
Feb 23 11:22:03 rhel70.localdomain innd[21971]: SERVER perl filter not defined
Feb 23 11:22:03 rhel70.localdomain innd[21971]: SERVER starting
Feb 23 11:22:03 rhel70.localdomain controlchan[21975]: starting
Hint: Some lines were ellipsized, use -l to show in full.
# ps -efZ | grep inn
system_u:system_r:unconfined_service_t:s0 news 21971 1  0 11:22 ?      00:00:00 /usr/libexec/news/innd
unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 root 21989 5380  0 11:22 pts/0 00:00:00 grep --color=auto inn
#

Actual results:
 * innd process runs as unconfined_service_t

Expected results:
 * innd process runs as innd_t

Comment 1 Lukas Vrabec 2015-07-09 15:21:40 UTC
commit a210c13f690fbd7e4c7a4fe202cd17cff1fdbf36
Author: Lukas Vrabec <lvrabec>
Date:   Thu Jul 9 17:18:41 2015 +0200

    Fix paths in inn policy, Allow innd read innd_log_t dirs, Allow innd execute innd_etc_t files

Milos, please check your tests, there are some bugs(paths).

Comment 4 Lukas Vrabec 2015-07-15 08:14:26 UTC
commit 9d1e36882e367aa6af4f3ab15ac8f97ac00fe4b8
Author: Lukas Vrabec <lvrabec>
Date:   Wed Jul 15 10:11:31 2015 +0200

    inn daemon should create innd_log_t objects in var_log_t instead of innd_var_run_t

Comment 8 errata-xmlrpc 2015-11-19 10:26:51 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-2015-2300.html


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