Originally, all selinux.* xattrs were forbidden, causing
for example Samba's acl_xattr module which uses security.NTACL
to fail without the 'selinux' mount option, which is confusing
at least. This change specializes the check to the security.selinux
attribute, so other selinux.* attributes work with or without the option.
Change-Id: I9d3083123efbf403f20572cfb325a300ce2e90d9
Signed-off-by: Michael Adam <obnox@samba.org>
}
if (!priv->selinux) {
- if (strncmp (name, "security.", 9) == 0) {
+ if (strcmp (name, "security.selinux") == 0) {
send_fuse_err (this, finh, EOPNOTSUPP);
GF_FREE (finh);
return;
}
if (!priv->selinux) {
- if (strncmp (name, "security.", 9) == 0) {
+ if (strcmp (name, "security.selinux") == 0) {
op_errno = ENODATA;
goto err;
}