Add samsung specific changes

This commit is contained in:
2025-08-11 14:29:00 +02:00
parent c66122e619
commit 4d134a1294
2688 changed files with 1127995 additions and 11475 deletions

View File

@@ -25,10 +25,6 @@
#include <linux/uaccess.h>
#include <asm/unistd.h>
#ifdef CONFIG_SECURITY_DEFEX
#include <linux/defex.h>
#endif
const struct file_operations generic_ro_fops = {
.llseek = generic_file_llseek,
.read_iter = generic_file_read_iter,
@@ -579,10 +575,6 @@ ssize_t vfs_write(struct file *file, const char __user *buf, size_t count, loff_
ret = rw_verify_area(WRITE, file, pos, count);
if (ret)
return ret;
#ifdef CONFIG_SECURITY_DEFEX
if (task_defex_enforce(current, file, -__NR_write))
return -EPERM;
#endif
if (count > MAX_RW_COUNT)
count = MAX_RW_COUNT;
file_start_write(file);