Thread (2 messages) 2 messages, 2 authors, 2017-12-02
STALE3101d REVIEWED: 4 (4M)

[PATCH] audit: Avoid build failures on systems without renameat

From: Palmer Dabbelt <hidden>
Date: 2017-12-01 20:53:54
Also in: lkml
Subsystem: audit subsystem, generic include/asm header files, the rest · Maintainers: Paul Moore, Eric Paris, Arnd Bergmann, Linus Torvalds

renameat has been deprecated in favor of renameat2 for new ports.  This
allows the audit tests to build on RISC-V.

Reviewed-by: Christoph Hellwig <hch@lst.de>
CC: Olof Johansson <redacted>
Signed-off-by: Palmer Dabbelt <redacted>
---
 include/asm-generic/audit_dir_write.h | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/include/asm-generic/audit_dir_write.h b/include/asm-generic/audit_dir_write.h
index da09fb986459..dd5a9dd7a102 100644
--- a/include/asm-generic/audit_dir_write.h
+++ b/include/asm-generic/audit_dir_write.h
@@ -27,7 +27,9 @@ __NR_mknod,
 __NR_mkdirat,
 __NR_mknodat,
 __NR_unlinkat,
+#ifdef __NR_renameat
 __NR_renameat,
+#endif
 __NR_linkat,
 __NR_symlinkat,
 #endif
-- 
2.13.6
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help