Skip to content

Commit 8d80ce8

Browse files
committed
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6: (71 commits) SELinux: inode_doinit_with_dentry drop no dentry printk SELinux: new permission between tty audit and audit socket SELinux: open perm for sock files smack: fixes for unlabeled host support keys: make procfiles per-user-namespace keys: skip keys from another user namespace keys: consider user namespace in key_permission keys: distinguish per-uid keys in different namespaces integrity: ima iint radix_tree_lookup locking fix TOMOYO: Do not call tomoyo_realpath_init unless registered. integrity: ima scatterlist bug fix smack: fix lots of kernel-doc notation TOMOYO: Don't create securityfs entries unless registered. TOMOYO: Fix exception policy read failure. SELinux: convert the avc cache hash list to an hlist SELinux: code readability with avc_cache SELinux: remove unused av.decided field SELinux: more careful use of avd in avc_has_perm_noaudit SELinux: remove the unused ae.used SELinux: check seqno when updating an avc_node ...
2 parents 1646df4 + 703a3cd commit 8d80ce8

63 files changed

Lines changed: 8818 additions & 626 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
What: security/ima/policy
2+
Date: May 2008
3+
Contact: Mimi Zohar <zohar@us.ibm.com>
4+
Description:
5+
The Trusted Computing Group(TCG) runtime Integrity
6+
Measurement Architecture(IMA) maintains a list of hash
7+
values of executables and other sensitive system files
8+
loaded into the run-time of this system. At runtime,
9+
the policy can be constrained based on LSM specific data.
10+
Policies are loaded into the securityfs file ima/policy
11+
by opening the file, writing the rules one at a time and
12+
then closing the file. The new policy takes effect after
13+
the file ima/policy is closed.
14+
15+
rule format: action [condition ...]
16+
17+
action: measure | dont_measure
18+
condition:= base | lsm
19+
base: [[func=] [mask=] [fsmagic=] [uid=]]
20+
lsm: [[subj_user=] [subj_role=] [subj_type=]
21+
[obj_user=] [obj_role=] [obj_type=]]
22+
23+
base: func:= [BPRM_CHECK][FILE_MMAP][INODE_PERMISSION]
24+
mask:= [MAY_READ] [MAY_WRITE] [MAY_APPEND] [MAY_EXEC]
25+
fsmagic:= hex value
26+
uid:= decimal value
27+
lsm: are LSM specific
28+
29+
default policy:
30+
# PROC_SUPER_MAGIC
31+
dont_measure fsmagic=0x9fa0
32+
# SYSFS_MAGIC
33+
dont_measure fsmagic=0x62656572
34+
# DEBUGFS_MAGIC
35+
dont_measure fsmagic=0x64626720
36+
# TMPFS_MAGIC
37+
dont_measure fsmagic=0x01021994
38+
# SECURITYFS_MAGIC
39+
dont_measure fsmagic=0x73636673
40+
41+
measure func=BPRM_CHECK
42+
measure func=FILE_MMAP mask=MAY_EXEC
43+
measure func=INODE_PERM mask=MAY_READ uid=0
44+
45+
The default policy measures all executables in bprm_check,
46+
all files mmapped executable in file_mmap, and all files
47+
open for read by root in inode_permission.
48+
49+
Examples of LSM specific definitions:
50+
51+
SELinux:
52+
# SELINUX_MAGIC
53+
dont_measure fsmagic=0xF97CFF8C
54+
55+
dont_measure obj_type=var_log_t
56+
dont_measure obj_type=auditd_log_t
57+
measure subj_user=system_u func=INODE_PERM mask=MAY_READ
58+
measure subj_role=system_r func=INODE_PERM mask=MAY_READ
59+
60+
Smack:
61+
measure subj_user=_ func=INODE_PERM mask=MAY_READ

‎Documentation/kernel-parameters.txt‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ parameter is applicable:
4444
FB The frame buffer device is enabled.
4545
HW Appropriate hardware is enabled.
4646
IA-64 IA-64 architecture is enabled.
47+
IMA Integrity measurement architecture is enabled.
4748
IOSCHED More than one I/O scheduler is enabled.
4849
IP_PNP IP DHCP, BOOTP, or RARP is enabled.
4950
ISAPNP ISA PnP code is enabled.
@@ -902,6 +903,15 @@ and is between 256 and 4096 characters. It is defined in the file
902903
ihash_entries= [KNL]
903904
Set number of hash buckets for inode cache.
904905

906+
ima_audit= [IMA]
907+
Format: { "0" | "1" }
908+
0 -- integrity auditing messages. (Default)
909+
1 -- enable informational integrity auditing messages.
910+
911+
ima_hash= [IMA]
912+
Formt: { "sha1" | "md5" }
913+
default: "sha1"
914+
905915
in2000= [HW,SCSI]
906916
See header of drivers/scsi/in2000.c.
907917

‎MAINTAINERS‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2216,6 +2216,11 @@ M: stefanr@s5r6.in-berlin.de
22162216
L: linux1394-devel@lists.sourceforge.net
22172217
S: Maintained
22182218

2219+
INTEGRITY MEASUREMENT ARCHITECTURE (IMA)
2220+
P: Mimi Zohar
2221+
M: zohar@us.ibm.com
2222+
S: Supported
2223+
22192224
IMS TWINTURBO FRAMEBUFFER DRIVER
22202225
L: linux-fbdev-devel@lists.sourceforge.net (moderated for non-subscribers)
22212226
S: Orphan
@@ -3844,6 +3849,7 @@ M: jmorris@namei.org
38443849
L: linux-kernel@vger.kernel.org
38453850
L: linux-security-module@vger.kernel.org (suggested Cc:)
38463851
T: git kernel.org:pub/scm/linux/kernel/git/jmorris/security-testing-2.6.git
3852+
W: http://security.wiki.kernel.org/
38473853
S: Supported
38483854

38493855
SECURITY CONTACT
@@ -4285,6 +4291,19 @@ L: tlan-devel@lists.sourceforge.net (subscribers-only)
42854291
W: http://sourceforge.net/projects/tlan/
42864292
S: Maintained
42874293

4294+
TOMOYO SECURITY MODULE
4295+
P: Kentaro Takeda
4296+
M: takedakn@nttdata.co.jp
4297+
P: Tetsuo Handa
4298+
M: penguin-kernel@I-love.SAKURA.ne.jp
4299+
L: linux-kernel@vger.kernel.org (kernel issues)
4300+
L: tomoyo-users-en@lists.sourceforge.jp (subscribers-only, for developers and users in English)
4301+
L: tomoyo-dev@lists.sourceforge.jp (subscribers-only, for developers in Japanese)
4302+
L: tomoyo-users@lists.sourceforge.jp (subscribers-only, for users in Japanese)
4303+
W: http://tomoyo.sourceforge.jp/
4304+
T: quilt http://svn.sourceforge.jp/svnroot/tomoyo/trunk/2.2.x/tomoyo-lsm/patches/
4305+
S: Maintained
4306+
42884307
TOSHIBA ACPI EXTRAS DRIVER
42894308
P: John Belmonte
42904309
M: toshiba_acpi@memebeam.org

0 commit comments

Comments
 (0)