Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

oherrala/hs-pledge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Haskell library for OpenBSD's pledge(2)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published