Skip to contentSkip to conversation

Patch to change *setfilecon to not return ENOSUP if

PATCH In review Daniel J Walsh 1 participant 1 message Oct 24, 2013 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 11/74 Patch to change *setfilecon to not return ENOSUP if

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This patch might be somewhat controversial, basically makes *setfilecon commands not fail if the caller tries to set the file context on a file system that does not support XATTRs, and the file context it is trying to set matches the current file context.

setfilecon("/mnt/nfshare/dwalsh", "system_u:object_r:nfs_t:s0")

Would not fail for example.

This patch looks good to me. acked.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlJpJfoACgkQrlYvE4MpobO99QCcDi2w/WdXxj7E7xj9gq8am85x 4j8AoNQZm75o1mV5WtbzvE3Zamxw5I24
=Spvh
-----END PGP SIGNATURE-----