Re: selinux_init() is not executed in booting in kernel 5.15

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Aug 5, 2023 at 2:53 AM Henry Zhang <henryzhang62@xxxxxxxxx> wrote:
>
> 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?

Hi Henry,

Can you share your kernel build config? If you don't know what it is
or how to get it, then the next question would be: How did you
obtain/build the kernel in question?

-- 
Ondrej Mosnacek
Senior Software Engineer, Linux Security - SELinux kernel
Red Hat, Inc.
_______________________________________________
selinux mailing list -- selinux@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to selinux-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/selinux@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux