Bug 2184204 - SELinux is preventing userdel from 'read' accesses on the directory overlay.
Summary: SELinux is preventing userdel from 'read' accesses on the directory overlay.
Keywords:
Status: CLOSED DUPLICATE of bug 2184203
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:56dc27932a4831540bf6700ab86...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-04-03 22:59 UTC by Mikhail
Modified: 2023-04-04 18:08 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-04-04 18:08:39 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (1.96 KB, text/plain)
2023-04-03 22:59 UTC, Mikhail
no flags Details
File: os_info (770 bytes, text/plain)
2023-04-03 22:59 UTC, Mikhail
no flags Details

Description Mikhail 2023-04-03 22:59:09 UTC
Description of problem:
Delete linux user
SELinux is preventing userdel from 'read' accesses on the directory overlay.

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

If you believe that userdel should be allowed read access on the overlay directory 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 'userdel' --raw | audit2allow -M my-userdel
# semodule -X 300 -i my-userdel.pp

Additional Information:
Source Context                system_u:system_r:useradd_t:s0
Target Context                unconfined_u:object_r:container_ro_file_t:s0
Target Objects                overlay [ dir ]
Source                        userdel
Source Path                   userdel
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-38.9-1.fc39.noarch
Local Policy RPM              selinux-policy-targeted-38.9-1.fc39.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 6.3.0-
                              0.rc4.20230331git62bad54b26db.39.fc39.x86_64+debug
                              #1 SMP PREEMPT_DYNAMIC Sat Apr 1 01:48:34 +05 2023
                              x86_64
Alert Count                   1
First Seen                    2023-04-04 03:58:05 +05
Last Seen                     2023-04-04 03:58:05 +05
Local ID                      3e09a621-449b-4ba6-92aa-76bcffc20c4d

Raw Audit Messages
type=AVC msg=audit(1680562685.727:1149): avc:  denied  { read } for  pid=687064 comm="userdel" name="overlay" dev="nvme1n1" ino=84448506 scontext=system_u:system_r:useradd_t:s0 tcontext=unconfined_u:object_r:container_ro_file_t:s0 tclass=dir permissive=1


Hash: userdel,useradd_t,container_ro_file_t,dir,read

Version-Release number of selected component:
selinux-policy-targeted-38.9-1.fc39.noarch

Additional info:
reporter:       libreport-2.17.9
reason:         SELinux is preventing userdel from 'read' accesses on the directory overlay.
package:        selinux-policy-targeted-38.9-1.fc39.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.3.0-0.rc4.20230331git62bad54b26db.39.fc39.x86_64+debug
comment:        Delete linux user
component:      selinux-policy

Comment 1 Mikhail 2023-04-03 22:59:11 UTC
Created attachment 1955622 [details]
File: description

Comment 2 Mikhail 2023-04-03 22:59:13 UTC
Created attachment 1955623 [details]
File: os_info

Comment 3 Daniel Walsh 2023-04-04 18:08:39 UTC

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


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