For dracut_args mount, the local machine may not have the target
mounted, so we can't do relabel.
So skip it to let users ensure all the correctness.
Signed-off-by: Xunlei Pang <xlpang(a)redhat.com>
---
kdumpctl | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/kdumpctl b/kdumpctl
index d4e0050..8971bd1 100755
--- a/kdumpctl
+++ b/kdumpctl
@@ -1025,6 +1025,11 @@ selinux_relabel()
{
local _path _i _attr
+ # Skip relabel in case of dracut_args mount.
+ if is_mount_in_dracut_args; then
+ return
+ fi
+
_path=$(path_to_be_relabeled)
if [ -z "$_path" ] || ! [ -d "$_path" ] ; then
return
--
1.8.3.1