mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
net: Fix TOCTOU race condition in unix_conf_op
The unix_conf_op function reads the size of the sysctl entry array twice. gcc thinks that it can lead to a time-of-check to time-of-use (TOCTOU) race condition if the array size changes between the two reads. Fixes #2398 Signed-off-by: Andrei Vagin <avagin@gmail.com>
This commit is contained in:
parent
457bc6a8ff
commit
cc88b1e1ff
2 changed files with 9 additions and 8 deletions
|
|
@ -1,4 +1,4 @@
|
|||
FROM ubuntu:focal
|
||||
FROM ubuntu:24.04
|
||||
|
||||
COPY scripts/ci/apt-install /bin/apt-install
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue