diff options
author | Ingo Molnar <mingo@kernel.org> | 2025-03-17 14:21:57 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2025-03-17 14:24:02 +0300 |
commit | 73070466ed3b5e4620e03c159ee12a570b171d08 (patch) | |
tree | 4d505cf3a1ac100444a5119b53eadef3703c1457 /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | 36799069b48198e5ce92d99310060c4aecb4b3e3 (diff) | |
download | linux-73070466ed3b5e4620e03c159ee12a570b171d08.tar.xz |
objtool: Use O_CREAT with explicit mode mask
Recent Ubuntu enforces 3-argument open() with O_CREAT:
CC /home/mingo/tip/tools/objtool/builtin-check.o
In file included from /usr/include/fcntl.h:341,
from builtin-check.c:9:
In function ‘open’,
inlined from ‘copy_file’ at builtin-check.c:201:11:
/usr/include/x86_64-linux-gnu/bits/fcntl2.h:52:11: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT or O_TMPFILE in second argument needs 3 arguments
52 | __open_missing_mode ();
| ^~~~~~~~~~~~~~~~~~~~~~
Use 0400 as the most restrictive mode for the new file.
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: linux-kernel@vger.kernel.org
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions