提交 631d2b49 编写于 作者: E Eric Biggers 提交者: Paul Moore

selinux: constify write_op[]

write_op[] is never modified, so make it 'const'.
Signed-off-by: NEric Biggers <ebiggers@google.com>
Signed-off-by: NPaul Moore <paul@paul-moore.com>
上级 67b0b4e4
...@@ -773,7 +773,7 @@ static ssize_t sel_write_relabel(struct file *file, char *buf, size_t size); ...@@ -773,7 +773,7 @@ static ssize_t sel_write_relabel(struct file *file, char *buf, size_t size);
static ssize_t sel_write_user(struct file *file, char *buf, size_t size); static ssize_t sel_write_user(struct file *file, char *buf, size_t size);
static ssize_t sel_write_member(struct file *file, char *buf, size_t size); static ssize_t sel_write_member(struct file *file, char *buf, size_t size);
static ssize_t (*write_op[])(struct file *, char *, size_t) = { static ssize_t (*const write_op[])(struct file *, char *, size_t) = {
[SEL_ACCESS] = sel_write_access, [SEL_ACCESS] = sel_write_access,
[SEL_CREATE] = sel_write_create, [SEL_CREATE] = sel_write_create,
[SEL_RELABEL] = sel_write_relabel, [SEL_RELABEL] = sel_write_relabel,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册