Block privilege gain across exec with PR_SET_NO_NEW_PRIVS
Call prctl(PR_SET_NO_NEW_PRIVS) on Linux 3.5 or later so execve can never grant more privilege, which also lets unprivileged code install seccomp filters.
Short posts that solve one thing: the code, the output we got, and why it works.
Call prctl(PR_SET_NO_NEW_PRIVS) on Linux 3.5 or later so execve can never grant more privilege, which also lets unprivileged code install seccomp filters.
Use -gdb tcp::1235 to move QEMU 10.0's gdbstub off port 1234, and bind it to 127.0.0.1 so the unauthenticated debug port stays local.
Build an Amaranth 0.5 state machine with with m.FSM(), named m.State blocks and m.next, where the first State declared is the reset state.
Compile C with -Wall -Wextra -Wpedantic so GCC 14 flags an assignment in a condition and a signed/unsigned compare before they become silent bugs.
Always call epoll_ctl(EPOLL_CTL_DEL) before close() on Linux 6.8, because a dup()ed descriptor keeps a closed socket registered and sending events.
Attach commands to an LLDB breakpoint with breakpoint command add, ending the list with DONE, to log or continue without stopping.
pthread_once() runs an init function exactly once across all threads in glibc 2.39, and every caller waits until it has finished.
Encode H.264 on an NVIDIA GPU with h264_nvenc, using -preset p5, -tune hq and a constant-quality -cq value, on FFmpeg 4.4 or later.
Run a command several times and let perf stat print each counter as a mean with its standard deviation, using -r 5 on perf from Linux 6.12.
Silence one noisy dtc warning with -Wno-unit_address_vs_reg while keeping the other checks on, using dtc 1.7 flags on a board device tree.
Hand a timer callback its own context by storing a pointer as the timer ID and reading it back with pvTimerGetTimerID on FreeRTOS V11.2.0.
Enable vsync with glfwSwapInterval(1) so the buffer swap waits for the display refresh and the loop does not run flat out in GLFW 3.4.
We send one email when a new post is published. No spam.