Bug 984549

Summary: system-config-kdump needs write access to /boot/efi/EFI/fedora/grub.cfg
Product: [Fedora] Fedora Reporter: Martin Milata <mmilata>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: dominick.grift, dwalsh, mgrepl, mmilata
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: selinux-policy-3.11.1-100.fc18 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-08-15 02:54:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 983017    
Attachments:
Description Flags
grep system-config-k /var/log/audit/audit.log
none
ausearch -m avc -ts recent none

Description Martin Milata 2013-07-15 13:19:49 UTC
As reported in #983017, system-config-kdump is unable to write bootloader configuration on systems that boot using EFI. In addition to fixing s-c-kdump, the SELinux policy needs to be modified to allow s-c-kdump write access to /boot/efi/EFI/fedora/grub.cfg.

It might be relevant that the EFI partition on /boot/efi has FAT32 file system.

Can you also please fix this for F19, or should I open separate bug report?

Comment 1 Martin Milata 2013-07-15 13:33:24 UTC
Created attachment 773757 [details]
grep system-config-k /var/log/audit/audit.log

The output of "grep system-config-k /var/log/audit/audit.log" on Fedora 19. (I don't currently have access to EFI-capable machine with F18, sorry.)

Comment 2 Miroslav Grepl 2013-07-16 12:36:19 UTC
Could you re-test it with

# setenforce 0
# echo "-w /etc/shadow -p w" >> /etc/audit/audit.rules

restart auditd and re-test and run

# ausearch -m avc -ts recent

Comment 3 Martin Milata 2013-07-16 12:57:06 UTC
Created attachment 774225 [details]
ausearch -m avc -ts recent

Attaching requested information.

Comment 4 Daniel Walsh 2013-07-16 17:27:03 UTC
system-config-kdump should be run with 

#! /usr/bin/python -Es

It should not be using /root/.local.

We should allow it to write to dosfs_t if /boot/efi/EFI/fedora/grub.cfg. is a FAT file system?

Comment 5 Martin Milata 2013-07-16 17:36:51 UTC
> We should allow it to write to dosfs_t if /boot/efi/EFI/fedora/grub.cfg. is
> a FAT file system?

I believe that would solve this issue.

Comment 6 Daniel Walsh 2013-07-17 17:08:28 UTC
207c8051a3092e75a1a7c260daf22bfa65806ae2 fixes this in git,  IE Allows system-config-kdump to write to dosfs_t files

Comment 7 Miroslav Grepl 2013-07-22 11:30:55 UTC
Back ported.

Comment 10 Fedora Update System 2013-08-05 05:41:24 UTC
selinux-policy-3.11.1-99.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-99.fc18

Comment 11 Fedora Update System 2013-08-06 00:14:57 UTC
Package selinux-policy-3.11.1-99.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.11.1-99.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-14256/selinux-policy-3.11.1-99.fc18
then log in and leave karma (feedback).

Comment 12 Fedora Update System 2013-08-07 11:13:03 UTC
selinux-policy-3.11.1-100.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-100.fc18

Comment 13 Fedora Update System 2013-08-15 02:54:31 UTC
selinux-policy-3.11.1-100.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.