This service will be undergoing maintenance at 00:00 UTC, 2017-10-23 It is expected to last about 30 minutes
Bug 1462382 - SELinux denies systemd-importd access to /var/lib/machines
SELinux denies systemd-importd access to /var/lib/machines
Status: NEW
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
All Linux
unspecified Severity unspecified
: ---
: ---
Assigned To: Lukas Vrabec
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2017-06-16 19:40 EDT by Aditya Shah
Modified: 2017-06-16 19:40 EDT (History)
7 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Aditya Shah 2017-06-16 19:40:33 EDT
I am not very informed about SELinux, so I am giving everything I can in this report. I was trying to import an image of CentOS using machinectl as,

$ sudo machinectl pull-raw

But it failed saying "Failed to transfer image: Access denied," with a SELinux alert.

The alert reports, that systemd-importd was denied read access to /var/lib/machines. I know that this directory is where machinectl pulls and stores images.

If I browse through nautilus and look at the properties of /var/lib/machines, its SELinux Context is system_u:object_r:systemd_machined_var_lib_t:s0.

Expected behaviour:

Image is pulled, extracted and stored under a new directory of the image name.

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