summaryrefslogtreecommitdiffstats
path: root/security/smack/smack_access.c
diff options
context:
space:
mode:
authorTetsuo Handa2017-03-24 12:42:05 +0100
committerCasey Schaufler2017-04-05 00:41:15 +0200
commitc3c8dc9f13e2e13013822ee54a529a6fe284f1e1 (patch)
tree77e0bfea1ec966eb0952765574b3b1fa56ecb84e /security/smack/smack_access.c
parentLSM: Revive security_task_alloc() hook and per "struct task_struct" security ... (diff)
downloadkernel-qcow2-linux-c3c8dc9f13e2e13013822ee54a529a6fe284f1e1.tar.gz
kernel-qcow2-linux-c3c8dc9f13e2e13013822ee54a529a6fe284f1e1.tar.xz
kernel-qcow2-linux-c3c8dc9f13e2e13013822ee54a529a6fe284f1e1.zip
smack: fix double free in smack_parse_opts_str()
smack_parse_opts_str() calls kfree(opts->mnt_opts) when kcalloc() for opts->mnt_opts_flags failed. But it should not have called it because security_free_mnt_opts() will call kfree(opts->mnt_opts). Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Signed-off-by: Casey Schaufler <casey@schaufler-ca.com> fixes: 3bf2789cad9e6573 ("smack: allow mount opts setting over filesystems with binary mount data") Cc: Vivek Trivedi <t.vivek@samsung.com> Cc: Amit Sahrawat <a.sahrawat@samsung.com> Cc: Casey Schaufler <casey@schaufler-ca.com>
Diffstat (limited to 'security/smack/smack_access.c')
0 files changed, 0 insertions, 0 deletions