diff options
Diffstat (limited to 'security')
| -rw-r--r-- | security/Makefile | 3 | ||||
| -rw-r--r-- | security/keys/keyctl.c | 12 | ||||
| -rw-r--r-- | security/min_addr.c | 2 | ||||
| -rw-r--r-- | security/tomoyo/file.c | 1 |
4 files changed, 14 insertions, 4 deletions
diff --git a/security/Makefile b/security/Makefile index bb44e350c618..da20a193c8dd 100644 --- a/security/Makefile +++ b/security/Makefile | |||
| @@ -8,7 +8,8 @@ subdir-$(CONFIG_SECURITY_SMACK) += smack | |||
| 8 | subdir-$(CONFIG_SECURITY_TOMOYO) += tomoyo | 8 | subdir-$(CONFIG_SECURITY_TOMOYO) += tomoyo |
| 9 | 9 | ||
| 10 | # always enable default capabilities | 10 | # always enable default capabilities |
| 11 | obj-y += commoncap.o min_addr.o | 11 | obj-y += commoncap.o |
| 12 | obj-$(CONFIG_MMU) += min_addr.o | ||
| 12 | 13 | ||
| 13 | # Object file lists | 14 | # Object file lists |
| 14 | obj-$(CONFIG_SECURITY) += security.o capability.o | 15 | obj-$(CONFIG_SECURITY) += security.o capability.o |
diff --git a/security/keys/keyctl.c b/security/keys/keyctl.c index 06ec722897be..e9c2e7c584d9 100644 --- a/security/keys/keyctl.c +++ b/security/keys/keyctl.c | |||
| @@ -1194,7 +1194,7 @@ long keyctl_get_security(key_serial_t keyid, | |||
| 1194 | * have the authorisation token handy */ | 1194 | * have the authorisation token handy */ |
| 1195 | instkey = key_get_instantiation_authkey(keyid); | 1195 | instkey = key_get_instantiation_authkey(keyid); |
| 1196 | if (IS_ERR(instkey)) | 1196 | if (IS_ERR(instkey)) |
| 1197 | return PTR_ERR(key_ref); | 1197 | return PTR_ERR(instkey); |
| 1198 | key_put(instkey); | 1198 | key_put(instkey); |
| 1199 | 1199 | ||
| 1200 | key_ref = lookup_user_key(keyid, KEY_LOOKUP_PARTIAL, 0); | 1200 | key_ref = lookup_user_key(keyid, KEY_LOOKUP_PARTIAL, 0); |
| @@ -1236,6 +1236,7 @@ long keyctl_get_security(key_serial_t keyid, | |||
| 1236 | */ | 1236 | */ |
| 1237 | long keyctl_session_to_parent(void) | 1237 | long keyctl_session_to_parent(void) |
| 1238 | { | 1238 | { |
| 1239 | #ifdef TIF_NOTIFY_RESUME | ||
| 1239 | struct task_struct *me, *parent; | 1240 | struct task_struct *me, *parent; |
| 1240 | const struct cred *mycred, *pcred; | 1241 | const struct cred *mycred, *pcred; |
| 1241 | struct cred *cred, *oldcred; | 1242 | struct cred *cred, *oldcred; |
| @@ -1326,6 +1327,15 @@ not_permitted: | |||
| 1326 | error_keyring: | 1327 | error_keyring: |
| 1327 | key_ref_put(keyring_r); | 1328 | key_ref_put(keyring_r); |
| 1328 | return ret; | 1329 | return ret; |
| 1330 | |||
| 1331 | #else /* !TIF_NOTIFY_RESUME */ | ||
| 1332 | /* | ||
| 1333 | * To be removed when TIF_NOTIFY_RESUME has been implemented on | ||
| 1334 | * m68k/xtensa | ||
| 1335 | */ | ||
| 1336 | #warning TIF_NOTIFY_RESUME not implemented | ||
| 1337 | return -EOPNOTSUPP; | ||
| 1338 | #endif /* !TIF_NOTIFY_RESUME */ | ||
| 1329 | } | 1339 | } |
| 1330 | 1340 | ||
| 1331 | /*****************************************************************************/ | 1341 | /*****************************************************************************/ |
diff --git a/security/min_addr.c b/security/min_addr.c index fc43c9d37084..e86f297522bf 100644 --- a/security/min_addr.c +++ b/security/min_addr.c | |||
| @@ -43,7 +43,7 @@ int mmap_min_addr_handler(struct ctl_table *table, int write, | |||
| 43 | return ret; | 43 | return ret; |
| 44 | } | 44 | } |
| 45 | 45 | ||
| 46 | int __init init_mmap_min_addr(void) | 46 | static int __init init_mmap_min_addr(void) |
| 47 | { | 47 | { |
| 48 | update_mmap_min_addr(); | 48 | update_mmap_min_addr(); |
| 49 | 49 | ||
diff --git a/security/tomoyo/file.c b/security/tomoyo/file.c index 8346938809b1..9a6c58881c0a 100644 --- a/security/tomoyo/file.c +++ b/security/tomoyo/file.c | |||
| @@ -12,7 +12,6 @@ | |||
| 12 | #include "common.h" | 12 | #include "common.h" |
| 13 | #include "tomoyo.h" | 13 | #include "tomoyo.h" |
| 14 | #include "realpath.h" | 14 | #include "realpath.h" |
| 15 | #define ACC_MODE(x) ("\000\004\002\006"[(x)&O_ACCMODE]) | ||
| 16 | 15 | ||
| 17 | /* | 16 | /* |
| 18 | * tomoyo_globally_readable_file_entry is a structure which is used for holding | 17 | * tomoyo_globally_readable_file_entry is a structure which is used for holding |
