Bug 2042042 - SELinux is preventing cat from 'execute' accesses on the file /usr/bin/cat.
Summary: SELinux is preventing cat from 'execute' accesses on the file /usr/bin/cat.
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: usbguard
Version: 35
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Attila Lakatos
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:7e6bdb55a1d581f44ffc410bfdd...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-01-18 18:10 UTC by Petr Lautrbach
Modified: 2022-01-18 18:14 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-01-18 18:14:56 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.