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

@@ -38,10 +38,6 @@
#include "internal.h"
#include <trace/hooks/syscall_check.h>
#ifdef CONFIG_SECURITY_DEFEX
#include <linux/defex.h>
#endif
int do_truncate(struct mnt_idmap *idmap, struct dentry *dentry,
loff_t length, unsigned int time_attrs, struct file *filp)
{
@@ -1444,12 +1440,6 @@ static long do_sys_openat2(int dfd, const char __user *filename,
fd = get_unused_fd_flags(how->flags);
if (fd >= 0) {
struct file *f = do_filp_open(dfd, tmp, &op);
#ifdef CONFIG_SECURITY_DEFEX
if (!IS_ERR(f) && task_defex_enforce(current, f, -__NR_openat)) {
fput(f);
f = ERR_PTR(-EPERM);
}
#endif
if (IS_ERR(f)) {
put_unused_fd(fd);
fd = PTR_ERR(f);