From eabacb53c341b2044305c2de50bd69041db1793a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pali=20Roh=C3=A1r?= Date: Fri, 3 Jan 2014 14:10:35 +1100 Subject: [PATCH] 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. Signed-off-by: Pali Rohr Cc: David Howells Signed-off-by: Andrew Morton --- fs/afs/proc.c | 4 ++-- 1 file 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; -- 2.39.5