projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50b8629
)
selinux: fix type mismatch
author
Heinrich Schuchardt
<xypron.glpk@gmx.de>
Fri, 10 Jun 2016 21:14:26 +0000
(23:14 +0200)
committer
Paul Moore
<paul@paul-moore.com>
Wed, 15 Jun 2016 20:20:28 +0000
(16:20 -0400)
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>
security/selinux/selinuxfs.c
patch
|
blob
|
blame
|
history
diff --git
a/security/selinux/selinuxfs.c
b/security/selinux/selinuxfs.c
index 1b1fd27de632692dc307e5a72cf65898f0e245b3..0765c5b053b52ce44819292acbef59319ffe8a6f 100644
(file)
--- 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)