diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2025-03-18 11:33:34 +0300 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2025-04-11 23:29:50 +0300 |
commit | 47a1a15645d558699765f0f7e82032302ae47a46 (patch) | |
tree | a47ad8fc169c6c2d44afef07b77dbe4741e8dbd5 /security/selinux/ss | |
parent | 0af2f6be1b4281385b618cb86ad946eded089ac8 (diff) | |
download | linux-47a1a15645d558699765f0f7e82032302ae47a46.tar.xz |
selinux: constify network address pointer
The network address, either an IPv4 or IPv6 one, is not modified.
Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security/selinux/ss')
-rw-r--r-- | security/selinux/ss/services.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/selinux/ss/services.c b/security/selinux/ss/services.c index e431772c6168..ec9ddfccc7ee 100644 --- a/security/selinux/ss/services.c +++ b/security/selinux/ss/services.c @@ -2643,7 +2643,7 @@ static bool match_ipv6_addrmask(const u32 input[4], const u32 addr[4], const u32 * @out_sid: security identifier */ int security_node_sid(u16 domain, - void *addrp, + const void *addrp, u32 addrlen, u32 *out_sid) { @@ -2672,7 +2672,7 @@ retry: if (addrlen != sizeof(u32)) goto out; - addr = *((u32 *)addrp); + addr = *((const u32 *)addrp); c = policydb->ocontexts[OCON_NODE]; while (c) { |