[RFC v4]Provide a method for detecting labeling support on a file system

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

 



This is the third version of a patchset to allow user space programs to easily
detect if a mount supports labeling. The first patch condenses the existing
flag fields in the super block security struct into the flags field and fixes
the existing code to make use of the condensed field. The second patch adds
handling for a new mount option called supports_labeling. If this is passed in
to the mount command it is ignored by the security server, however the string
is added to the output of /proc/mounts to indicate labeling support. The last
patch makes the genfs labeling behavior behave like context mounts. Currently
instead of returning EOPNOTSUPP for attempts to set a label on a genfs
filesystem it may also fail based on permission check potentially confusing
the user.

There are two differences between this patch set and version three. The first
is the string supports_labeling has been replaced with seclabel as labeling is
to generic of a term with respect to file systems. The second change is that the
string has been added to the appropriate function in the selinux code such that
it gets stripped out of the mount options that are eventually handed to the
file system to parse.

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@xxxxxxxxxxxxx with
the words "unsubscribe selinux" without quotes as the message.

[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux