mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 22:02:02 +00:00
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>
This commit is contained in:
parent
50b8629a60
commit
309c5fad5d
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue