Bug 1392443 - systemctl returning Access denied for a non-existant service due to SELinux restrictions
Summary: systemctl returning Access denied for a non-existant service due to SELinux r...
Keywords:
Status: CLOSED DUPLICATE of bug 1337041
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: selinux-policy
Version: 7.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Lukas Vrabec
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-07 14:11 UTC by Nenad Peric
Modified: 2016-11-14 14:10 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-14 14:10:47 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Nenad Peric 2016-11-07 14:11:10 UTC
Description of problem:

When trying to enable a service through systemd, which actually does not exist, systemctl will return Access Denied instead of a more useful No such file or directory.

Version-Release number of selected component (if applicable):

selinux-policy-3.13.1-102.el7_3.4.noarch
systemd-219-30.el7_3.3.x86_64

How reproducible:
Everytime


Steps to Reproduce:
1. Try to enable a non-existant service
2. systemctl returns Access denied
3.

Actual results:

[root@galaxy ~]# systemctl enable foobar
Failed to execute operation: Access denied

[root@galaxy ~]# setenforce 0

[root@galaxy ~]# systemctl enable foobar
Failed to execute operation: No such file or directory 



Expected results:


Additional info:

Comment 1 Milos Malik 2016-11-07 14:19:11 UTC
The problem is already known:

* https://bugzilla.redhat.com/show_bug.cgi?id=1337041#c6

Comment 4 Lukas Vrabec 2016-11-14 14:10:47 UTC

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


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