Bug 1862687 - SELinux is preventing systemd-machine from 'add_name' accesses on the directory io.systemd.Machine.
Summary: SELinux is preventing systemd-machine from 'add_name' accesses on the directo...
Keywords:
Status: CLOSED DUPLICATE of bug 1862686
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:d5c2a1e9da1c7acb83b4e93401e...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-08-01 10:03 UTC by Mikhail
Modified: 2020-08-07 15:34 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-08-07 15:34:54 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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 ***


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