aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph
diff options
context:
space:
mode:
authorChengguang Xu <cgxu519@icloud.com>2018-02-10 01:18:06 -0500
committerIlya Dryomov <idryomov@gmail.com>2018-04-02 04:12:45 -0400
commit11e1478df91cba4919c2bb011c49f659ebed3d16 (patch)
treea95c047240716052452eb124bcfdf8d22c572f4a /fs/ceph
parent7ae7a828d9ac249b175f1b6d1c21c77720cd6098 (diff)
libceph, ceph: change permission for readonly debugfs entries
Remove write permission for debugfs entries which only have readonly function. Signed-off-by: Chengguang Xu <cgxu519@icloud.com> Reviewed-by: Ilya Dryomov <idryomov@gmail.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph')
-rw-r--r--fs/ceph/debugfs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/ceph/debugfs.c b/fs/ceph/debugfs.c
index 644def813754..abdf98deeec4 100644
--- a/fs/ceph/debugfs.c
+++ b/fs/ceph/debugfs.c
@@ -260,7 +260,7 @@ int ceph_fs_debugfs_init(struct ceph_fs_client *fsc)
260 goto out; 260 goto out;
261 261
262 fsc->debugfs_mdsmap = debugfs_create_file("mdsmap", 262 fsc->debugfs_mdsmap = debugfs_create_file("mdsmap",
263 0600, 263 0400,
264 fsc->client->debugfs_dir, 264 fsc->client->debugfs_dir,
265 fsc, 265 fsc,
266 &mdsmap_show_fops); 266 &mdsmap_show_fops);
@@ -268,7 +268,7 @@ int ceph_fs_debugfs_init(struct ceph_fs_client *fsc)
268 goto out; 268 goto out;
269 269
270 fsc->debugfs_mds_sessions = debugfs_create_file("mds_sessions", 270 fsc->debugfs_mds_sessions = debugfs_create_file("mds_sessions",
271 0600, 271 0400,
272 fsc->client->debugfs_dir, 272 fsc->client->debugfs_dir,
273 fsc, 273 fsc,
274 &mds_sessions_show_fops); 274 &mds_sessions_show_fops);
@@ -276,7 +276,7 @@ int ceph_fs_debugfs_init(struct ceph_fs_client *fsc)
276 goto out; 276 goto out;
277 277
278 fsc->debugfs_mdsc = debugfs_create_file("mdsc", 278 fsc->debugfs_mdsc = debugfs_create_file("mdsc",
279 0600, 279 0400,
280 fsc->client->debugfs_dir, 280 fsc->client->debugfs_dir,
281 fsc, 281 fsc,
282 &mdsc_show_fops); 282 &mdsc_show_fops);
@@ -292,7 +292,7 @@ int ceph_fs_debugfs_init(struct ceph_fs_client *fsc)
292 goto out; 292 goto out;
293 293
294 fsc->debugfs_dentry_lru = debugfs_create_file("dentry_lru", 294 fsc->debugfs_dentry_lru = debugfs_create_file("dentry_lru",
295 0600, 295 0400,
296 fsc->client->debugfs_dir, 296 fsc->client->debugfs_dir,
297 fsc, 297 fsc,
298 &dentry_lru_show_fops); 298 &dentry_lru_show_fops);