summaryrefslogtreecommitdiff
path: root/fs/afs/proc.c
diff options
context:
space:
mode:
authorPali Rohár <pali.rohar@gmail.com>2014-01-10 12:42:09 +1100
committerStephen Rothwell <sfr@canb.auug.org.au>2014-01-10 12:42:09 +1100
commitf28dc5243af1a8d07acf019b8beba0c9f811710b (patch)
tree2adaf38479e5f4e2ac0d4c68a9a4de98669501d6 /fs/afs/proc.c
parent61beee6c76e50ca7283e715733629af3f2016770 (diff)
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 t is not possible to write to cells and rootcell files which means that it is not possible to add new servers to cells, so it is not possible to access afs disks and afs driver is unusable. Signed-off-by: Pali Rohr <pali.rohar@gmail.com> Cc: David Howells <dhowells@redhat.com> Cc: <stable@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'fs/afs/proc.c')
-rw-r--r--fs/afs/proc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/afs/proc.c b/fs/afs/proc.c
index 526e4bbbde59..276cb6ed0b93 100644
--- a/fs/afs/proc.c
+++ b/fs/afs/proc.c
@@ -147,11 +147,11 @@ int afs_proc_init(void)
if (!proc_afs)
goto error_dir;
- p = proc_create("cells", 0, proc_afs, &afs_proc_cells_fops);
+ p = proc_create("cells", S_IFREG | S_IRUGO | S_IWUSR, proc_afs, &afs_proc_cells_fops);
if (!p)
goto error_cells;
- p = proc_create("rootcell", 0, proc_afs, &afs_proc_rootcell_fops);
+ p = proc_create("rootcell", S_IFREG | S_IRUGO | S_IWUSR, proc_afs, &afs_proc_rootcell_fops);
if (!p)
goto error_rootcell;