Skip to content

Commit

Permalink
Changes for s390 , removed unsupported syscalls (draios#676)
Browse files Browse the repository at this point in the history
added checks for unused macros on s390x
sysdig-CLA-1.0-signed-off-by: Ketan Kunde ketan22584@gmail.com
  • Loading branch information
ketank-new authored and Damian Myerscough committed Mar 3, 2017
1 parent 2fd6e67 commit 6143996
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 0 additions & 1 deletion driver/ppm.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ long ppm_strncpy_from_user(char *to, const char __user *from, unsigned long n);
#define SYSCALL_TABLE_ID0 0
#elif defined CONFIG_S390
#define SYSCALL_TABLE_ID0 0
#define __NR_time 13
#endif

#define SYSCALL_TABLE_SIZE 512
Expand Down
8 changes: 8 additions & 0 deletions driver/ppm_fillers.c
Original file line number Diff line number Diff line change
Expand Up @@ -3890,14 +3890,22 @@ static inline u16 ptrace_requests_to_scap(unsigned long req)
case PTRACE_GETFPXREGS:
return PPM_PTRACE_GETFPXREGS;
#endif
#ifdef PTRACE_SETFPREGS
case PTRACE_SETFPREGS:
return PPM_PTRACE_SETFPREGS;
#endif
#ifdef PTRACE_GETFPREGS
case PTRACE_GETFPREGS:
return PPM_PTRACE_GETFPREGS;
#endif
#ifdef PTRACE_SETREGS
case PTRACE_SETREGS:
return PPM_PTRACE_SETREGS;
#endif
#ifdef PTRACE_GETREGS
case PTRACE_GETREGS:
return PPM_PTRACE_GETREGS;
#endif
#ifdef PTRACE_SETSIGMASK
case PTRACE_SETSIGMASK:
return PPM_PTRACE_SETSIGMASK;
Expand Down
2 changes: 2 additions & 0 deletions driver/syscall_table.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,9 @@ const enum ppm_syscall_code g_syscall_code_routing_table[SYSCALL_TABLE_SIZE] = {
[__NR_link - SYSCALL_TABLE_ID0] = PPM_SC_LINK,
[__NR_unlink - SYSCALL_TABLE_ID0] = PPM_SC_UNLINK,
[__NR_chdir - SYSCALL_TABLE_ID0] = PPM_SC_CHDIR,
#ifdef __NR_time
[__NR_time - SYSCALL_TABLE_ID0] = PPM_SC_TIME,
#endif
[__NR_mknod - SYSCALL_TABLE_ID0] = PPM_SC_MKNOD,
[__NR_chmod - SYSCALL_TABLE_ID0] = PPM_SC_CHMOD,
/* [__NR_lchown16 - SYSCALL_TABLE_ID0] = PPM_SC_NR_LCHOWN16, */
Expand Down

0 comments on commit 6143996

Please sign in to comment.