OSDN Git Service

staging/lustre/llite: move root_squash from sysfs to debugfs
authorOleg Drokin <green@linuxhacker.ru>
Wed, 7 Dec 2016 22:41:27 +0000 (17:41 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 14 May 2017 12:00:20 +0000 (14:00 +0200)
commit47b7257fc20fd7977325babbb13b9610ffca82a9
treee25124c6c2b7e097b43e316f554fa7401ebe7f5c
parent0b77c687d4e0bdc6db9bedace1e6886504ea43ef
staging/lustre/llite: move root_squash from sysfs to debugfs

commit 4c13990e35b9f053857d4ad83bf0f58e612ec414 upstream.

root_squash control got accidentally moved to sysfs instead of
debugfs, and the write side of it was also broken expecting a
userspace buffer.
It contains both uid and gid values in a single file, so debugfs
is a clear place for it.

Reported-by: Al Viro <viro@ZenIV.linux.org.uk>
Fixes: c948390f10ccc "fix inconsistencies of root squash feature"
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/lproc_llite.c