Skip to content

TOMOYO Linux

Kentaro Takeda lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8Introduce new LSM hooks where vfsmount is available.fs/namei.c fs/open.c include/linux/security.h +4 more+352 -00 replies
2/8Add in_execve flag into task_struct.fs/compat.c fs/exec.c include/linux/sched.h+8 -00 replies
3/8LSM adapter functions.security/tomoyo/tomoyo.c security/tomoyo/tomoyo.h+425 -02 replies
4/8Memory and pathname management functions.security/tomoyo/realpath.c security/tomoyo/realpath.h+783 -02 replies
5/8Common functions for TOMOYO Linux.security/tomoyo/common.c security/tomoyo/common.h+2573 -00 replies
6/8Domain transition handler.security/tomoyo/domain.c+854 -00 replies
7/8File operation restriction part.security/tomoyo/file.c+1149 -012 replies
8/8Kconfig and Makefilesecurity/Kconfig security/Makefile security/tomoyo/Kconfig +1 more+15 -00 replies

Reviews trailers per patch

1 of 8 patches has a Reviewed-by or Acked-by.

PatchPaul E. McKenney
1/8
2/8
3/8
4/8
5/8
6/8
7/8R-b
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [TOMOYO #10 (linux-next) 0/8] TOMOYO Linux

TOMOYO Linux is a pathname-based MAC extension (LSM module) for the Linux kernel.

Since the latest mmotm (2008-10-02-16-17) lacks CRED patchset by David Howells, we used linux-next (-next-20080919) which includes CRED patchset.

Diffrences from previous version are as follows.

*about LSM interfaces:
-added a new LSM hook security_path_clear() for clearing hash
table after VFS helper functions. It is needed to perform DAC before MAC.
-added a new config option CONFIG_SECURITY_PATH for new LSM hooks.

*about task_struct:
-added in_execve flag to allow LSM modules to determine whether
current process is in an execve operation or not so that they can behave differently while an execve operation is in progress.

*about TOMOYO body:
-made security_inode_*() return result of security_path_*() and
removed code clone of DAC.
-modified to check permisson of interpreter using
bprm->cred->security and current->in_execve flag.
-modified to use get_task_cred() for reading objective LSM context
of a task.
-modified to use bprm->cred->security to know the first call of
security_bprm_check() .
-modified to pass current->cred->security or bprm->cred->security as
parameter.

Thanks to Serge for sugguesting DAC-before-MAC workaround. Thanks to David for patiently reviewing in_execve patch.

Stephen, James, Chris, please review and respond (hopefully Ack).

Regards,
--