Unnamed repository
aa15e6b6dc
Dracut root fs is always mounted, but it's not guaranteed to success because we are in crash/kdump context. So selinux policy can not only depends on chroot load_policy. Per discussion with Vivek and Selinux people, relabel kdump files when the service restart. Currently only below cases are considerd: 1. target mounted in 1st kernel 2. target mounted as rw, if user mount it as 'ro' they will have to relabel the files by themselves. 3. save path is not masked, this means if /var/crash is mount to another disk which is different from dump target it will not visible to user so user need manually relabel them. 4. only local filesystem based targets. Tested on F19 machine. Tested local fs dump and network dump along with different save path to address above mentioned cases. Vivek: use function name is_dump_target_configured use getfattr -m "security.selinux" instead of ".*" Daniel: use restorecon instead of chcon. dyoung: keep minix in local fs list since it has not been deperacated yet. Vivek: wrap is_dump_target_configured checking in function path_to_be_relabeled dyoung: use awk instead of cut to print config value for different space delimeters dyoung: mute df error message: `df $_mnt/$_path 2>/dev/null` For nfs restorecon, since it will be in 3.11 kernel, we can add it when it's ok in Fedora. Signed-off-by: Dave Young <dyoung@redhat.com> Acked-by: Vivek Goyal <vgoyal@redhat.com> |
||
---|---|---|
po | ||
.gitignore | ||
98-kexec.rules | ||
dracut-kdump.sh | ||
dracut-module-setup.sh | ||
dracut-monitor_dd_progress | ||
firstboot_kdump.py | ||
kdump.conf | ||
kdump.conf.5 | ||
kdump.init | ||
kdump.service | ||
kdump.sysconfig | ||
kdump.sysconfig.i386 | ||
kdump.sysconfig.ia64 | ||
kdump.sysconfig.ppc64 | ||
kdump.sysconfig.s390x | ||
kdump.sysconfig.x86_64 | ||
kdumpctl | ||
kexec-kdump-howto.txt | ||
kexec-tools-2.0.3-build-makedumpfile-eppic-shared-object.patch | ||
kexec-tools-2.0.3-disable-kexec-test.patch | ||
kexec-tools.spec | ||
mkdumprd | ||
mkdumprd.8 | ||
rhcrashkernel-param | ||
sources | ||
zanata-notes.txt |