On 2020/06/09 10:28, Alexei Starovoitov wrote: >> TOMOYO LSM module uses call_usermodehelper() from tomoyo_load_policy() in order to >> load and apply security policy. What is so nice with fork_usermode_blob() compared >> to existing call_usermodehelper(), at the cost of confusing LSM modules by allowing >> file-less execve() request from fork_usermode_blob() ? > > For the same reason you did commit 0e4ae0e0dec6 ("TOMOYO: Make several options configurable.") > Quoting your words from that commit: > "To be able to start using enforcing mode from the early stage of boot sequence, > this patch adds support for activating access control without calling external > policy loader program." > I can't catch what you mean. That commit is to allow not to call usermode helper. You can't start a usermode helper which requires access to filesystems (e.g. ELF loaders, shared libraries) before call_usermodehelper() can start a usermode helper which requires access to filesystems. Under such a restricted condition, what is nice with starting a usermode helper? Programs which can be started under such condition will be quite limited. My question is: why you can't use existing call_usermodehelper() (if you need to call a usermode helper) ?