diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2016-06-10 23:14:26 +0200 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2016-06-15 16:20:28 -0400 |
commit | 309c5fad5de44fb9b1703a8f7bd814a223c57d60 (patch) | |
tree | 07f701ff25e2a2143af01e65631ac6c2552219ea /security | |
parent | 50b8629a606b876e2df000699d68904f239dcfeb (diff) | |
download | linux-309c5fad5de44fb9b1703a8f7bd814a223c57d60.tar.gz linux-309c5fad5de44fb9b1703a8f7bd814a223c57d60.tar.bz2 linux-309c5fad5de44fb9b1703a8f7bd814a223c57d60.zip |
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')
-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 1b1fd27de632..0765c5b053b5 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) |