aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAKASHI Takahiro <takahiro.akashi@linaro.org>2014-01-17 03:05:03 -0500
committerEric Paris <eparis@redhat.com>2014-01-17 17:01:46 -0500
commit262fd3aad61100cb4f281efa292374817c25a479 (patch)
tree5d72c0da24d0e8f7fcbb0a64dc4ac10b61db3c9a
parent3e1d0bb6224f019893d1c498cc3327559d183674 (diff)
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>
-rw-r--r--include/asm-generic/audit_change_attr.h4
-rw-r--r--include/asm-generic/audit_write.h6
2 files changed, 9 insertions, 1 deletions
diff --git a/include/asm-generic/audit_change_attr.h b/include/asm-generic/audit_change_attr.h
index 89b73e5d0fd0..a1865537339b 100644
--- a/include/asm-generic/audit_change_attr.h
+++ b/include/asm-generic/audit_change_attr.h
@@ -4,9 +4,11 @@ __NR_chmod,
4__NR_fchmod, 4__NR_fchmod,
5#ifdef __NR_chown 5#ifdef __NR_chown
6__NR_chown, 6__NR_chown,
7__NR_fchown,
8__NR_lchown, 7__NR_lchown,
9#endif 8#endif
9#ifdef __NR_fchown
10__NR_fchown,
11#endif
10__NR_setxattr, 12__NR_setxattr,
11__NR_lsetxattr, 13__NR_lsetxattr,
12__NR_fsetxattr, 14__NR_fsetxattr,
diff --git a/include/asm-generic/audit_write.h b/include/asm-generic/audit_write.h
index e7020c57b13b..274575d7129f 100644
--- a/include/asm-generic/audit_write.h
+++ b/include/asm-generic/audit_write.h
@@ -10,6 +10,12 @@ __NR_truncate,
10#ifdef __NR_truncate64 10#ifdef __NR_truncate64
11__NR_truncate64, 11__NR_truncate64,
12#endif 12#endif
13#ifdef __NR_ftruncate
14__NR_ftruncate,
15#endif
16#ifdef __NR_ftruncate64
17__NR_ftruncate64,
18#endif
13#ifdef __NR_bind 19#ifdef __NR_bind
14__NR_bind, /* bind can affect fs object only in one way... */ 20__NR_bind, /* bind can affect fs object only in one way... */
15#endif 21#endif