diff options
author | zhanglin <zhang.lin16@zte.com.cn> | 2019-09-21 03:57:15 +0200 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2019-10-01 15:29:04 +0200 |
commit | e40642dc01b87a8b202ce39013b0a4881025a816 (patch) | |
tree | 19284dae467b22354f8b3cea3f72dde343eea013 /security/selinux | |
parent | Linux 5.4-rc1 (diff) | |
download | linux-e40642dc01b87a8b202ce39013b0a4881025a816.tar.xz linux-e40642dc01b87a8b202ce39013b0a4881025a816.zip |
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>
Diffstat (limited to 'security/selinux')
-rw-r--r-- | security/selinux/selinuxfs.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/security/selinux/selinuxfs.c b/security/selinux/selinuxfs.c index e6c7643c3fc0..ee94fa469c29 100644 --- a/security/selinux/selinuxfs.c +++ b/security/selinux/selinuxfs.c @@ -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) |