Add samsung specific changes
This commit is contained in:
10
fs/open.c
10
fs/open.c
@@ -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);
|
||||
|
Reference in New Issue
Block a user