-
Bug
-
Resolution: Done-Errata
-
Normal
-
rhel-8.8.0
-
selinux-policy-3.14.3-132.el8
-
None
-
Important
-
rhel-sst-security-selinux
-
ssg_security
-
14
-
None
-
QE ack, Dev ack
-
False
-
-
Yes
-
None
-
-
Pass
-
Automated
-
Bug Fix
-
-
Proposed
-
-
All
-
None
Description of problem:
This is a consequence of not having wanted to fix BZ 1910077.
Users mapped to sysadm_u cannot execute `sudo dnf` command because `sysadm_sudo_t` context cannot execute DNF command due to missing rule.
Version-Release number of selected component (if applicable):
selinux-policy
How reproducible:
Always
Steps to Reproduce:
1. Create a user mapped to sysadm_u
- useradd -G wheel -Z sysadm_u sysadm
- echo redhat | passwd --stdin sysadm
- setsebool -P ssh_sysadm_login=on
2. Login as the user and try executing dnf
- ssh sysadm@localhost
$ id -Z
sysadm_u:sysadm_r:sysadm_t:s0-s0:c0.c1023
$ sudo dnf update
Actual results:
error: cannot open Packages database in /var/lib/rpm
Error: Error: rpmdb open failed
Expected results:
No error
- external trackers
- links to
-
RHBA-2023:121335 selinux-policy bug fix and enhancement update
- mentioned on
(2 mentioned on)