TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Pledge() and Unveil() in SerenityOS

110 pointsby aklingover 5 years ago

8 comments

icandoitover 5 years ago
I really enjoy the craftsmanship in project like the SerenityOs operating system, the Zig programming language, and similar projects in the HandMade network (games and debuggers).<p>I hope this is only the beginning of a renaissance in quality independent software.
throwaway8879over 5 years ago
The SerenityOS author makes fairly regular videos related to the OS, bug fixes, and other dev and life things. It&#x27;s cool and inspiring to see a highly productive hacker do their thing on stream, kind of like watching Steve Gadd do a drum solo.
评论 #22120430 未加载
jabedudeover 5 years ago
Andreas, I find your improvements in the SerenityOS security posture really interesting (including pledge()&#x2F;unveil()). Could you share your thoughts about choosing the BSD&#x2F;pledge API instead of the Linux&#x2F;seccomp way?
评论 #22120380 未加载
Accujackover 5 years ago
Nifty concepts. This sort of system being inherent in next generation OS design will be a big factor in limiting or eliminating malware and security issues as they presently exist.
评论 #22124498 未加载
tasty_freezeover 5 years ago
I don&#x27;t understand how unveil works for applications which ask the user to supply a file to work on, as the app can&#x27;t pre-declare where in the file system the user might want to go to. For example, how would a word processor allow a user to select an arbitrarily located document to edit?<p>Or is there some exception mechanism which allows any directory path that the user selected manually?
评论 #22121252 未加载
评论 #22120868 未加载
评论 #22120956 未加载
bleairover 5 years ago
Neat, though I wish pledge and unveil included a string parameter to indicate why the process is needing the requested resource)s). Thus way as the user of an application I have a hint for why a process is trying to access some resource. The code making the call could try to lie, but at least I’d have a hint about the processes claim med intent vs. what it does
greatjack613over 5 years ago
Can someone explain what the advantages of such a system is &#x2F; are? I mean if a program can say what its doing, then a hacked program will also declare what its doing before, so what security benefit does this provide?
评论 #22121938 未加载
评论 #22121778 未加载
woodrowbarlowover 5 years ago
so this is essentially a syscall permissions system, right? i don&#x27;t understand the point of having the application itself define its own permissions, as opposed to the user imposing permission restrictions upon an application.<p>could somebody enlighten me?
评论 #22121254 未加载
评论 #22121750 未加载
评论 #22121376 未加载