aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-generic/audit_dir_write.h
diff options
context:
space:
mode:
authorChris Metcalf <cmetcalf@tilera.com>2011-05-02 16:52:19 -0400
committerChris Metcalf <cmetcalf@tilera.com>2011-05-04 14:41:28 -0400
commitaaeb012fe4700cb808562c2daf7ccc464e7f18cf (patch)
treec46c547b8cc287acad328c2c937485349a0df456 /include/asm-generic/audit_dir_write.h
parentd07bd86d82622247dba8cc29974d3860f857ea33 (diff)
downloadkernel_samsung_smdk4412-aaeb012fe4700cb808562c2daf7ccc464e7f18cf.zip
kernel_samsung_smdk4412-aaeb012fe4700cb808562c2daf7ccc464e7f18cf.tar.gz
kernel_samsung_smdk4412-aaeb012fe4700cb808562c2daf7ccc464e7f18cf.tar.bz2
audit: support the "standard" <asm-generic/unistd.h>
Many of the syscalls mentioned in the audit code are not present for architectures that implement only the "standard" set of Linux syscalls (e.g. openat, but not open, etc.). This change adds proper #ifdefs for all those syscalls. Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Diffstat (limited to 'include/asm-generic/audit_dir_write.h')
-rw-r--r--include/asm-generic/audit_dir_write.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/asm-generic/audit_dir_write.h b/include/asm-generic/audit_dir_write.h
index 6621bd8..7b61db4 100644
--- a/include/asm-generic/audit_dir_write.h
+++ b/include/asm-generic/audit_dir_write.h
@@ -1,13 +1,27 @@
+#ifdef __NR_rename
__NR_rename,
+#endif
+#ifdef __NR_mkdir
__NR_mkdir,
+#endif
+#ifdef __NR_rmdir
__NR_rmdir,
+#endif
#ifdef __NR_creat
__NR_creat,
#endif
+#ifdef __NR_link
__NR_link,
+#endif
+#ifdef __NR_unlink
__NR_unlink,
+#endif
+#ifdef __NR_symlink
__NR_symlink,
+#endif
+#ifdef __NR_mknod
__NR_mknod,
+#endif
#ifdef __NR_mkdirat
__NR_mkdirat,
__NR_mknodat,