tomoyo: preparation step for building as a loadable LSM module
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Mon, 23 Sep 2024 10:00:21 +0000 (19:00 +0900)
committerTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Mon, 23 Sep 2024 10:00:21 +0000 (19:00 +0900)
commit268225a1de1a021bac4884e7d61fe047345cc9be
treeacd18a3ba0b208740dfb71514db1833c9490c4bb
parentde5cb0dcb74c294ec527eddfe5094acfdb21ff21
tomoyo: preparation step for building as a loadable LSM module

In order to allow Makefile to generate tomoyo.ko as output, rename
tomoyo.c to hooks.h and cut out LSM hook registration part that will be
built into vmlinux from hooks.h to init.c . Also, update comments and
relocate some variables. No behavior changes.

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
security/tomoyo/Makefile
security/tomoyo/gc.c
security/tomoyo/hooks.h [new file with mode: 0644]
security/tomoyo/init.c [new file with mode: 0644]
security/tomoyo/securityfs_if.c
security/tomoyo/tomoyo.c [deleted file]
security/tomoyo/util.c