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: 3 months ago
JSON representation
Haskell library for OpenBSD's pledge(2)
- Host: GitHub
- URL: https://github.com/oherrala/hs-pledge
- Owner: oherrala
- License: bsd-3-clause
- Archived: true
- Created: 2015-11-30T18:20:57.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-05-30T18:00:33.000Z (over 8 years ago)
- Last Synced: 2024-02-14T03:28:34.936Z (9 months ago)
- Language: Haskell
- Size: 6.84 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-pledge - hs-pledge
README
Haskell library for OpenBSD's pledge(2)
=======================================Example Haskell program:
import System.Pledge
import System.IOmain :: IO ()
main = do
pledge [Stdio] []
print "Pledge works"
withFile "/dev/urandom" ReadMode $ \f ->
hGetContents f >>= putStrpledge(2) kills this when withFile tries to open file.