Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 309c5fad authored by Heinrich Schuchardt's avatar Heinrich Schuchardt Committed by Paul Moore
Browse files

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: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
[PM: subject prefix fix, description cleanup]
Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
parent 50b8629a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)