Bug 1854471
Summary: | when staff_u user logs in, user pulseaudio service triggers { nnp_transition } denial | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Milos Malik <mmalik> |
Component: | selinux-policy | Assignee: | Zdenek Pytela <zpytela> |
Status: | CLOSED ERRATA | QA Contact: | Milos Malik <mmalik> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 8.3 | CC: | lvrabec, miturria, mmalik, plautrba, ssekidde |
Target Milestone: | rc | Keywords: | AutoVerified, Triaged |
Target Release: | 8.4 | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | No Doc Update | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2021-05-18 14:57:54 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1778780 |
Description
Milos Malik
2020-07-07 14:13:02 UTC
The user_u confined user is affected by the same issue: ---- type=PROCTITLE msg=audit(07/15/2020 13:15:15.759:715) : proctitle=/usr/bin/pulseaudio --daemonize=no type=PATH msg=audit(07/15/2020 13:15:15.759:715) : item=1 name=/lib64/ld-linux-x86-64.so.2 inode=8620977 dev=08:02 mode=file,755 ouid=root ogid=root rdev=00:00 obj=system_u:object_r:ld_so_t:s0 nametype=NORMAL cap_fp=none cap_fi=none cap_fe=0 cap_fver=0 cap_frootid=0 type=PATH msg=audit(07/15/2020 13:15:15.759:715) : item=0 name=/usr/bin/pulseaudio inode=621720 dev=08:02 mode=file,755 ouid=root ogid=root rdev=00:00 obj=system_u:object_r:pulseaudio_exec_t:s0 nametype=NORMAL cap_fp=none cap_fi=none cap_fe=0 cap_fver=0 cap_frootid=0 type=CWD msg=audit(07/15/2020 13:15:15.759:715) : cwd=/home/user-user type=EXECVE msg=audit(07/15/2020 13:15:15.759:715) : argc=2 a0=/usr/bin/pulseaudio a1=--daemonize=no type=SYSCALL msg=audit(07/15/2020 13:15:15.759:715) : arch=x86_64 syscall=execve success=yes exit=0 a0=0x55828183f330 a1=0x55828180bfa0 a2=0x55828180ae70 a3=0x55828184c460 items=2 ppid=38244 pid=38257 auid=user-user uid=user-user gid=user-user euid=user-user suid=user-user fsuid=user-user egid=user-user sgid=user-user fsgid=user-user tty=(none) ses=50 comm=pulseaudio exe=/usr/bin/pulseaudio subj=user_u:user_r:user_t:s0 key=(null) type=SELINUX_ERR msg=audit(07/15/2020 13:15:15.759:715) : op=security_bounded_transition seresult=denied oldcontext=user_u:user_r:user_t:s0 newcontext=user_u:user_r:pulseaudio_t:s0 type=AVC msg=audit(07/15/2020 13:15:15.759:715) : avc: denied { nnp_transition } for pid=38257 comm=(lseaudio) scontext=user_u:user_r:user_t:s0 tcontext=user_u:user_r:pulseaudio_t:s0 tclass=process2 permissive=0 ---- Can we fix both issues in this bug? Added with the following commit: commit 1d38248f221978798c56763d7dbb6ed5390c25d3 Author: secureworkstation <60398077+secureworkstation.github.com> Date: Tue Jan 28 17:43:08 2020 +0100 Allow to use nnp_transition in pulseaudio_role diff --git a/pulseaudio.if b/pulseaudio.if index 1e2fb9a0b..4508f98df 100644 --- a/pulseaudio.if +++ b/pulseaudio.if @@ -31,6 +31,7 @@ interface(`pulseaudio_role',` allow pulseaudio_t $2:process { signal signull }; allow $2 pulseaudio_t:process { signal signull sigkill }; + allow $2 pulseaudio_t:process2 nnp_transition; ps_process_pattern(pulseaudio_t, $2) allow pulseaudio_t $2:unix_stream_socket connectto; 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 (selinux-policy bug fix and enhancement update), 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-2021:1639 |