]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
fusefs: Fix another obscure permission handling bug
authorasomers <asomers@FreeBSD.org>
Mon, 6 May 2019 16:54:35 +0000 (16:54 +0000)
committerasomers <asomers@FreeBSD.org>
Mon, 6 May 2019 16:54:35 +0000 (16:54 +0000)
commitd4fb8d71ef0d6785d6324b04a7efb00a89928ca8
tree42efae96485feb50090364c37ad2bba6ff15b534
parentfaa534ddc902985348cdf8c0196f95e1d403c5fe
fusefs: Fix another obscure permission handling bug

Don't allow unprivileged users to set SGID on files to whose group they
don't belong.  This is slightly different than what POSIX says we should do
(clear sgid on return from a successful chmod), but it matches what UFS
currently does.

Reported by: pjdfstest
Sponsored by: The FreeBSD Foundation
sys/fs/fuse/fuse_vnops.c
tests/sys/fs/fusefs/default_permissions.cc