Re: [PATCH] Don't try to set selinux context for read-only mountpoints.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> diff --git a/storage/formats/fs.py b/storage/formats/fs.py
> index 22291d6..23f5d98 100644
> --- a/storage/formats/fs.py
> +++ b/storage/formats/fs.py
> @@ -624,7 +624,7 @@ class FS(DeviceFormat):
>          if rc:
>              raise FSError("mount failed: %s" % rc)
>  
> -        if flags.selinux:
> +        if flags.selinux and "ro" not in options.split(","):
>              ret = isys.resetFileContext(mountpoint, chroot)
>              log.info("set SELinux context for newly mounted filesystem "
>                       "root at %s to %s" %(mountpoint, ret))

A thousand times ACK.

- Chris

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux