Add samsung specific changes
This commit is contained in:
12
kernel/sys.c
12
kernel/sys.c
@@ -75,10 +75,6 @@
|
||||
#include <asm/io.h>
|
||||
#include <asm/unistd.h>
|
||||
|
||||
#ifdef CONFIG_SECURITY_DEFEX
|
||||
#include <linux/defex.h>
|
||||
#endif
|
||||
|
||||
#include "uid16.h"
|
||||
|
||||
#include <trace/hooks/sys.h>
|
||||
@@ -880,10 +876,6 @@ long __sys_setfsuid(uid_t uid)
|
||||
if (!uid_valid(kuid))
|
||||
return old_fsuid;
|
||||
|
||||
#ifdef CONFIG_SECURITY_DEFEX
|
||||
if (task_defex_enforce(current, NULL, -__NR_setfsuid))
|
||||
return old_fsuid;
|
||||
#endif
|
||||
new = prepare_creds();
|
||||
if (!new)
|
||||
return old_fsuid;
|
||||
@@ -928,10 +920,6 @@ long __sys_setfsgid(gid_t gid)
|
||||
if (!gid_valid(kgid))
|
||||
return old_fsgid;
|
||||
|
||||
#ifdef CONFIG_SECURITY_DEFEX
|
||||
if (task_defex_enforce(current, NULL, -__NR_setfsgid))
|
||||
return old_fsgid;
|
||||
#endif
|
||||
new = prepare_creds();
|
||||
if (!new)
|
||||
return old_fsgid;
|
||||
|
||||
Reference in New Issue
Block a user