Bug 1900234

Summary: I can't launch gnome-terminal as a staff_u user
Product: [Fedora] Fedora Reporter: Carl G. <carlg>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 34CC: dwalsh, grepl.miroslav, lvrabec, mmalik, omosnace, plautrba, vmojzis, wdh, zpytela
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-12-23 14:01:48 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: 1767779    

Description Carl G. 2020-11-21 16:32:36 UTC
Description of problem:

I can't launch gnome-terminal as a staff_u user

type=AVC msg=audit(1605974596.409:758): avc:  denied  { read } for  pid=1430 comm="systemd" name="99-uresourced.conf" dev="tmpfs" ino=1651 scontext=staff_u:staff_r:staff_t:s0-s0:c0.c1023 tcontext=system_u:object_r:init_var_run_t:s0 tclass=file permissive=0

type=AVC msg=audit(1605974596.326:757): avc:  denied  { create } for  pid=1430 comm="systemd" name="chr" scontext=staff_u:staff_r:staff_t:s0-s0:c0.c1023 tcontext=system_u:object_r:user_tmp_t:s0 tclass=chr_file permissive=0

audit2allow:
#============= staff_t ==============
allow staff_t init_var_run_t:file read;
allow staff_t user_tmp_t:chr_file create;

Comment 1 Ben Cotton 2021-02-09 16:24:20 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 34 development cycle.
Changing version to 34.

Comment 2 Zdenek Pytela 2021-12-23 14:01:48 UTC
These denials do not seem to pop up in current distribution.