HomeClusterLabs Projects

Filesystem: warn if mount GFS2 with SELinux but no 'context' in options
3244e39d9622Unpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Filesystem: warn if mount GFS2 with SELinux but no 'context' in options

Even GFS2 supports xattr but SELinux attempts to read sclabel element on
each file system object. It will cause a small performance drop due to
lock mechanism of GFS2 inode and xattr.

It's recommended for user to add 'context=' in options so disk reads of
extended attribute block can be avoided.
Here warn it if FSTYPE is GFS2 and SELinux is permissive/enforcing.

Signed-off-by: Su Yue <glass.su@suse.com>

Details

Provenance
Su Yue <glass.su@suse.com>Authored on Tue, Sep 2, 2:06 AM
Parents
rR52e588f2b6c3: Merge pull request #2066 from vvidic/shellcheck-redirection
Branches
Unknown
Tags
Unknown

Event Timeline