frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Landlock-Ing Linux

https://blog.prizrak.me/post/landlock/
18•razighter777•1h ago

Comments

razighter777•1h ago
What the Landlock LSM can add to the state of Linux security
PeterWhittaker•37m ago
So like using seccomp with a whitelist (fairly easy to do) with per-object access rights.

I'd love to see a comparison of landlock to restricted containers.

kosolam•30m ago
So it works also by using some cli utility to run my software for example?
razighter777•10m ago
Yup. There are tools that use landlock to accomplish just that.

https://github.com/Zouuup/landrun

All you gotta do is apply a policy and do a fork() exec(). There is also support in firejail.

seethishat•11m ago
LandLock is a Minor LSM intended for software developers. They incorporate it into their source code to limit where the programs may read/write. Here's a simple Go example:

    package main

    import (
     "flag"
     "fmt"
     "github.com/landlock-lsm/go-landlock/landlock"
     "io/ioutil"
     "log"
     "os"
    )

    // simple program that demonstrates how landlock works in Go on Linux systems.
    // Requires 5.13 or newer kernel and .config should look something like this:
    // CONFIG_SECURITY_LANDLOCK=y
    //  CONFIG_LSM="landlock,lockdown,yama,loadpin,safesetid,integrity,apparmor,selinux,smack,tomoyo"
    func main() {
     var help = flag.Bool("help", false, "landlock-example -f /path/to/file.txt")
     var file = flag.String("f", "", "the file path to read")

    flag.Parse()
     if *help || len(os.Args) == 1 {
      flag.PrintDefaults()
      return
     }
    
    // allow the program to read files in /home/user/tmp
     err := landlock.V1.RestrictPaths(landlock.RODirs("/home/user/tmp"))
     if err != nil {
     log.Fatal(err)
     }
    
    // attempt to read a file
     bytes, err := ioutil.ReadFile(*file)
     if err != nil {
     log.Fatal(err)
     }
    
    fmt.Println(string(bytes))
    }

All it takes is for one to work out

https://alearningaday.blog/2025/11/28/all-it-takes-is-for-one-to-work-out-2/
170•herbertl•2h ago•85 comments

Be Like Clippy

https://be-clippy.com/
129•Aloha•2h ago•79 comments

Learning Feynman's Trick for Integrals

https://zackyzz.github.io/feynman.html
51•Zen1th•2h ago•5 comments

Post-mortem of Shai-Hulud attack on November 24th, 2025

https://posthog.com/blog/nov-24-shai-hulud-attack-post-mortem
39•makepanic•3d ago•28 comments

Show HN: Nano PDF – A CLI Tool to Edit PDFs with Gemini's Nano Banana

https://github.com/gavrielc/Nano-PDF
47•GavCo•1h ago•10 comments

Landlock-Ing Linux

https://blog.prizrak.me/post/landlock/
19•razighter777•1h ago•5 comments

Zero knowlege proof of compositeness

https://www.johndcook.com/blog/2025/11/29/zkp-composite/
65•ColinWright•4h ago•19 comments

The Origins of Scala (2009)

https://www.artima.com/articles/the-origins-of-scala
27•todsacerdoti•2h ago•10 comments

Men Who Made America's Self-Made Man

https://www.historynewsnetwork.org/article/self-made
12•Petiver•4d ago•0 comments

An update on the Farphone's battery

https://far.computer/battery-update/
38•louismerlin•1d ago•33 comments

Rare X-ray images of a 4.5-ton satellite that returned intact from space

https://www.empa.ch/web/s604/eureca-satellit-mit-roentgenmethoden-untersucht
33•giuliomagnifico•3d ago•2 comments

Europe's New War on Privacy

https://unherd.com/2025/11/europes-new-war-on-privacy/
52•joecobb•1h ago•10 comments

Show HN: Network Monitor – a GUI to spot anomalous connections on your Linux

64•grigio•5d ago•23 comments

Hardening the C++ Standard Library at scale

https://queue.acm.org/detail.cfm?id=3773097
92•ndesaulniers•6d ago•44 comments

Electric vehicle sales are booming in South America – without Tesla

https://www.reuters.com/sustainability/climate-energy/electric-vehicle-sales-are-booming-south-am...
106•breve•3h ago•99 comments

The CRDT Dictionary: A Field Guide to Conflict-Free Replicated Data Types

https://www.iankduncan.com/engineering/2025-11-27-crdt-dictionary/
134•birdculture•10h ago•13 comments

AccessOwl (YC S22) Is Hiring a Technical Account Manager (IAM)

https://www.ycombinator.com/companies/accessowl/jobs/dGC3pcO-technical-account-manager-identity-a...
1•philipeller•5h ago

Bronze Age mega-settlement in Kazakhstan has advanced urban planning, metallurgy

https://archaeologymag.com/2025/11/bronze-age-mega-settlement-in-kazakhstan/
105•CGMthrowaway•1w ago•20 comments

Hachi: An Image Search Engine

https://eagledot.xyz/hachi.md.html
110•warangal•8h ago•13 comments

DNS LOC Record (2014)

https://blog.cloudflare.com/the-weird-and-wonderful-world-of-dns-loc-records/
120•mikejeays•8h ago•33 comments

Framework Computer Now Sponsoring LVFS / Fwupd Development

https://www.phoronix.com/news/Framework-Sponsoring-LVFS
94•LorenDB•3h ago•14 comments

Baboon: Data Modeling with Automatic Evolutions and tagless binary codecs

https://github.com/7mind/baboon
7•pshirshov•2h ago•3 comments

Joe Armstrong interviews Alan Kay (2016) [video]

https://www.youtube.com/watch?v=fhOHn9TClXY
28•kerim-ca•1h ago•1 comments

Anthony Bourdain's Lost Li.st's

https://bourdain.greg.technology/
195•gregsadetsky•3d ago•58 comments

Plinko PIR Tutorial

https://vitalik.eth.limo/general/2025/11/25/plinko.html
11•sygma•3d ago•0 comments

Iceland declares ocean-current instability a national security risk

https://edition.cnn.com/2025/11/15/climate/iceland-warming-current-amoc-collapse-threat
288•donohoe•7h ago•119 comments

Building road signs at home using a Cricut Machine

https://annanay.dev/build-a-signboard/
31•annanay•4d ago•20 comments

WebR – R in the Browser

https://webr.sh/
92•creata•5d ago•28 comments

Major AI conference flooded with peer reviews written by AI

https://www.nature.com/articles/d41586-025-03506-6
163•_____k•7h ago•117 comments

Show HN: Explore what the browser exposes about you

https://neberej.github.io/exposedbydefault/
205•coffeecoders•5d ago•70 comments