audit: Avoid build failures on systems without renameat
Subsystems (2)
PATCH 1/1 audit: Avoid build failures on systems without renameat
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 <[email protected]>
CC Olof Johansson <[email protected]>
Signed-off-by Palmer Dabbelt <[email protected]>
--- include/asm-generic/audit_dir_write.h | 2 ++ 1 file changed, 2 insertions(+)
include/asm-generic/audit_dir_write.h +2 -0
@@ -27,7 +27,9 @@ __NR_mknod, __NR_mkdirat, __NR_mknodat, __NR_unlinkat, +#ifdef __NR_renameat __NR_renameat, +#endif __NR_linkat, __NR_symlinkat, #endif
Signature · 1 line
2.13.6
Quoted 5 lines · Palmer Dabbelt
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 <[email protected]>CC Olof Johansson <[email protected]>
Acked-by Olof Johansson <[email protected]>
Quoted 1 line
Signed-off-by Palmer Dabbelt <[email protected]>
-Olof