Re: [PATCH v1] LSM: Enable multiple calls to security_add_hooks() for the same LSM

From: James Morris
Date: Sun Apr 30 2017 - 19:29:55 EST


On Sat, 29 Apr 2017, MickaÃl SalaÃn wrote:

> Check if the registering LSM already registered hooks just before. This
> enable to split hook declarations into multiple files without
> registering multiple time the same LSM name, starting from commit
> d69dece5f5b6 ("LSM: Add /sys/kernel/security/lsm").

Please include a detailed rationale for these patches. The above tells us
very little about why they are needed.



--
James Morris
<jmorris@xxxxxxxxx>