Bug 2042042

Summary: SELinux is preventing cat from 'execute' accesses on the file /usr/bin/cat.
Product: [Fedora] Fedora Reporter: Petr Lautrbach <plautrba>
Component: usbguardAssignee: Attila Lakatos <alakatos>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 35CC: alakatos, rsroka, zfridric
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:7e6bdb55a1d581f44ffc410bfdda701644b6df7c285f93995f6951e4c7e8cee2;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-01-18 18:14:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Petr Lautrbach 2022-01-18 18:10:41 UTC
Description of problem:
Hello

this is supposed to go to bugzilla.stage.redhat.com

if you read this, sorry for the noise.
SELinux is preventing cat from 'execute' accesses on the file /usr/bin/cat.

*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that cat should be allowed execute access on the cat file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# ausearch -c 'cat' --raw | audit2allow -M my-cat
# semodule -X 300 -i my-cat.pp

Additional Information:
Source Context                system_u:system_r:usbguard_t:s0-s0:c0.c1023
Target Context                system_u:object_r:bin_t:s0
Target Objects                /usr/bin/cat [ file ]
Source                        cat
Source Path                   cat
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           coreutils-8.32-31.fc35.x86_64
SELinux Policy RPM            selinux-policy-targeted-35.8-1.fc35.noarch
Local Policy RPM              usbguard-selinux-1.0.0-6.fc35.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 5.16.0-60.fc36.x86_64 #1 SMP
                              PREEMPT Mon Jan 10 13:00:29 UTC 2022 x86_64 x86_64
Alert Count                   1
First Seen                    2022-01-18 18:59:38 CET
Last Seen                     2022-01-18 18:59:38 CET
Local ID                      b11f6ab9-f07c-4775-b405-3abf72de84dd

Raw Audit Messages
type=AVC msg=audit(1642528778.711:10736): avc:  denied  { execute } for  pid=323402 comm="cat" path="/usr/bin/cat" dev="dm-1" ino=17126399 scontext=system_u:system_r:usbguard_t:s0-s0:c0.c1023 tcontext=system_u:object_r:bin_t:s0 tclass=file permissive=1


Hash: cat,usbguard_t,bin_t,file,execute

Version-Release number of selected component:
selinux-policy-targeted-35.8-1.fc35.noarch

Additional info:
component:      usbguard
reporter:       libreport-2.15.2
hashmarkername: setroubleshoot
kernel:         5.16.0-60.fc36.x86_64
type:           libreport

Comment 1 Petr Lautrbach 2022-01-18 18:14:56 UTC
Wrong server, sorry for the noise.