Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/oherrala/hs-pledge

Haskell library for OpenBSD's pledge(2)
https://github.com/oherrala/hs-pledge

Last synced: 3 months ago
JSON representation

Haskell library for OpenBSD's pledge(2)

Awesome Lists containing this project

README

        

Haskell library for OpenBSD's pledge(2)
=======================================

Example Haskell program:

import System.Pledge
import System.IO

main :: IO ()
main = do
pledge [Stdio] []
print "Pledge works"
withFile "/dev/urandom" ReadMode $ \f ->
hGetContents f >>= putStr

pledge(2) kills this when withFile tries to open file.