diff options
| author | Paul Moore <paul@paul-moore.com> | 2025-02-18 17:50:39 -0500 |
|---|---|---|
| committer | Paul Moore <paul@paul-moore.com> | 2025-10-22 19:24:28 -0400 |
| commit | 3156bc814f21a976b25c1b4981dcb0f558302b27 (patch) | |
| tree | c5f0ee537e1835757c1dbab8c879cac9c8dd9b40 /security/selinux/include/initcalls.h | |
| parent | 82fe7932e84f618c6ec217203606f0c27ebef94b (diff) | |
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/include/initcalls.h')
| -rw-r--r-- | security/selinux/include/initcalls.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/security/selinux/include/initcalls.h b/security/selinux/include/initcalls.h new file mode 100644 index 000000000000..6674cf489473 --- /dev/null +++ b/security/selinux/include/initcalls.h @@ -0,0 +1,19 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * SELinux initcalls + */ + +#ifndef _SELINUX_INITCALLS_H +#define _SELINUX_INITCALLS_H + +int init_sel_fs(void); +int sel_netport_init(void); +int sel_netnode_init(void); +int sel_netif_init(void); +int sel_netlink_init(void); +int sel_ib_pkey_init(void); +int selinux_nf_ip_init(void); + +int selinux_initcall(void); + +#endif |