]> git.baikalelectronics.ru Git - kernel.git/commit
debugfs: add mode, uid and gid options
authorLudwig Nussel <ludwig.nussel@suse.de>
Wed, 25 Jan 2012 10:52:28 +0000 (11:52 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 26 Jan 2012 19:28:49 +0000 (11:28 -0800)
commit23dfa221b290192134277fd147eca187930e8065
tree37ec47c6e7a28ed21807899eae3e24dd38a3cc93
parent16cfb89e86df11e309af0f6851fe99018738fbfe
debugfs: add mode, uid and gid options

Cautious admins may want to restrict access to debugfs. Currently a
manual chown/chmod e.g. in an init script is needed to achieve that.
Distributions that want to make the mount options configurable need
to add extra config files. By allowing to set the root inode's uid,
gid and mode via mount options no such hacks are needed anymore.
Instead configuration becomes straight forward via fstab.

Signed-off-by: Ludwig Nussel <ludwig.nussel@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Documentation/filesystems/debugfs.txt
fs/debugfs/inode.c