]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests/kcmp: remove unused open mode
authorEdward Liaw <edliaw@google.com>
Mon, 29 Apr 2024 23:46:09 +0000 (23:46 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Jun 2024 11:39:33 +0000 (13:39 +0200)
commit099750e9d950389f9ad1699e57182d71ceffd025
treeb2be56eb9433fb9b99d36f1732beefa423b96117
parente26259f7e754094e153dc77de88542f538dbd5dc
selftests/kcmp: remove unused open mode

[ Upstream commit eb59a58113717df04b8a8229befd8ab1e5dbf86e ]

Android bionic warns that open modes are ignored if O_CREAT or O_TMPFILE
aren't specified.  The permissions for the file are set above:

fd1 = open(kpath, O_RDWR | O_CREAT | O_TRUNC, 0644);

Link: https://lkml.kernel.org/r/20240429234610.191144-1-edliaw@google.com
Fixes: d97b46a64674 ("syscalls, x86: add __NR_kcmp syscall")
Signed-off-by: Edward Liaw <edliaw@google.com>
Reviewed-by: Cyrill Gorcunov <gorcunov@gmail.com>
Cc: Eric Biederman <ebiederm@xmission.com>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/kcmp/kcmp_test.c