Name

security_module_enable — Load given security module on boot ?

Synopsis

int __init security_module_enable (struct security_operations *  ops);

Arguments

ops

a pointer to the struct security_operations that is to be checked.

Description

Each LSM must pass this method before registering its own operations to avoid security registration races. This method may also be used to check if your LSM is currently loaded during kernel initialization.

Return true if

-The passed LSM is the one chosen by user at boot time, -or user didsn't specify a specific LSM and we're the first to ask for registeration permissoin, -or the passed LSM is currently loaded. Otherwise, return false.