@@ -64,15 +64,12 @@ extern void exit_ptrace(struct task_struct *tracer, struct list_head *dead);
64
64
#define PTRACE_MODE_NOAUDIT 0x04
65
65
#define PTRACE_MODE_FSCREDS 0x08
66
66
#define PTRACE_MODE_REALCREDS 0x10
67
- #define PTRACE_MODE_SCHED 0x20
68
- #define PTRACE_MODE_IBPB 0x40
69
67
70
68
/* shorthands for READ/ATTACH and FSCREDS/REALCREDS combinations */
71
69
#define PTRACE_MODE_READ_FSCREDS (PTRACE_MODE_READ | PTRACE_MODE_FSCREDS)
72
70
#define PTRACE_MODE_READ_REALCREDS (PTRACE_MODE_READ | PTRACE_MODE_REALCREDS)
73
71
#define PTRACE_MODE_ATTACH_FSCREDS (PTRACE_MODE_ATTACH | PTRACE_MODE_FSCREDS)
74
72
#define PTRACE_MODE_ATTACH_REALCREDS (PTRACE_MODE_ATTACH | PTRACE_MODE_REALCREDS)
75
- #define PTRACE_MODE_SPEC_IBPB (PTRACE_MODE_ATTACH_REALCREDS | PTRACE_MODE_IBPB)
76
73
77
74
/**
78
75
* ptrace_may_access - check whether the caller is permitted to access
@@ -90,20 +87,6 @@ extern void exit_ptrace(struct task_struct *tracer, struct list_head *dead);
90
87
*/
91
88
extern bool ptrace_may_access (struct task_struct * task , unsigned int mode );
92
89
93
- /**
94
- * ptrace_may_access - check whether the caller is permitted to access
95
- * a target task.
96
- * @task: target task
97
- * @mode: selects type of access and caller credentials
98
- *
99
- * Returns true on success, false on denial.
100
- *
101
- * Similar to ptrace_may_access(). Only to be called from context switch
102
- * code. Does not call into audit and the regular LSM hooks due to locking
103
- * constraints.
104
- */
105
- extern bool ptrace_may_access_sched (struct task_struct * task , unsigned int mode );
106
-
107
90
static inline int ptrace_reparented (struct task_struct * child )
108
91
{
109
92
return !same_thread_group (child -> real_parent , child -> parent );
0 commit comments