diff options
author | Chengguang Xu <cgxu519@icloud.com> | 2018-02-10 14:18:06 +0800 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2018-04-02 10:12:45 +0200 |
commit | 11e1478df91cba4919c2bb011c49f659ebed3d16 (patch) | |
tree | a95c047240716052452eb124bcfdf8d22c572f4a /net | |
parent | 7ae7a828d9ac249b175f1b6d1c21c77720cd6098 (diff) | |
download | linux-stable-11e1478df91cba4919c2bb011c49f659ebed3d16.tar.gz linux-stable-11e1478df91cba4919c2bb011c49f659ebed3d16.tar.bz2 linux-stable-11e1478df91cba4919c2bb011c49f659ebed3d16.zip |
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 'net')
-rw-r--r-- | net/ceph/debugfs.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/net/ceph/debugfs.c b/net/ceph/debugfs.c index 1eef6806aa1a..0ef0f32a4570 100644 --- a/net/ceph/debugfs.c +++ b/net/ceph/debugfs.c @@ -418,7 +418,7 @@ int ceph_debugfs_client_init(struct ceph_client *client) goto out; client->monc.debugfs_file = debugfs_create_file("monc", - 0600, + 0400, client->debugfs_dir, client, &monc_show_fops); @@ -426,7 +426,7 @@ int ceph_debugfs_client_init(struct ceph_client *client) goto out; client->osdc.debugfs_file = debugfs_create_file("osdc", - 0600, + 0400, client->debugfs_dir, client, &osdc_show_fops); @@ -434,7 +434,7 @@ int ceph_debugfs_client_init(struct ceph_client *client) goto out; client->debugfs_monmap = debugfs_create_file("monmap", - 0600, + 0400, client->debugfs_dir, client, &monmap_show_fops); @@ -442,7 +442,7 @@ int ceph_debugfs_client_init(struct ceph_client *client) goto out; client->debugfs_osdmap = debugfs_create_file("osdmap", - 0600, + 0400, client->debugfs_dir, client, &osdmap_show_fops); @@ -450,7 +450,7 @@ int ceph_debugfs_client_init(struct ceph_client *client) goto out; client->debugfs_options = debugfs_create_file("client_options", - 0600, + 0400, client->debugfs_dir, client, &client_options_show_fops); |