forked from luck/tmp_suning_uos_patched
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>
This commit is contained in:
parent
54ecb8f702
commit
e40642dc01
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user