Hi guys,

I am porting selinux from kernel 4.14 to 5.15. Everything works fine in kernel 4.14.
keep same /etc/selinux/conf and kernel parameters to enable SELinux.

But the selinux_init() is not executed when kernel 5.15 boots because no "SELinux: Initializing" is seen in dmesg.

This selinux_init() is defined in http://tomoyo.osdn.jp/cgi-bin/lxr/source/security/selinux/hooks.c

 DEFINE_LSM(selinux) = {
7288         .name = "selinux",
7289         .flags = LSM_FLAG_LEGACY_MAJOR | LSM_FLAG_EXCLUSIVE,
7290         .enabled = &selinux_enabled_boot,
7291         .blobs = &selinux_blob_sizes,
7292         .init = selinux_init,
7293 };

My question is why the selinux_init() is not called when kernel 5.15 boots up?

---henry