プロジェクト
GitHubで見る
landlock-lsm/go-landlock
概要
A Go library for the Linux Landlock sandboxing feature
セキュリティ・プライバシー計測したスター増加
- 24時間
- +1
- 7日間
- +2
- 15日間
- +4
- 1か月
- +8
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルGo-Landlock is a Go library for the Landlock LSM, an unprivileged sandboxing mechanism on Linux.
What is Landlock?
Landlock is a Linux kernel feature and can restrict the following types of access:
- Filesystem access
- Some network operations
- Some IPC operations
More details and examples in the Go-Landlock documentation and the Linux Userspace API documentation for Landlock. The Landlock LSM was introduced with Linux 5.13 and is today enabled on most major Linux distributions.
TL;DR: Example
In a Go program, after starting up and doing program initialization work, run:
err := landlock.V11.BestEffort().RestrictPaths(
landlock.RODirs("/usr", "/bin"),
landlock.RWDirs("/tmp"),
)
After this invocation, your program can only access the specified paths.
Goals
Goals of Go-Landlock are:
- Make unprivileged sandboxing easy to use and effective.
- Keep Go-Landlock's implementation at an easily auditable size.
How to...
関連プロジェクトを探す
読み込み中…