Tech News
← Home  ·  All topics

Posix

6 GoKawiil briefs on this topic · RSS for posix

Security researcher crafts tar file that extracts differently across 8 tools

A researcher built a single tar archive using GNU tar's pax format options that produces eight distinct results when unpacked, depending on which extraction tool is used. The trick exploits ambiguity in the POSIX specification over whether a hard-linked file entry in a pax archive can carry its own data size, letting the archive contain a crafted 512-byte size field equal to a tar header's length. Tools including GNU tar, BusyBox, Python, Go and Perl ignore this size and extract the files identically, while Apple's bsdtar instead writes those 512 bytes into the hard-linked file, altering its contents.

Developer launches AegisKernel, a zero-trust POSIX runtime for AI agents

A Show HN post introduces AegisKernel, described as a zero-trust runtime that intercepts POSIX calls from AI agents in under 0.016 milliseconds. The demo page lets visitors trigger sample attack vectors to see the interceptor react in real time.

Blog post explains why file reads and writes behave asymmetrically under error conditions

A technical blog post examines the POSIX read() and write() system calls, noting that despite their seemingly mirrored signatures, the two operations behave very differently once buffering layers and error handling are considered. The author traces this to the kernel's buffer cache and block-device architecture, where storage hardware only reads and writes in fixed-size blocks rather than arbitrary byte ranges.

Hobby OS Moxnox hits version 1.0 with NT-style design and Btrfs support

Moxnox 1.0, a hobbyist operating system modeled on Windows NT's syscall design but POSIX-compatible, has been released for amd64 and aarch64 architectures. The roughly 130,000-line C++ project includes a GNU base system, can run on the Btrfs filesystem, and is mature enough to self-host, meaning it can compile itself. The developer notes the Btrfs implementation works for basic use but warns against mounting anything beyond disposable test filesystems.

Essay argues OS build tools should share dependency data across compilers and package managers

A technical essay contends that modern operating systems, particularly POSIX-based free and open-source ones, miss optimization opportunities because compilers, build systems and package managers don't share dependency and resource information with each other or the wider system. The author compares older C build tooling, where compiler and build system are separate, with modern languages like Rust, Go and Zig, where tight integration already yields benefits. They use a hypothetical tightly-integrated C build system to illustrate what additional advantages could be unlocked.

Blog post traces history of cp -r vs -R flag divergence

A developer blog post examines whether the cp command's -r and -R recursive-copy flags have ever behaved differently. It traces GNU coreutils source code back to 1992, finding the two flags originally set different internal variables, before being merged into identical behavior in 2002. The post also checks OpenBSD 7.9 and NetBSD 11, finding both still treat -r and -R as distinct, with manuals recommending -R.