]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
selinux: contify network namespace pointer
authorChristian Göttsche <cgzones@googlemail.com>
Tue, 18 Mar 2025 08:33:29 +0000 (09:33 +0100)
committerPaul Moore <paul@paul-moore.com>
Fri, 11 Apr 2025 20:29:51 +0000 (16:29 -0400)
The network namespace is not modified.

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/include/objsec.h

index c88cae81ee4c52e84639545f328db3b3fb3e354d..b11c97c9feedd66d42811fb890c858501559d230 100644 (file)
@@ -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 */
 };