File tree 2 files changed +14
-0
lines changed
2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,12 @@ MODULE=$1
8
8
# a set of simple, not-well-thought-out tests I occasionally run to make
9
9
# sure everything still works, or at least appears to work :P
10
10
11
+ setfattr --help & > /dev/null
12
+ if [ $? -ne 0 ]; then
13
+ echo " The setfattr command is not installed. Please install the 'attr' package to run tests."
14
+ exit 1
15
+ fi
16
+
11
17
if [ -z " $UID " ] || [ $UID != 0 ]; then
12
18
13
19
echo " Tests must be ran as the root user."
Original file line number Diff line number Diff line change @@ -128,7 +128,11 @@ fopskit_hook_handler(security_ptrace_access_check) {
128
128
129
129
/* sys_newuname */
130
130
131
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION (4 , 17 , 0 )
132
+ fopskit_hook_handler (__x64_sys_newuname ) {
133
+ #else
131
134
fopskit_hook_handler (sys_newuname ) {
135
+ #endif
132
136
if (tpe_hide_uname && !UID_IS_TRUSTED (get_task_uid (current )))
133
137
TPE_EXTRAS_NOEXEC ("uname" );
134
138
}
@@ -173,7 +177,11 @@ static struct fops_hook tpe_hooks_extras[] = {
173
177
fops_hook_val (pid_revalidate ),
174
178
fops_hook_val (m_show ),
175
179
fops_hook_val (kallsyms_open ),
180
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION (4 , 17 , 0 )
181
+ fops_hook_val (__x64_sys_newuname ),
182
+ #else
176
183
fops_hook_val (sys_newuname ),
184
+ #endif
177
185
fops_hook_val (proc_sys_read ),
178
186
};
179
187
You can’t perform that action at this time.
0 commit comments