From: Paul Moore Date: Tue, 26 Nov 2013 22:32:55 +0000 (-0500) Subject: Merge tag 'v3.12' X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=dd0a11815a339d6deeea8357574f8126a8404c92;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git Merge tag 'v3.12' Linux 3.12 --- dd0a11815a339d6deeea8357574f8126a8404c92 diff --cc security/selinux/hooks.c index c09211a4d7da,5b5231068516..777ee98273d1 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@@ -2665,15 -2628,11 +2665,11 @@@ static int selinux_inode_init_security( isec->initialized = 1; } - if (!ss_initialized || !(sbsec->flags & SE_SBLABELSUPP)) + if (!ss_initialized || !(sbsec->flags & SBLABEL_MNT)) return -EOPNOTSUPP; - if (name) { - namep = kstrdup(XATTR_SELINUX_SUFFIX, GFP_NOFS); - if (!namep) - return -ENOMEM; - *name = namep; - } + if (name) + *name = XATTR_SELINUX_SUFFIX; if (value && len) { rc = security_sid_to_context_force(newsid, &context, &clen);