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 1480791 - /usr/libexec/sesh -> /usr/libexec/sudo/sesh needs policy update
Summary: /usr/libexec/sesh -> /usr/libexec/sudo/sesh needs policy update
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: selinux-policy
Version: 7.4
Hardware: All
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Lukas Vrabec
QA Contact: Milos Malik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-08-11 21:47 UTC by Chris Cheney
Modified: 2020-12-14 09:29 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-04-10 12:38:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
rhel-7.3 -> rhel-7.4 files section changes (763 bytes, patch)
2017-08-14 10:40 UTC, Daniel Kopeček
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:0763 0 None None None 2018-04-10 12:40:51 UTC

Description Chris Cheney 2017-08-11 21:47:14 UTC
sudo was rebased between 7.3 and 7.4 one of the changes was the following:

  2013-02-06  Todd C. Miller  <Todd.Miller>

        * configure, configure.in, doc/UPGRADE, mkpkg, src/Makefile.in,
        src/load_plugins.c, sudo.pp:
        Sudo now stores its libexec files in a "sudo" subdirectory instead
        of in libexec itself. For backwards compatibility, if the plugin is
        not found in the default plugin directory, sudo will check the
        parent directory default directory ends in "/sudo".
        [5de67de76489]

This moved the following files into a sub directory and the patch for selinux-policy was not updated to match:

ls -al /usr/libexec/sudo
total 524
drwxr-xr-x.  2 root root    156 Aug 11 16:05 .
drwxr-xr-x. 42 root root  12288 Aug 11 16:05 ..
-rw-r--r--.  1 root root  11104 Jun  7 06:38 group_file.so
lrwxrwxrwx.  1 root root     21 Aug 11 16:05 libsudo_util.so.0 -> libsudo_util.so.0.0.0
-rw-r--r--.  1 root root  82120 Jun  7 06:38 libsudo_util.so.0.0.0
-rwxr-xr-x.  1 root root  15376 Jun  7 06:38 sesh
-rw-r--r--.  1 root root 388104 Jun  7 06:38 sudoers.so
-rw-r--r--.  1 root root   6880 Jun  7 06:38 sudo_noexec.so
-rw-r--r--.  1 root root   6928 Jun  7 06:38 system_group.so


policy-rhel-7.4-base.patch

-/usr/libexec/sesh              --      gen_context(system_u:object_r:shell_exec_t,s0)
+/usr/libexec/cockpit-agent      --  gen_context(system_u:object_r:shell_exec_t,s0)
+/usr/bin/cockpit-bridge         -- gen_context(system_u:object_r:shell_exec_t,s0)
+/usr/libexec/sesh                      --      gen_context(system_u:object_r:shell_exec_t,s0)


This should be changed to:

+/usr/libexec/sudo/sesh                      --      gen_context(system_u:object_r:shell_exec_t,s0)

Comment 2 Chris Cheney 2017-08-11 21:48:58 UTC
Looks like this has happened before with a prior move from /usr/sbin bz#848693

Comment 3 Daniel Kopeček 2017-08-14 10:40:47 UTC
Created attachment 1313041 [details]
rhel-7.3 -> rhel-7.4 files section changes

Comment 9 errata-xmlrpc 2018-04-10 12:38:21 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


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