Bug 2180632 - SELinux is preventing cifs.idmap from 'write' accesses on the sock_file /var/lib/sss/pipes/nss.
Summary: SELinux is preventing cifs.idmap from 'write' accesses on the sock_file /var/...
Keywords:
Status: CLOSED DUPLICATE of bug 2180634
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 38
Hardware: x86_64
OS: Unspecified
medium
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:972428ee82385c7ddc39a4ab827...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-03-21 23:26 UTC by James
Modified: 2023-09-19 04:34 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2023-03-23 19:27:59 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (1.96 KB, text/plain)
2023-03-21 23:26 UTC, James
no flags Details
File: os_info (756 bytes, text/plain)
2023-03-21 23:26 UTC, James
no flags Details

Description James 2023-03-21 23:26:05 UTC
Description of problem:
Attempting to automount an SMB3 share with sec=krb5.
SELinux is preventing cifs.idmap from 'write' accesses on the sock_file /var/lib/sss/pipes/nss.

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

If you believe that cifs.idmap should be allowed write access on the nss sock_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 'cifs.idmap' --raw | audit2allow -M my-cifsidmap
# semodule -X 300 -i my-cifsidmap.pp

Additional Information:
Source Context                system_u:system_r:keyutils_request_t:s0
Target Context                system_u:object_r:sssd_var_lib_t:s0
Target Objects                /var/lib/sss/pipes/nss [ sock_file ]
Source                        cifs.idmap
Source Path                   cifs.idmap
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-38.8-2.fc38.noarch
Local Policy RPM              selinux-policy-targeted-38.8-2.fc38.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 6.2.7-300.fc38.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Fri Mar 17 16:02:49 UTC 2023
                              x86_64
Alert Count                   1
First Seen                    2023-03-21 23:24:45 GMT
Last Seen                     2023-03-21 23:24:45 GMT
Local ID                      15e3c220-f46d-47d4-8da2-43489d08e8ce

Raw Audit Messages
type=AVC msg=audit(1679441085.440:254): avc:  denied  { write } for  pid=3444 comm="cifs.idmap" name="nss" dev="dm-0" ino=94801869 scontext=system_u:system_r:keyutils_request_t:s0 tcontext=system_u:object_r:sssd_var_lib_t:s0 tclass=sock_file permissive=1


Hash: cifs.idmap,keyutils_request_t,sssd_var_lib_t,sock_file,write

Version-Release number of selected component:
selinux-policy-targeted-38.8-2.fc38.noarch

Additional info:
reporter:       libreport-2.17.8
reason:         SELinux is preventing cifs.idmap from 'write' accesses on the sock_file /var/lib/sss/pipes/nss.
package:        selinux-policy-targeted-38.8-2.fc38.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.2.7-300.fc38.x86_64
comment:        Attempting to automount an SMB3 share with sec=krb5.
component:      selinux-policy

Comment 1 James 2023-03-21 23:26:07 UTC
Created attachment 1952593 [details]
File: description

Comment 2 James 2023-03-21 23:26:09 UTC
Created attachment 1952594 [details]
File: os_info

Comment 3 James 2023-03-23 19:27:59 UTC

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

Comment 4 Red Hat Bugzilla 2023-09-19 04:34:40 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days


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