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.
Zdenek,
Good question! Iirc I've quite intensively tested selinux-policy-3.14.3-8.el8 on
my rhel-8.0.0-setup and didn't find any issues (everything working well and
no denials logged).
Would writing to existent files require that property?
Klaus
Klaus,
The permission reported in Milos's AVC was "writing to a directory", i. e. creating a new file. Maybe reboot is required to test the scenario completely?
(In reply to Zdenek Pytela from comment #18)
> Klaus,
>
> The permission reported in Milos's AVC was "writing to a directory", i. e.
> creating a new file. Maybe reboot is required to test the scenario
> completely?
Hmm .. mystery only writing line is
f = fopen("/sys/fs/cgroup/cpu/tasks", "w");
and that one is present regardless of if cpu-accounting is on or off.
All others are mode = "rt".
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-2019:3547
I've done some logging in permissive-mode (enforcing would bail out after the first attempt and omit the rest). But I'm not sure if I really see the traces of all the actions that I had expected to trigger. Whenever it is 'system.slice' this can of course be any slice that was configured in the unit-file. time->Fri May 31 16:35:46 2019 type=USER_AVC msg=audit(1559313346.290:437): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='avc: received setenforce notice (enforcing=0) exe="/usr/lib/systemd/systemd" sauid=0 hostname=? addr=? terminal=?' ---- time->Fri May 31 16:35:46 2019 type=PROCTITLE msg=audit(1559313346.302:438): proctitle=2F7573722F7362696E2F736264002D76002D70002F7661722F72756E2F7362642E706964007761746368 type=SYSCALL msg=audit(1559313346.302:438): arch=c000003e syscall=257 success=yes exit=4 a0=ffffff9c a1=555abc530b20 a2=0 a3=0 items=0 ppid=3571 pid=3573 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="sbd" exe="/usr/sbin/sbd" subj=system_u:system_r:sbd_t:s0 key=(null) type=AVC msg=audit(1559313346.302:438): avc: denied { open } for pid=3573 comm="sbd" path="/sys/fs/cgroup/cpu,cpuacct/cpu.rt_runtime_us" dev="cgroup" ino=12 scontext=system_u:system_r:sbd_t:s0 tcontext=system_u:object_r:cgroup_t:s0 tclass=file permissive=1 type=AVC msg=audit(1559313346.302:438): avc: denied { read } for pid=3573 comm="sbd" name="cpu.rt_runtime_us" dev="cgroup" ino=12 scontext=system_u:system_r:sbd_t:s0 tcontext=system_u:object_r:cgroup_t:s0 tclass=file permissive=1 type=AVC msg=audit(1559313346.302:438): avc: denied { read } for pid=3573 comm="sbd" name="cpu" dev="tmpfs" ino=88 scontext=system_u:system_r:sbd_t:s0 tcontext=system_u:object_r:tmpfs_t:s0 tclass=lnk_file permissive=1 type=AVC msg=audit(1559313346.302:438): avc: denied { search } for pid=3573 comm="sbd" name="/" dev="tmpfs" ino=59 scontext=system_u:system_r:sbd_t:s0 tcontext=system_u:object_r:cgroup_t:s0 tclass=dir permissive=1 ---- time->Fri May 31 16:35:46 2019 type=PROCTITLE msg=audit(1559313346.303:439): proctitle=2F7573722F7362696E2F736264002D76002D70002F7661722F72756E2F7362642E706964007761746368 type=SYSCALL msg=audit(1559313346.303:439): arch=c000003e syscall=5 success=yes exit=0 a0=4 a1=7fff73944230 a2=7fff73944230 a3=0 items=0 ppid=3571 pid=3573 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="sbd" exe="/usr/sbin/sbd" subj=system_u:system_r:sbd_t:s0 key=(null) type=AVC msg=audit(1559313346.303:439): avc: denied { getattr } for pid=3573 comm="sbd" path="/sys/fs/cgroup/cpu,cpuacct/system.slice/cpu.rt_runtime_us" dev="cgroup" ino=31 scontext=system_u:system_r:sbd_t:s0 tcontext=system_u:object_r:cgroup_t:s0 tclass=file permissive=1 ---- time->Fri May 31 16:35:46 2019 type=PROCTITLE msg=audit(1559313346.303:440): proctitle=2F7573722F7362696E2F736264002D76002D70002F7661722F72756E2F7362642E706964007761746368 type=SYSCALL msg=audit(1559313346.303:440): arch=c000003e syscall=257 success=yes exit=4 a0=ffffff9c a1=555abc5310a4 a2=241 a3=1b6 items=0 ppid=3571 pid=3573 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="sbd" exe="/usr/sbin/sbd" subj=system_u:system_r:sbd_t:s0 key=(null) type=AVC msg=audit(1559313346.303:440): avc: denied { write } for pid=3573 comm="sbd" name="tasks" dev="cgroup" ino=5 scontext=system_u:system_r:sbd_t:s0 tcontext=system_u:object_r:cgroup_t:s0 tclass=file permissive=1