diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2016-06-10 21:14:26 (GMT) |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2016-06-15 20:20:28 (GMT) |
commit | 309c5fad5de44fb9b1703a8f7bd814a223c57d60 (patch) | |
tree | 07f701ff25e2a2143af01e65631ac6c2552219ea /security/selinux | |
parent | 50b8629a606b876e2df000699d68904f239dcfeb (diff) | |
download | linux-309c5fad5de44fb9b1703a8f7bd814a223c57d60.tar.xz |
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 <xypron.glpk@gmx.de>
[PM: subject prefix fix, description cleanup]
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security/selinux')
-rw-r--r-- | security/selinux/selinuxfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |