audit: Modify a set of system calls in audit class definitions
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Fri, 17 Jan 2014 08:05:03 +0000 (17:05 +0900)
committerEric Paris <eparis@redhat.com>
Fri, 17 Jan 2014 22:01:46 +0000 (17:01 -0500)
commit262fd3aad61100cb4f281efa292374817c25a479
tree5d72c0da24d0e8f7fcbb0a64dc4ac10b61db3c9a
parent3e1d0bb6224f019893d1c498cc3327559d183674
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: AKASHI Takahiro <takahiro.akashi@linaro.org>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Eric Paris <eparis@redhat.com>
include/asm-generic/audit_change_attr.h
include/asm-generic/audit_write.h