1
0
Fork 0

selinux: remove load size limit

Load size was limited to 64MB, this was legacy limitation due to vmalloc()
which was removed a while ago.

Signed-off-by: zhanglin <zhang.lin16@zte.com.cn>
[PM: removed comments in the description about 'real world use cases']
Signed-off-by: Paul Moore <paul@paul-moore.com>
alistair/sunxi64-5.5-dsi
zhanglin 2019-09-21 09:57:15 +08:00 committed by Paul Moore
parent 54ecb8f702
commit e40642dc01
1 changed files with 0 additions and 4 deletions

View File

@ -548,10 +548,6 @@ static ssize_t sel_write_load(struct file *file, const char __user *buf,
if (*ppos != 0)
goto out;
length = -EFBIG;
if (count > 64 * 1024 * 1024)
goto out;
length = -ENOMEM;
data = vmalloc(count);
if (!data)