Skip to content

lsm stacking v0.2: intro

[email protected] lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 20 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12lsm stacking v0.2: don't default to dummy_##hooksecurity/security.c+6 -60 replies
2/12lsm stacking v0.2: replace void* security with hlistfs/compat.c fs/exec.c fs/inode.c +11 more+20 -190 replies
3/12lsm stacking v0.2: introduce security_*_value APIinclude/linux/security-stack.h include/linux/security.h security/security.c+155 -00 replies
4/12lsm stacking v0.2: stacker documentationDocumentation/LSM-stacking.txt+157 -00 replies
5/12lsm stacking v0.2: actual stacker modulesecurity/Kconfig security/Makefile security/stacker.c+1502 -044 replies
6/12lsm stacking v0.2: stackable capability lsmsecurity/Kconfig security/Makefile security/cap_stack.c +1 more+124 -10 replies
7/12lsm stacking v0.2: selinux: update security structssecurity/selinux/include/objsec.h+11 -80 replies
8/12lsm stacking v0.2: selinux: use security_*_value APIsecurity/selinux/hooks.c security/selinux/selinuxfs.c+300 -1560 replies
9/12lsm stacking v0.2: selinux: remove secondary supportsecurity/selinux/hooks.c+35 -2310 replies
10/12lsm stacking v0.2: hook completeness verificationinclude/linux/security.h scripts/lsm_verify_hooks.sh+48 -00 replies
11/12lsm stacking v0.2: /proc/$$/attr/ sharingsecurity/stacker.c+100 -250 replies
12/12lsm stacking v0.2: update seclvl for stackingsecurity/seclvl.c+91 -100 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [patch 0/12] lsm stacking v0.2: intro

Hi,

The set of patches to follow introduces support for stacking LSMs. This is its second posting to lkml. I am sending it out in the hopes of soliciting feedback and testing, with the obvious eventual goal of mainline adoption.

The patches mainly do the following:

1. Introduce the stacker LSM.
2. Change the kernel object void * security fields to be hlists, and introduce an api for modules to share these.
3. Modify SELinux to make use of stacker.
4. Modify seclvl to use stacker.

Motivation:

The purpose of these patches is to enable stacking multiple security modules. There are several cases where this would be very useful. It eases the testing of new modules with distro kernels, as it makes it possible to stack new modules with selinux and capabilities -- for instance if a user is running fedora. Second, it enables running selinux (or LIDS, etc) with integrity verification modules. (Digsig is an example of these, and within a few months hopefully the TPM-enabled slim+evm modules, which verifies integrity of file contents and extended attributes such as selinux contexts
(http://www.acsac.org/2004/workshop/David-Safford.pdf) will be released for mainline inclusion). Thirdly, there are systems where running selinux is not practical for footprint reasons, and the security goals are easily expressed as a very small module. For instance, it might be desirable to confine a web browser on a zaurus, or to implement a site security policy on old hardware as per
http://mail.wirex.com/pipermail/linux-security-module/2005-May/6071.html

Performance impact of the actual stacker module is negligable. The security_{get,set,del,add}_value API does have a small performance impact. Please see
http://marc.theaimsgroup.com/?l=linux-security-module&m=111820455332752&w=2
and
http://marc.theaimsgroup.com/?l=linux-security-module&m=111824326500837&w=2
if interested in the performance results. I am certainly interested in ways to further speed up security_get_value.

thanks,
-serge