Andrea Mazzoleni
|
9edaa39830
|
Use direct Linux setresuid/setresgid syscalls for thread-local privilege switching
|
2026-08-12 11:38:46 +02:00 |
|
Andrea Mazzoleni
|
3a79c41320
|
Add O_CLOEXEC flag to open /dev/null in os_command and os_daemonize
|
2026-08-12 11:14:16 +02:00 |
|
Andrea Mazzoleni
|
1ac81d3c26
|
Fix os_wait return type mismatch in UNIX implementation
|
2026-08-12 10:30:41 +02:00 |
|
Andrea Mazzoleni
|
f908b122a5
|
Replace malloc with alloca in fork child exec path for async-signal safety
|
2026-08-10 13:26:29 +02:00 |
|
Andrea Mazzoleni
|
e1f6ddfe15
|
Comment explaining why CLOSE_RANGE_CLOEXEC is safe for fexecve binaries in os_spawn
|
2026-08-10 13:26:29 +02:00 |
|
Andrea Mazzoleni
|
78bcfaaa04
|
Guard lower close_range call with fd > 3 in os_exec_script
|
2026-08-10 11:23:15 +02:00 |
|
Andrea Mazzoleni
|
ae1fe46ea8
|
Replace VLA envp_dynamic with malloc in fork child exec path
|
2026-08-10 11:23:15 +02:00 |
|
Andrea Mazzoleni
|
2566ddbc69
|
Add fallback to kill(pid, sig) when process group signaling returns ESRCH in os_term and os_kill
|
2026-08-10 11:23:15 +02:00 |
|
Andrea Mazzoleni
|
58d75feea4
|
Configure PR_SET_PDEATHSIG on Linux and Job Objects on Windows to prevent orphaned subprocesses on program crash
|
2026-08-10 11:23:15 +02:00 |
|
Andrea Mazzoleni
|
cd39ccf752
|
Silence clang static analyzer warnings
|
2026-08-10 11:23:15 +02:00 |
|
Andrea Mazzoleni
|
9312712a28
|
Add new os_kill
|
2026-08-10 11:23:14 +02:00 |
|
Andrea Mazzoleni
|
baf6417a31
|
Make os_abort to log to os_syslog
|
2026-08-10 11:23:14 +02:00 |
|
Andrea Mazzoleni
|
2fbfbc1eae
|
Sanitize addr2line binary path via strspn whitelist before system call
|
2026-08-10 11:23:14 +02:00 |
|
Andrea Mazzoleni
|
9098e1c4fd
|
Sync the OS interface with the daemon
|
2026-08-10 11:23:14 +02:00 |
|
Andrea Mazzoleni
|
dfef6a363e
|
Abort on privilege switch failures unless errno is EPERM
|
2026-08-10 11:23:13 +02:00 |
|
Andrea Mazzoleni
|
f19d00c93e
|
Merge the CLI and Daemon portable interface
|
2026-08-10 11:23:13 +02:00 |
|