Ecosyste.ms: Awesome

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

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

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

Last synced: about 1 month ago
JSON representation

Haskell library for OpenBSD's pledge(2)

Lists

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.