Bug 1328358 - Access denied while performing service related operation using systemctl
Summary: Access denied while performing service related operation using systemctl
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: systemd
Version: 7.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: systemd-maint
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-19 08:09 UTC by Abhijeet Kasurde
Modified: 2017-06-06 01:53 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-06 13:19:09 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Abhijeet Kasurde 2016-04-19 08:09:30 UTC
Description of problem:
while restarting service, user gets access denied. Unable to find any specific reason.

# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.2 (Maipo)
# sestatus 
SELinux status:                 enabled
SELinuxfs mount:                /sys/fs/selinux
SELinux root directory:         /etc/selinux
Loaded policy name:             targeted
Current mode:                   enforcing
Mode from config file:          enforcing
Policy MLS status:              enabled
Policy deny_unknown status:     allowed
Max kernel policy version:      28

# rpm -qa|grep systemd
systemd-libs-219-19.el7_2.7.x86_64
systemd-sysv-219-19.el7_2.7.x86_64
systemd-python-219-19.el7_2.7.x86_64
systemd-219-19.el7_2.7.x86_64

# systemctl status httpd
Failed to get properties: Access denied

# systemctl restart httpd
Failed to get properties: Access denied


Version-Release number of selected component (if applicable):
systemd-219-19.el7_2.7.x86_64

How reproducible:
100%

Steps to Reproduce:
mentioned as above

Actual results:
Access denied to all operations related to service using systemctl

Expected results:
All operations related to service should be successful.

Additional info:
Executing `systemctl daemon-reexec` resolves the issue.

Comment 2 Michal Sekletar 2016-04-20 08:26:15 UTC
Do you see any AVC deny message in audit.log?

Comment 3 Abhijeet Kasurde 2016-04-20 08:36:14 UTC
No. There are no AVC deny messages related to any service which I am working on.

Comment 4 Lukáš Nykrýn 2016-04-20 11:24:09 UTC
Could you send us the logs from that machine? If this is reproducible, can you boot with debug on kernel cmdline, reproduce the issue and send us output of journalctl -b?

Comment 5 Jan Synacek 2016-06-06 13:19:09 UTC
Closing for the lack of input.

Comment 7 huang yi xuan 2017-06-06 01:53:00 UTC
i found the same issue. 
]$ systemctl status irqbalance
Failed to get properties: Access denied

Comment 8 huang yi xuan 2017-06-06 01:53:55 UTC
~]$ cat /etc/redhat-release 
CentOS Linux release 7.3.1611 (Core)

not sure what kind of log you need?


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