aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2025-03-18 09:33:29 +0100
committerPaul Moore <paul@paul-moore.com>2025-04-11 16:29:51 -0400
commit9cc034be10a52c30719f8b9436d81b981421bfb7 (patch)
tree55b5ec9c6c86d657c148a83118e00d893c14c051 /security/selinux
parentselinux: constify network address pointer (diff)
downloadlinux-rng-9cc034be10a52c30719f8b9436d81b981421bfb7.tar.xz
linux-rng-9cc034be10a52c30719f8b9436d81b981421bfb7.zip
selinux: contify network namespace pointer
The network namespace 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')
-rw-r--r--security/selinux/include/objsec.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/include/objsec.h b/security/selinux/include/objsec.h
index c88cae81ee4c..b11c97c9feed 100644
--- a/security/selinux/include/objsec.h
+++ b/security/selinux/include/objsec.h
@@ -82,7 +82,7 @@ struct ipc_security_struct {
};
struct netif_security_struct {
- struct net *ns; /* network namespace */
+ const struct net *ns; /* network namespace */
int ifindex; /* device index */
u32 sid; /* SID for this interface */
};