aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorIngo Molnar <[email protected]>2025-03-17 11:21:57 +0000
committerIngo Molnar <[email protected]>2025-03-17 11:24:02 +0000
commit73070466ed3b5e4620e03c159ee12a570b171d08 (patch)
tree4d505cf3a1ac100444a5119b53eadef3703c1457 /net/unix/af_unix.c
parentobjtool: Add CONFIG_OBJTOOL_WERROR (diff)
downloadkernel-73070466ed3b5e4620e03c159ee12a570b171d08.tar.gz
kernel-73070466ed3b5e4620e03c159ee12a570b171d08.zip
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 <[email protected]> Cc: Josh Poimboeuf <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: [email protected]
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions