Commit e40642dc authored by zhanglin's avatar zhanglin Committed by Paul Moore
Browse files

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: default avatarzhanglin <zhang.lin16@zte.com.cn>
[PM: removed comments in the description about 'real world use cases']
Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
parent 54ecb8f7
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -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)