Commit 262fd3aa authored by AKASHI Takahiro's avatar AKASHI Takahiro Committed by Eric Paris

audit: Modify a set of system calls in audit class definitions

Each asm-generic/audit_xx.h defines a set of system calls for respective
audit permission class (read, write, change attribute or exec).
This patch changes two entries:

1) fchown in audit_change_attr.h
  Make fchown included by its own because in asm-generic/unistd.h, for example,
  fchown always exists while chown is optional. This change is necessary at
  least for arm64.

2) truncate64 in audit_write.h
  Add missing truncate64/ftruncate64 as well as truncate/ftruncate
Signed-off-by: default avatarAKASHI Takahiro <takahiro.akashi@linaro.org>
Acked-by: default avatarWill Deacon <will.deacon@arm.com>
Signed-off-by: default avatarEric Paris <eparis@redhat.com>
parent 3e1d0bb6
...@@ -4,9 +4,11 @@ __NR_chmod, ...@@ -4,9 +4,11 @@ __NR_chmod,
__NR_fchmod, __NR_fchmod,
#ifdef __NR_chown #ifdef __NR_chown
__NR_chown, __NR_chown,
__NR_fchown,
__NR_lchown, __NR_lchown,
#endif #endif
#ifdef __NR_fchown
__NR_fchown,
#endif
__NR_setxattr, __NR_setxattr,
__NR_lsetxattr, __NR_lsetxattr,
__NR_fsetxattr, __NR_fsetxattr,
......
...@@ -10,6 +10,12 @@ __NR_truncate, ...@@ -10,6 +10,12 @@ __NR_truncate,
#ifdef __NR_truncate64 #ifdef __NR_truncate64
__NR_truncate64, __NR_truncate64,
#endif #endif
#ifdef __NR_ftruncate
__NR_ftruncate,
#endif
#ifdef __NR_ftruncate64
__NR_ftruncate64,
#endif
#ifdef __NR_bind #ifdef __NR_bind
__NR_bind, /* bind can affect fs object only in one way... */ __NR_bind, /* bind can affect fs object only in one way... */
#endif #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment