@@ -1072,10 +1072,9 @@ void secure_computing_strict(int this_syscall)
10721072 else
10731073 BUG ();
10741074}
1075- int __secure_computing (const struct seccomp_data * sd )
1075+ int __secure_computing (void )
10761076{
1077- int this_syscall = sd ? sd -> nr :
1078- syscall_get_nr (current , current_pt_regs ());
1077+ int this_syscall = syscall_get_nr (current , current_pt_regs ());
10791078
10801079 secure_computing_strict (this_syscall );
10811080 return 0 ;
@@ -1365,7 +1364,7 @@ static int __seccomp_filter(int this_syscall, const struct seccomp_data *sd,
13651364}
13661365#endif
13671366
1368- int __secure_computing (const struct seccomp_data * sd )
1367+ int __secure_computing (void )
13691368{
13701369 int mode = current -> seccomp .mode ;
13711370 int this_syscall ;
@@ -1374,15 +1373,14 @@ int __secure_computing(const struct seccomp_data *sd)
13741373 unlikely (current -> ptrace & PT_SUSPEND_SECCOMP ))
13751374 return 0 ;
13761375
1377- this_syscall = sd ? sd -> nr :
1378- syscall_get_nr (current , current_pt_regs ());
1376+ this_syscall = syscall_get_nr (current , current_pt_regs ());
13791377
13801378 switch (mode ) {
13811379 case SECCOMP_MODE_STRICT :
13821380 __secure_computing_strict (this_syscall ); /* may call do_exit */
13831381 return 0 ;
13841382 case SECCOMP_MODE_FILTER :
1385- return __seccomp_filter (this_syscall , sd , false);
1383+ return __seccomp_filter (this_syscall , NULL , false);
13861384 /* Surviving SECCOMP_RET_KILL_* must be proactively impossible. */
13871385 case SECCOMP_MODE_DEAD :
13881386 WARN_ON_ONCE (1 );
0 commit comments