News for hackers. Stuff that matters.

itsphilos

I think OP is referring to the "unprivileged user namespaces" [1] feature of Linux, which caused numerous security incidents in the past. AFAIK, this is mainly because with this feature enabled, unprivilged users can create environments/namespaces which allow them to exploit kernel bugs much more easily. Most of them revolve around broken permission checks (read: root inside container but not outside, yet feature X falsely checks for the permissions _inside_). [2] has a nice list of CVEs caused by unprivileged user namespaces. Given that rootful docker e.g. is also prone to causing security issues, it's ultimately an attacker model / pick-your-poison situation though.

[1] https://www.man7.org/linux/man-pages/man7/user_namespaces.7....

[2] https://security.stackexchange.com/a/209533

Show HN: FunctionCacher, a Python cache-to-disk utility

https://gitlab.com/philipp.friese/function-cacher

The FunctionCacher Python utility provides a way to cache the result of a (computation- or IO-heavy) function call to a location on the filesystem, ideally onto a ramdisk/tmpfs. This allows caches to exceed the lifetime of the program, which is useful for rapid-prototyping (& rapid-crashing) scripts. Caches are generated based function name, parameters, and code. MIT Licence.

( Read More... | 2 comments | 2 points | on HN )
Re:Boehm-Demers-Weiser conservative C/C++ Garbage Collector on Sunday January 21, 2024 @08:14AM (#39078161)
My experience with Cpp isn't that extensive, but what is the use-case of a garbage collector in this language? I always had the impression that with the well-defined lifetimes of objects, you wouldn't really create garbage to begin with, but I guess there are some use-cases I don't yet know about?
Re:Cross-platform Rust rewrite of the GNU coreutils on Wednesday January 03, 2024 @04:51AM (#38852325)
I don't know much about licenses, but why is MIT preferable over GPL used by the GNU coreutils?
I didn't know about Duff's device, which looks pretty interesting! Thanks for sharing
Re:What happened with Asus routers this morning? on Thursday May 18, 2023 @02:40AM (#35984745)
again?
Re:OpenWrt 22.03 on Tuesday September 06, 2022 @02:21AM (#32733607)
It is worth noting that this release currently breaks the banIP package [1], which relies on the old fw3. So for those relying on it, it might be worth waiting for a short while.

[1] https://forum.openwrt.org/t/banip-support-thread/16985/751

Re:How gray became the king of color on Wednesday August 17, 2022 @03:40AM (#32493443)
Fascinating link, thank you! On that note though: How are the horizontal bars (first one right below the introduction) made? My guess is that they gathered all colours from all pixels, made a histogram, and then converted that into a horizontal stacked bar. However, the ordering seems weird, as some colours look like they appear multiple times (say for example the almost black-ish regions), disproving my histogram hypothesis. Then again, that may be due to image compression. And ordering the colour vectors would highly depend on the used colour space & the used partial order. I similarly stumbled over the image-version of these bars in section "The colours within a single object" further down, which I just don't quite understand how they're made.

Does someone have insight on the methodology or maybe a link to a paper? The present methodology section seems to focus on object similarity.

Re:From macOS to FreeBSD on Friday February 18, 2022 @07:06AM (#30384688)
> Note: This blog post has been rewritten at least 3 times. I started with describing how I configured the system, then I went to bragging about how I love bspwm, how I set up all my jails, etc. I might still write about it at some point, but not this time. Every time I started writing the post, I realised that I was missing a point. I can say now that I know what I really wanted to say: that I love FreeBSD and I find joy in using it.

I really appreciate the honesty and I think it was a good choice to focus on fleshing out the message. Also: Quite the un-evangelistic stance on this rather controversy-inducing topic!

Re:Atomics in AArch64 on Wednesday May 19, 2021 @03:01AM (#27205474)
A fascinating read! And very well written.

What I found interesting is the ripple-like throughput fluctuations. Especially on the TX2 v8.1a, this seems very odd. User 'MB' has already asked this on the sites forum, but the author could not explain it either. Maybe someone on HN has an idea?

Re:Concrete Semantics with Isabelle/HOL on Sunday February 28, 2021 @02:19AM (#26291348)
I took a university class on said book last year, held by one of the authors Prof. Tobias Nipkow.

Its a fascinating introduction into general program semantics, formal analyses and proofs for program properties. During the lecture I struggled somewhat as I didn‘t really have sufficient background knowledge for it to run smoothly. But all the concepts are supported by, well, concrete examples which you can immediately try to solve in Isabelle. So I definitely recommend giving it a go!

It was an eye-opening experience for me, especially since I never really looked into formal program analysis.

Re:I Miss My Bar on Friday February 19, 2021 @12:09PM (#26195237)
This reminds me of that website which provides several soundscapes, from the ambiance of a café to a walk in the woods. Its at https://mynoise.net