diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-01-25 11:44:29 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-01-25 11:44:29 -0500 |
commit | b47711bfbcd4eb77ca61ef0162487b20e023ae55 (patch) | |
tree | b2a695dbd40f7ca2333664cf946ef34eda7b7dba /security/selinux/ss/mls.c | |
parent | 7556afa0e0e436cad4f560ee83e5fbd5dac9359a (diff) | |
parent | 2e08c0c1c3977a5ddc88887dd3af1b26c433e9d0 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/selinux-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/selinux-2.6:
selinux: make mls_compute_sid always polyinstantiate
security/selinux: constify function pointer tables and fields
security: add a secctx_to_secid() hook
security: call security_file_permission from rw_verify_area
security: remove security_sb_post_mountroot hook
Security: remove security.h include from mm.h
Security: remove security_file_mmap hook sparse-warnings (NULL as 0).
Security: add get, set, and cloning of superblock security information
security/selinux: Add missing "space"
Diffstat (limited to 'security/selinux/ss/mls.c')
-rw-r--r-- | security/selinux/ss/mls.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/security/selinux/ss/mls.c b/security/selinux/ss/mls.c index fb5d70a6628d..3bbcb5369af9 100644 --- a/security/selinux/ss/mls.c +++ b/security/selinux/ss/mls.c | |||
@@ -537,15 +537,8 @@ int mls_compute_sid(struct context *scontext, | |||
537 | /* Use the process effective MLS attributes. */ | 537 | /* Use the process effective MLS attributes. */ |
538 | return mls_context_cpy_low(newcontext, scontext); | 538 | return mls_context_cpy_low(newcontext, scontext); |
539 | case AVTAB_MEMBER: | 539 | case AVTAB_MEMBER: |
540 | /* Only polyinstantiate the MLS attributes if | 540 | /* Use the process effective MLS attributes. */ |
541 | the type is being polyinstantiated */ | 541 | return mls_context_cpy_low(newcontext, scontext); |
542 | if (newcontext->type != tcontext->type) { | ||
543 | /* Use the process effective MLS attributes. */ | ||
544 | return mls_context_cpy_low(newcontext, scontext); | ||
545 | } else { | ||
546 | /* Use the related object MLS attributes. */ | ||
547 | return mls_context_cpy(newcontext, tcontext); | ||
548 | } | ||
549 | default: | 542 | default: |
550 | return -EINVAL; | 543 | return -EINVAL; |
551 | } | 544 | } |