Commit 11e1478d authored by Chengguang Xu's avatar Chengguang Xu Committed by Ilya Dryomov

libceph, ceph: change permission for readonly debugfs entries

Remove write permission for debugfs entries which only have readonly
function.
Signed-off-by: default avatarChengguang Xu <cgxu519@icloud.com>
Reviewed-by: default avatarIlya Dryomov <idryomov@gmail.com>
Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
parent 7ae7a828
...@@ -260,7 +260,7 @@ int ceph_fs_debugfs_init(struct ceph_fs_client *fsc) ...@@ -260,7 +260,7 @@ int ceph_fs_debugfs_init(struct ceph_fs_client *fsc)
goto out; goto out;
fsc->debugfs_mdsmap = debugfs_create_file("mdsmap", fsc->debugfs_mdsmap = debugfs_create_file("mdsmap",
0600, 0400,
fsc->client->debugfs_dir, fsc->client->debugfs_dir,
fsc, fsc,
&mdsmap_show_fops); &mdsmap_show_fops);
...@@ -268,7 +268,7 @@ int ceph_fs_debugfs_init(struct ceph_fs_client *fsc) ...@@ -268,7 +268,7 @@ int ceph_fs_debugfs_init(struct ceph_fs_client *fsc)
goto out; goto out;
fsc->debugfs_mds_sessions = debugfs_create_file("mds_sessions", fsc->debugfs_mds_sessions = debugfs_create_file("mds_sessions",
0600, 0400,
fsc->client->debugfs_dir, fsc->client->debugfs_dir,
fsc, fsc,
&mds_sessions_show_fops); &mds_sessions_show_fops);
...@@ -276,7 +276,7 @@ int ceph_fs_debugfs_init(struct ceph_fs_client *fsc) ...@@ -276,7 +276,7 @@ int ceph_fs_debugfs_init(struct ceph_fs_client *fsc)
goto out; goto out;
fsc->debugfs_mdsc = debugfs_create_file("mdsc", fsc->debugfs_mdsc = debugfs_create_file("mdsc",
0600, 0400,
fsc->client->debugfs_dir, fsc->client->debugfs_dir,
fsc, fsc,
&mdsc_show_fops); &mdsc_show_fops);
...@@ -292,7 +292,7 @@ int ceph_fs_debugfs_init(struct ceph_fs_client *fsc) ...@@ -292,7 +292,7 @@ int ceph_fs_debugfs_init(struct ceph_fs_client *fsc)
goto out; goto out;
fsc->debugfs_dentry_lru = debugfs_create_file("dentry_lru", fsc->debugfs_dentry_lru = debugfs_create_file("dentry_lru",
0600, 0400,
fsc->client->debugfs_dir, fsc->client->debugfs_dir,
fsc, fsc,
&dentry_lru_show_fops); &dentry_lru_show_fops);
......
...@@ -418,7 +418,7 @@ int ceph_debugfs_client_init(struct ceph_client *client) ...@@ -418,7 +418,7 @@ int ceph_debugfs_client_init(struct ceph_client *client)
goto out; goto out;
client->monc.debugfs_file = debugfs_create_file("monc", client->monc.debugfs_file = debugfs_create_file("monc",
0600, 0400,
client->debugfs_dir, client->debugfs_dir,
client, client,
&monc_show_fops); &monc_show_fops);
...@@ -426,7 +426,7 @@ int ceph_debugfs_client_init(struct ceph_client *client) ...@@ -426,7 +426,7 @@ int ceph_debugfs_client_init(struct ceph_client *client)
goto out; goto out;
client->osdc.debugfs_file = debugfs_create_file("osdc", client->osdc.debugfs_file = debugfs_create_file("osdc",
0600, 0400,
client->debugfs_dir, client->debugfs_dir,
client, client,
&osdc_show_fops); &osdc_show_fops);
...@@ -434,7 +434,7 @@ int ceph_debugfs_client_init(struct ceph_client *client) ...@@ -434,7 +434,7 @@ int ceph_debugfs_client_init(struct ceph_client *client)
goto out; goto out;
client->debugfs_monmap = debugfs_create_file("monmap", client->debugfs_monmap = debugfs_create_file("monmap",
0600, 0400,
client->debugfs_dir, client->debugfs_dir,
client, client,
&monmap_show_fops); &monmap_show_fops);
...@@ -442,7 +442,7 @@ int ceph_debugfs_client_init(struct ceph_client *client) ...@@ -442,7 +442,7 @@ int ceph_debugfs_client_init(struct ceph_client *client)
goto out; goto out;
client->debugfs_osdmap = debugfs_create_file("osdmap", client->debugfs_osdmap = debugfs_create_file("osdmap",
0600, 0400,
client->debugfs_dir, client->debugfs_dir,
client, client,
&osdmap_show_fops); &osdmap_show_fops);
...@@ -450,7 +450,7 @@ int ceph_debugfs_client_init(struct ceph_client *client) ...@@ -450,7 +450,7 @@ int ceph_debugfs_client_init(struct ceph_client *client)
goto out; goto out;
client->debugfs_options = debugfs_create_file("client_options", client->debugfs_options = debugfs_create_file("client_options",
0600, 0400,
client->debugfs_dir, client->debugfs_dir,
client, client,
&client_options_show_fops); &client_options_show_fops);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment