summaryrefslogtreecommitdiff
path: root/security/selinux/ss/conditional.c
diff options
context:
space:
mode:
authorOndrej Mosnacek <omosnace@redhat.com>2021-03-30 16:16:46 +0300
committerPaul Moore <paul@paul-moore.com>2021-05-11 04:35:02 +0300
commite1cce3a3cb28ba39d50166a78da91c8b5aae4af1 (patch)
treeb2a1e32735c42cb0958d8b04150b16e33b932a82 /security/selinux/ss/conditional.c
parentfba472bb38e2d2b9a676364ade4be4e5df665a82 (diff)
downloadlinux-e1cce3a3cb28ba39d50166a78da91c8b5aae4af1.tar.xz
selinux: constify some avtab function arguments
This makes the code a bit easier to reason about. Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security/selinux/ss/conditional.c')
-rw-r--r--security/selinux/ss/conditional.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/security/selinux/ss/conditional.c b/security/selinux/ss/conditional.c
index f6dfa9c821d6..2ec6e5cd25d9 100644
--- a/security/selinux/ss/conditional.c
+++ b/security/selinux/ss/conditional.c
@@ -254,7 +254,8 @@ struct cond_insertf_data {
struct cond_av_list *other;
};
-static int cond_insertf(struct avtab *a, struct avtab_key *k, struct avtab_datum *d, void *ptr)
+static int cond_insertf(struct avtab *a, const struct avtab_key *k,
+ const struct avtab_datum *d, void *ptr)
{
struct cond_insertf_data *data = ptr;
struct policydb *p = data->p;