Bug 1862687

Summary: SELinux is preventing systemd-machine from 'add_name' accesses on the directory io.systemd.Machine.
Product: [Fedora] Fedora Reporter: Mikhail <mikhail.v.gavrilov>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dwalsh, grepl.miroslav, lvrabec, mmalik, plautrba, vmojzis, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:d5c2a1e9da1c7acb83b4e93401e1ec6177372aaa72504afa8e2fdea0c9b07c2a;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-08-07 15:34:54 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 Mikhail 2020-08-01 10:03:09 UTC
Description of problem:
SELinux is preventing systemd-machine from 'add_name' accesses on the directory io.systemd.Machine.

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

If you believe that systemd-machine should be allowed add_name access on the io.systemd.Machine 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 'systemd-machine' --raw | audit2allow -M my-systemdmachine
# semodule -X 300 -i my-systemdmachine.pp

Additional Information:
Source Context                system_u:system_r:systemd_machined_t:s0
Target Context                system_u:object_r:systemd_userdbd_runtime_t:s0
Target Objects                io.systemd.Machine [ dir ]
Source                        systemd-machine
Source Path                   systemd-machine
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-3.14.6-20.fc33.noarch
Local Policy RPM              selinux-policy-targeted-3.14.6-20.fc33.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 5.8.0-0.rc7.1.fc33.x86_64 #1 SMP
                              Thu Jul 30 18:24:26 UTC 2020 x86_64 x86_64
Alert Count                   1
First Seen                    2020-08-01 14:59:40 +05
Last Seen                     2020-08-01 14:59:40 +05
Local ID                      32f89e5c-ae31-46f7-ad8b-8ec7a9b6b2bf

Raw Audit Messages
type=AVC msg=audit(1596275980.755:121): avc:  denied  { add_name } for  pid=1143 comm="systemd-machine" name="io.systemd.Machine" scontext=system_u:system_r:systemd_machined_t:s0 tcontext=system_u:object_r:systemd_userdbd_runtime_t:s0 tclass=dir permissive=1


Hash: systemd-machine,systemd_machined_t,systemd_userdbd_runtime_t,dir,add_name

Version-Release number of selected component:
selinux-policy-targeted-3.14.6-20.fc33.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.13.1
hashmarkername: setroubleshoot
kernel:         5.8.0-0.rc7.1.fc33.x86_64
type:           libreport

Comment 1 Zdenek Pytela 2020-08-07 15:34:54 UTC

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