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.
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
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
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