Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A wrapper around OpenBSD's pledge(2) systemcall for Nim.

License

NotificationsYou must be signed in to change notification settings

euantorano/pledge.nim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A wrapper around OpenBSD'spledge(2) system call for Nim.

Includes support for OpenBSD'sunveil(2) system call.

Installation

pledge can be installed using Nimble:

nimble install pledge

Or add the following to your.nimble file:

# Dependenciesrequires "pledge >= 2.0.0"

Usage

import pledgepledge(Promises.Stdio)# As we haven't used pledge to ask to access files, the below will cause the program to be terminated with a SIGABRT.let f=open("/etc/rc.conf")

About

A wrapper around OpenBSD's pledge(2) systemcall for Nim.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp