diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-10-25 03:45:31 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-10-25 03:45:31 -0400 |
| commit | 36b8d186e6cc8e32cb5227f5645a58e1bc0af190 (patch) | |
| tree | 1000ad26e189e6ff2c53fb7eeff605f59c7ad94e /security | |
| parent | cd85b557414fe4cd44ea6608825e96612a5fe2b2 (diff) | |
| parent | c45ed235abf1b0b6666417e3c394f18717976acd (diff) | |
Merge branch 'next' of git://selinuxproject.org/~jmorris/linux-security
* 'next' of git://selinuxproject.org/~jmorris/linux-security: (95 commits)
TOMOYO: Fix incomplete read after seek.
Smack: allow to access /smack/access as normal user
TOMOYO: Fix unused kernel config option.
Smack: fix: invalid length set for the result of /smack/access
Smack: compilation fix
Smack: fix for /smack/access output, use string instead of byte
Smack: domain transition protections (v3)
Smack: Provide information for UDS getsockopt(SO_PEERCRED)
Smack: Clean up comments
Smack: Repair processing of fcntl
Smack: Rule list lookup performance
Smack: check permissions from user space (v2)
TOMOYO: Fix quota and garbage collector.
TOMOYO: Remove redundant tasklist_lock.
TOMOYO: Fix domain transition failure warning.
TOMOYO: Remove tomoyo_policy_memory_lock spinlock.
TOMOYO: Simplify garbage collector.
TOMOYO: Fix make namespacecheck warnings.
target: check hex2bin result
encrypted-keys: check hex2bin result
...
Diffstat (limited to 'security')
72 files changed, 4164 insertions, 1201 deletions
diff --git a/security/Kconfig b/security/Kconfig index e0f08b52e4ab..51bd5a0b69ae 100644 --- a/security/Kconfig +++ b/security/Kconfig | |||
| @@ -38,7 +38,9 @@ config TRUSTED_KEYS | |||
| 38 | 38 | ||
| 39 | config ENCRYPTED_KEYS | 39 | config ENCRYPTED_KEYS |
| 40 | tristate "ENCRYPTED KEYS" | 40 | tristate "ENCRYPTED KEYS" |
| 41 | depends on KEYS && TRUSTED_KEYS | 41 | depends on KEYS |
| 42 | select CRYPTO | ||
| 43 | select CRYPTO_HMAC | ||
| 42 | select CRYPTO_AES | 44 | select CRYPTO_AES |
| 43 | select CRYPTO_CBC | 45 | select CRYPTO_CBC |
| 44 | select CRYPTO_SHA256 | 46 | select CRYPTO_SHA256 |
| @@ -186,7 +188,7 @@ source security/smack/Kconfig | |||
| 186 | source security/tomoyo/Kconfig | 188 | source security/tomoyo/Kconfig |
| 187 | source security/apparmor/Kconfig | 189 | source security/apparmor/Kconfig |
| 188 | 190 | ||
| 189 | source security/integrity/ima/Kconfig | 191 | source security/integrity/Kconfig |
| 190 | 192 | ||
| 191 | choice | 193 | choice |
| 192 | prompt "Default security module" | 194 | prompt "Default security module" |
diff --git a/security/Makefile b/security/Makefile index 8bb0fe9e1ca9..a5e502f8a05b 100644 --- a/security/Makefile +++ b/security/Makefile | |||
| @@ -24,5 +24,5 @@ obj-$(CONFIG_SECURITY_APPARMOR) += apparmor/built-in.o | |||
| 24 | obj-$(CONFIG_CGROUP_DEVICE) += device_cgroup.o | 24 | obj-$(CONFIG_CGROUP_DEVICE) += device_cgroup.o |
| 25 | 25 | ||
| 26 | # Object integrity file lists | 26 | # Object integrity file lists |
| 27 | subdir-$(CONFIG_IMA) += integrity/ima | 27 | subdir-$(CONFIG_INTEGRITY) += integrity |
| 28 | obj-$(CONFIG_IMA) += integrity/ima/built-in.o | 28 | obj-$(CONFIG_INTEGRITY) += integrity/built-in.o |
diff --git a/security/apparmor/apparmorfs.c b/security/apparmor/apparmorfs.c index 0848292982a2..69ddb47787b2 100644 --- a/security/apparmor/apparmorfs.c +++ b/security/apparmor/apparmorfs.c | |||
| @@ -200,7 +200,7 @@ void __init aa_destroy_aafs(void) | |||
| 200 | * | 200 | * |
| 201 | * Returns: error on failure | 201 | * Returns: error on failure |
| 202 | */ | 202 | */ |
| 203 | int __init aa_create_aafs(void) | 203 | static int __init aa_create_aafs(void) |
| 204 | { | 204 | { |
| 205 | int error; | 205 | int error; |
| 206 | 206 | ||
diff --git a/security/apparmor/ipc.c b/security/apparmor/ipc.c index 649fad88869b..7ee05c6f3c64 100644 --- a/security/apparmor/ipc.c +++ b/security/apparmor/ipc.c | |||
| @@ -19,6 +19,7 @@ | |||
| 19 | #include "include/capability.h" | 19 | #include "include/capability.h" |
| 20 | #include "include/context.h" | 20 | #include "include/context.h" |
| 21 | #include "include/policy.h" | 21 | #include "include/policy.h" |
| 22 | #include "include/ipc.h" | ||
| 22 | 23 | ||
| 23 | /* call back to audit ptrace fields */ | 24 | /* call back to audit ptrace fields */ |
| 24 | static void audit_cb(struct audit_buffer *ab, void *va) | 25 | static void audit_cb(struct audit_buffer *ab, void *va) |
diff --git a/security/apparmor/lib.c b/security/apparmor/lib.c index b82e383beb77..9516948041ad 100644 --- a/security/apparmor/lib.c +++ b/security/apparmor/lib.c | |||
| @@ -18,6 +18,7 @@ | |||
| 18 | #include <linux/vmalloc.h> | 18 | #include <linux/vmalloc.h> |
| 19 | 19 | ||
| 20 | #include "include/audit.h" | 20 | #include "include/audit.h" |
| 21 | #include "include/apparmor.h" | ||
| 21 | 22 | ||
| 22 | 23 | ||
| 23 | /** | 24 | /** |
diff --git a/security/apparmor/policy_unpack.c b/security/apparmor/policy_unpack.c index d6d9a57b5652..741dd13e089b 100644 --- a/security/apparmor/policy_unpack.c +++ b/security/apparmor/policy_unpack.c | |||
| @@ -381,11 +381,11 @@ static bool unpack_trans_table(struct aa_ext *e, struct aa_profile *profile) | |||
| 381 | profi | ||
