From: Heinrich Schuchardt Date: Fri, 10 Jun 2016 21:14:26 +0000 (+0200) Subject: selinux: fix type mismatch X-Git-Tag: v4.8-rc1~95^2~35^2~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=309c5fad5de44fb9b1703a8f7bd814a223c57d60;p=platform%2Fkernel%2Flinux-exynos.git selinux: fix type mismatch avc_cache_threshold is of type unsigned int. Do not use a signed new_value in sscanf(page, "%u", &new_value). Signed-off-by: Heinrich Schuchardt [PM: subject prefix fix, description cleanup] Signed-off-by: Paul Moore --- diff --git a/security/selinux/selinuxfs.c b/security/selinux/selinuxfs.c index 1b1fd27..0765c5b 100644 --- a/security/selinux/selinuxfs.c +++ b/security/selinux/selinuxfs.c @@ -1347,7 +1347,7 @@ static ssize_t sel_write_avc_cache_threshold(struct file *file, { char *page; ssize_t ret; - int new_value; + unsigned int new_value; ret = task_has_security(current, SECURITY__SETSECPARAM); if (ret)