Bug 1722531 - SELinux prevents grub-boot-success.service from running /usr/sbin/grub2-set-bootflag
Summary: SELinux prevents grub-boot-success.service from running /usr/sbin/grub2-set-b...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 29
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-06-20 14:55 UTC by Orion Poplawski
Modified: 2019-08-18 01:56 UTC (History)
5 users (show)

Fixed In Version: selinux-policy-3.14.2-64.fc29
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-08-18 01:56:33 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Orion Poplawski 2019-06-20 14:55:13 UTC
Description of problem:

Jun 19 12:59:15 hostname systemd[43024]: Starting Mark boot as successful...
Jun 19 12:59:15 hostname systemd[62812]: grub-boot-success.service: Failed to execute command: Permission denied
Jun 19 12:59:15 hostname systemd[62812]: grub-boot-success.service: Failed at step EXEC spawning /usr/sbin/grub2-set-bootflag: Permission denied
Jun 19 12:59:15 hostname systemd[43024]: grub-boot-success.service: Main process exited, code=exited, status=203/EXEC
Jun 19 12:59:15 hostname systemd[43024]: grub-boot-success.service: Failed with result 'exit-code'.
Jun 19 12:59:15 hostname systemd[43024]: Failed to start Mark boot as successful.

type=AVC msg=audit(1561041855.865:83098): avc:  denied  { execute } for  pid=32568 comm="(bootflag)" name="grub2-set-bootflag" dev="dm-0" ino=1487994 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:bootloader_exec_t:s0 tclass=file permissive=0

Version-Release number of selected component (if applicable):
grub2-tools-2.02-62.fc29.x86_64
selinux-policy-3.14.2-60.fc29.noarch

grub-boot-success.service is a user service.

Comment 1 Lukas Vrabec 2019-06-20 15:45:45 UTC
commit 0d1a19200a51598db2e4faf75545bfe030274b21 (HEAD -> rawhide)
Author: Lukas Vrabec <lvrabec>
Date:   Thu Jun 20 17:45:19 2019 +0200

    Allow systemd to execute bootloader grub2-set-bootflag BZ(1722531)

Comment 2 Fedora Update System 2019-07-10 12:47:25 UTC
FEDORA-2019-2eec328cc1 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-2eec328cc1

Comment 3 Fedora Update System 2019-07-11 03:10:52 UTC
selinux-policy-3.14.2-62.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-2eec328cc1

Comment 4 Fedora Update System 2019-07-19 08:08:42 UTC
FEDORA-2019-8071724c9b has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-8071724c9b

Comment 5 Fedora Update System 2019-07-20 03:41:47 UTC
selinux-policy-3.14.2-63.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-8071724c9b

Comment 6 Fedora Update System 2019-08-02 07:50:14 UTC
FEDORA-2019-b51794f502 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-b51794f502

Comment 7 Fedora Update System 2019-08-03 02:02:17 UTC
selinux-policy-3.14.2-64.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-b51794f502

Comment 8 Fedora Update System 2019-08-18 01:56:33 UTC
selinux-policy-3.14.2-64.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.


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