This is the first attempt at 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. -- 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.