mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-10-12 01:26:48 +08:00
set cloexec on sec-mod's socket file
This commit is contained in:
@@ -620,6 +620,7 @@ void sec_mod_server(void *main_pool, struct perm_cfg_st *perm_config, const char
|
||||
strerror(e));
|
||||
exit(1);
|
||||
}
|
||||
set_cloexec_flag(sd, 1);
|
||||
|
||||
umask(066);
|
||||
ret = bind(sd, (struct sockaddr *)&sa, SUN_LEN(&sa));
|
||||
|
||||
Reference in New Issue
Block a user