diff options
| author | Robert de Bath <rdebath@tvisiontech.co.uk> | 2016-01-17 08:31:15 +0000 |
|---|---|---|
| committer | Ned T. Crigler <crigler@gmail.com> | 2025-06-17 08:15:03 -0700 |
| commit | 5af437fe9c99198287eadbc877cef2a0c3202a3c (patch) | |
| tree | dd944f014247fe788b3d1783deb687b7ae8aeb0a /main.c | |
| parent | c0d6ac74247c90b9a0e08aa066b3037430b7edce (diff) | |
Avoid permission race condition when dtach socket is created
Use umask(077) to avoid a race condition between the creation of the
dtach socket and the chmod system call on the socket.
This race condition can potentially be exploited when the dtach socket
is created in a directory such as /tmp.
(cherry picked from commit b71dfb2e2c02dfe14738781214a5734d63eeb772)
Diffstat (limited to 'main.c')
0 files changed, 0 insertions, 0 deletions
