OSDN Git Service

SELinux: Use GFP_KERNEL for selinux_parse_opts_str().
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Mon, 14 Nov 2016 11:16:12 +0000 (20:16 +0900)
committerPaul Moore <paul@paul-moore.com>
Mon, 14 Nov 2016 20:03:38 +0000 (15:03 -0500)
commit8931c3bdb3bfbdfb3c86f590f517ed9acfed27d7
treec03b746c6385cee324ba920b66ebceb0164f7b0e
parent07d9a380680d1c0eb51ef87ff2eab5c994949e69
SELinux: Use GFP_KERNEL for selinux_parse_opts_str().

Since selinux_parse_opts_str() is calling match_strdup() which uses
GFP_KERNEL, it is safe to use GFP_KERNEL from kcalloc() which is
called by selinux_parse_opts_str().

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/hooks.c