Bug 2276240 - SELinux is preventing selinux-autorel from 'getattr' accesses on the file /etc/passwd.
Summary: SELinux is preventing selinux-autorel from 'getattr' accesses on the file /et...
Keywords:
Status: CLOSED DUPLICATE of bug 2275266
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 40
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:2d598e762faaa4eefaba481bc7e...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-04-20 22:41 UTC by Ian Laurie
Modified: 2024-04-24 19:28 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-04-24 19:28:20 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (2.07 KB, text/plain)
2024-04-20 22:41 UTC, Ian Laurie
no flags Details
File: os_info (653 bytes, text/plain)
2024-04-20 22:41 UTC, Ian Laurie
no flags Details

Description Ian Laurie 2024-04-20 22:41:35 UTC
Description of problem:
SELinux is preventing selinux-autorel from 'getattr' accesses on the file /etc/passwd.

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

If you believe that selinux-autorel should be allowed getattr access on the passwd 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 'selinux-autorel' --raw | audit2allow -M my-selinuxautorel
# semodule -X 300 -i my-selinuxautorel.pp

Additional Information:
Source Context                system_u:system_r:selinux_autorelabel_generator_t:
                              s0
Target Context                system_u:object_r:passwd_file_t:s0
Target Objects                /etc/passwd [ file ]
Source                        selinux-autorel
Source Path                   selinux-autorel
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           setup-2.14.5-2.fc40.noarch
SELinux Policy RPM            selinux-policy-targeted-40.16-1.fc40.noarch
Local Policy RPM              selinux-policy-targeted-40.16-1.fc40.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 6.6.28-200.fc40.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Wed Apr 17 16:30:22 UTC 2024
                              x86_64
Alert Count                   4
First Seen                    2024-04-21 08:34:07 AEST
Last Seen                     2024-04-21 08:36:48 AEST
Local ID                      41655ded-2ebd-42cb-848b-ceeb7c12a489

Raw Audit Messages
type=AVC msg=audit(1713652608.826:762): avc:  denied  { getattr } for  pid=4623 comm="selinux-autorel" path="/etc/passwd" dev="sda3" ino=524210 scontext=system_u:system_r:selinux_autorelabel_generator_t:s0 tcontext=system_u:object_r:passwd_file_t:s0 tclass=file permissive=1


Hash: selinux-autorel,selinux_autorelabel_generator_t,passwd_file_t,file,getattr

Version-Release number of selected component:
selinux-policy-targeted-40.16-1.fc40.noarch

Additional info:
reporter:       libreport-2.17.15
reason:         SELinux is preventing selinux-autorel from 'getattr' accesses on the file /etc/passwd.
package:        selinux-policy-targeted-40.16-1.fc40.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.6.28-200.fc40.x86_64
component:      selinux-policy

Comment 1 Ian Laurie 2024-04-20 22:41:37 UTC
Created attachment 2028120 [details]
File: description

Comment 2 Ian Laurie 2024-04-20 22:41:39 UTC
Created attachment 2028121 [details]
File: os_info

Comment 3 Zdenek Pytela 2024-04-24 19:28:20 UTC

*** This bug has been marked as a duplicate of bug 2275266 ***


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