Skip to content

Commit e40642d

Browse files
zhanglinpcmoore
authored andcommitted
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 <[email protected]> [PM: removed comments in the description about 'real world use cases'] Signed-off-by: Paul Moore <[email protected]>
1 parent 54ecb8f commit e40642d

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

security/selinux/selinuxfs.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -548,10 +548,6 @@ static ssize_t sel_write_load(struct file *file, const char __user *buf,
548548
if (*ppos != 0)
549549
goto out;
550550

551-
length = -EFBIG;
552-
if (count > 64 * 1024 * 1024)
553-
goto out;
554-
555551
length = -ENOMEM;
556552
data = vmalloc(count);
557553
if (!data)

0 commit comments

Comments
 (0)