]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
afs: proc cells and rootcell are writeable
authorPali Rohár <pali.rohar@gmail.com>
Tue, 28 Jan 2014 20:26:44 +0000 (20:26 +0000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 1 Feb 2014 18:59:39 +0000 (10:59 -0800)
commit1bda2ac071cdfad217856126859bc0dc88ee6f83
treef935d6bb989736011ccbf173e1322bd57c3afc4d
parent5a5e75f4714a592f31e57f248b8f5c866f278b8d
afs: proc cells and rootcell are writeable

Both proc files are writeable and used for configuring cells. But
there is missing correct mode flag for writeable files. Without
this patch both proc files are read only.

[ It turns out they aren't really read-only, since root can write to
  them even if the write bit isn't set due to CAP_DAC_OVERRIDE ]

Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/afs/proc.c