Skip to content

Commit

Permalink
selinux: fix type mismatch
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Heinrich Schuchardt authored and Paul Moore committed Jun 15, 2016
1 parent 50b8629 commit 309c5fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion security/selinux/selinuxfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 309c5fa

Please sign in to comment.