[Devel] [PATCH vz10 2/3] selftests: cgroup: give the O_TMPFILE open in get_temp_fd() a mode

Vasileios Almpanis vasileios.almpanis at virtuozzo.com
Fri Sep 18 13:11:23 MSK 2026


On Tue, 01 Sep 2026 01:36:23 +0300, Eva Kurchatova <eva.kurchatova at virtuozzo.com> wrote:
> O_TMPFILE, like O_CREAT, needs the third argument. Without it glibc
> refuses the call at compile time as soon as fortification is on:
> 
>   In function 'open',
>       inlined from 'get_temp_fd' at cgroup_util.c:24:9:
>   /usr/include/bits/fcntl2.h:50:11: error: call to '__open_missing_mode'
>     declared with attribute error: open with O_CREAT or O_TMPFILE in
>     second argument needs 3 arguments
> 
> [...]

Reviewed-by: Vasileios Almpanis <vasileios.almpanis at virtuozzo.com>

-- 
Vasileios Almpanis <vasileios.almpanis at virtuozzo.com>


More information about the Devel mailing list