summaryrefslogtreecommitdiff
path: root/security/selinux/netport.c
diff options
context:
space:
mode:
authorPaul Moore <paul@paul-moore.com>2025-02-19 01:50:39 +0300
committerPaul Moore <paul@paul-moore.com>2025-10-23 02:24:28 +0300
commit3156bc814f21a976b25c1b4981dcb0f558302b27 (patch)
treec5f0ee537e1835757c1dbab8c879cac9c8dd9b40 /security/selinux/netport.c
parent82fe7932e84f618c6ec217203606f0c27ebef94b (diff)
downloadlinux-3156bc814f21a976b25c1b4981dcb0f558302b27.tar.xz
selinux: move initcalls to the LSM framework
SELinux currently has a number of initcalls so we've created a new function, selinux_initcall(), which wraps all of these initcalls so that we have a single initcall function that can be registered with the LSM framework. Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security/selinux/netport.c')
-rw-r--r--security/selinux/netport.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/security/selinux/netport.c b/security/selinux/netport.c
index 6fd7da4b3576..9e62f7285e81 100644
--- a/security/selinux/netport.c
+++ b/security/selinux/netport.c
@@ -29,6 +29,7 @@
#include <net/ip.h>
#include <net/ipv6.h>
+#include "initcalls.h"
#include "netport.h"
#include "objsec.h"
@@ -218,7 +219,7 @@ void sel_netport_flush(void)
spin_unlock_bh(&sel_netport_lock);
}
-static __init int sel_netport_init(void)
+int __init sel_netport_init(void)
{
int iter;
@@ -232,5 +233,3 @@ static __init int sel_netport_init(void)
return 0;
}
-
-__initcall(sel_netport_init);