diff options
author | Eric Biggers <ebiggers@google.com> | 2018-07-17 10:43:56 -0700 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2018-07-17 16:55:16 -0400 |
commit | 631d2b490569118c5e4d4e35983efe36d9798cb5 (patch) | |
tree | 80fed7e96860995184ab1e3809ac8412a960ca64 /security | |
parent | 67b0b4e4988f296ecc69fc8d09a2ce2741653ee0 (diff) | |
download | blackbird-op-linux-631d2b490569118c5e4d4e35983efe36d9798cb5.tar.gz blackbird-op-linux-631d2b490569118c5e4d4e35983efe36d9798cb5.zip |
selinux: constify write_op[]
write_op[] is never modified, so make it 'const'.
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security')
-rw-r--r-- | security/selinux/selinuxfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/selinuxfs.c b/security/selinux/selinuxfs.c index d64a06e84eec..eb7f12ab5c33 100644 --- a/security/selinux/selinuxfs.c +++ b/security/selinux/selinuxfs.c @@ -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_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_CREATE] = sel_write_create, [SEL_RELABEL] = sel_write_relabel, |