Bug 1260223 - Failed to start reboot.target: Access denied
Summary: Failed to start reboot.target: Access denied
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-09-04 20:04 UTC by Richard W.M. Jones
Modified: 2015-09-28 07:50 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-09-07 08:23:48 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1229416 0 unspecified CLOSED Failed to start reboot.target: Access denied 2021-02-22 00:41:40 UTC

Internal Links: 1229416

Description Richard W.M. Jones 2015-09-04 20:04:05 UTC
Description of problem:

# reboot
Failed to start reboot.target: Access denied

The same symptoms as Bug 1229416 but with a much newer version
of systemd.

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

systemd-225-1.fc24.x86_64

How reproducible:

100%

Steps to Reproduce:
1. Use the 'reboot' command.

Seems like it might be an SELinux issue:

Sep 04 15:59:46 rawhide polkitd[677]: Registered Authentication Agent for unix-process:19993:4295918 (system bus name :1.93 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_GB.UTF-8)
Sep 04 15:59:46 rawhide audit[1]: USER_AVC pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='avc:  denied  { start } for auid=1000 uid=0 gid=0 path="/usr/lib/systemd/system/reboot.target" cmdline="reboot" scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=system_u:object_r:power_unit_file_t:s0 tclass=service
                                   exe="/usr/lib/systemd/systemd" sauid=0 hostname=? addr=? terminal=?'
Sep 04 15:59:46 rawhide polkitd[677]: Unregistered Authentication Agent for unix-process:19993:4295918 (system bus name :1.93, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_GB.UTF-8) (disconnected from bus)

audit2allow says:

#============= unconfined_t ==============

#!!!! This avc is allowed in the current policy
allow unconfined_t power_unit_file_t:service start;

Comment 1 Richard W.M. Jones 2015-09-04 20:05:37 UTC
Interestingly, rebooting after (hard) reboot works fine, so I guess
SELinux policy and systemd got out of sync, or it's some
*Kit nonsense.

Comment 2 Jan Synacek 2015-09-07 08:23:48 UTC
Happened to me as well, just after an update. It looks that something was out of sync. I can't reproduce it anymore.

Comment 3 François Kooman 2015-09-22 14:22:42 UTC
I loaded the F23 beta OpenStack image in OpenStack and after updating the system I had the same problem using `sudo reboot`. 

Send ctrl+alt+del in console works and after the reboot `sudo reboot` works again.

Comment 4 François Kooman 2015-09-25 07:41:06 UTC
It is the same with the F22 OpenStack image by the way...

Comment 5 François Kooman 2015-09-28 07:49:06 UTC
$ sudo dnf reinstall systemd

This fixes it.


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