Skip to content

Commit

Permalink
audit: Avoid build failures on systems without renameat
Browse files Browse the repository at this point in the history
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]>
Acked-by: Olof Johansson <[email protected]>
Signed-off-by: Palmer Dabbelt <[email protected]>
  • Loading branch information
palmer-dabbelt committed Jan 31, 2018
1 parent d8a5b80 commit 155d33a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/asm-generic/audit_dir_write.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ __NR_mknod,
__NR_mkdirat,
__NR_mknodat,
__NR_unlinkat,
#ifdef __NR_renameat
__NR_renameat,
#endif
__NR_linkat,
__NR_symlinkat,
#endif
Expand Down

0 comments on commit 155d33a

Please sign in to comment.