diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2019-05-07 19:06:04 -0700 | 
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-05-07 19:06:04 -0700 | 
| commit | 02aff8db6438ce29371fd9cd54c57213f4bb4536 (patch) | |
| tree | 283941483dbe579bf413d3a03b0538ff7bdc336d /arch/hexagon | |
| parent | f72dae20891d7bcc43e9263ab206960b6ae5209f (diff) | |
| parent | 70c4cf17e445264453bc5323db3e50aa0ac9e81f (diff) | |
| download | linux-02aff8db6438ce29371fd9cd54c57213f4bb4536.tar.bz2 | |
Merge tag 'audit-pr-20190507' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/audit
Pull audit updates from Paul Moore:
 "We've got a reasonably broad set of audit patches for the v5.2 merge
  window, the highlights are below:
   - The biggest change, and the source of all the arch/* changes, is
     the patchset from Dmitry to help enable some of the work he is
     doing around PTRACE_GET_SYSCALL_INFO.
     To be honest, including this in the audit tree is a bit of a
     stretch, but it does help move audit a little further along towards
     proper syscall auditing for all arches, and everyone else seemed to
     agree that audit was a "good" spot for this to land (or maybe they
     just didn't want to merge it? dunno.).
   - We can now audit time/NTP adjustments.
   - We continue the work to connect associated audit records into a
     single event"
* tag 'audit-pr-20190507' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/audit: (21 commits)
  audit: fix a memory leak bug
  ntp: Audit NTP parameters adjustment
  timekeeping: Audit clock adjustments
  audit: purge unnecessary list_empty calls
  audit: link integrity evm_write_xattrs record to syscall event
  syscall_get_arch: add "struct task_struct *" argument
  unicore32: define syscall_get_arch()
  Move EM_UNICORE to uapi/linux/elf-em.h
  nios2: define syscall_get_arch()
  nds32: define syscall_get_arch()
  Move EM_NDS32 to uapi/linux/elf-em.h
  m68k: define syscall_get_arch()
  hexagon: define syscall_get_arch()
  Move EM_HEXAGON to uapi/linux/elf-em.h
  h8300: define syscall_get_arch()
  c6x: define syscall_get_arch()
  arc: define syscall_get_arch()
  Move EM_ARCOMPACT and EM_ARCV2 to uapi/linux/elf-em.h
  audit: Make audit_log_cap and audit_copy_inode static
  audit: connect LOGIN record to its syscall record
  ...
Diffstat (limited to 'arch/hexagon')
| -rw-r--r-- | arch/hexagon/include/asm/elf.h | 6 | ||||
| -rw-r--r-- | arch/hexagon/include/asm/syscall.h | 8 | 
2 files changed, 9 insertions, 5 deletions
| diff --git a/arch/hexagon/include/asm/elf.h b/arch/hexagon/include/asm/elf.h index 80311e7b8ca6..d10fbd54ae51 100644 --- a/arch/hexagon/include/asm/elf.h +++ b/arch/hexagon/include/asm/elf.h @@ -23,11 +23,7 @@  #include <asm/ptrace.h>  #include <asm/user.h> - -/* - * This should really be in linux/elf-em.h. - */ -#define EM_HEXAGON	164   /* QUALCOMM Hexagon */ +#include <linux/elf-em.h>  struct elf32_hdr; diff --git a/arch/hexagon/include/asm/syscall.h b/arch/hexagon/include/asm/syscall.h index ae3a1e24fabd..dab26a71f577 100644 --- a/arch/hexagon/include/asm/syscall.h +++ b/arch/hexagon/include/asm/syscall.h @@ -21,6 +21,8 @@  #ifndef _ASM_HEXAGON_SYSCALL_H  #define _ASM_HEXAGON_SYSCALL_H +#include <uapi/linux/audit.h> +  typedef long (*syscall_fn)(unsigned long, unsigned long,  	unsigned long, unsigned long,  	unsigned long, unsigned long); @@ -41,4 +43,10 @@ static inline void syscall_get_arguments(struct task_struct *task,  {  	memcpy(args, &(®s->r00)[0], 6 * sizeof(args[0]));  } + +static inline int syscall_get_arch(struct task_struct *task) +{ +	return AUDIT_ARCH_HEXAGON; +} +  #endif |