facebook / facebook/zstd

Use OS APIs to Sandbox Zstd

オープン
#1,969 コメント 0 件 リアクション 3 件 担当者 1 名 @felixhandte が担当を希望しています GitHub で見る
feature request long-term
主要言語
C
スター
27.9k
フォーク
2.6k
平均マージ
1日 3時間
マージ済み PR(30日)
8

説明

Some Operating Systems provide tools that let processes give up their ability to perform various kinds of actions. If the process is hijacked somehow, this limits the ability of an attacker to cause damage to the system. It would be nice for the CLI to take advantage of this proactive privilege dropping, since (a) we don't need access to very many system features, and (b) although we are careful, we are doing classically dangerous things (handling untrusted input, doing partially unchecked array accesses and copies, interacting with uninitialized memory, etc.).

Examples we would integrate with would include:

- Linux: the [`seccomp()`](https://www.kernel.org/doc/Documentation/prctl/seccomp_filter.txt) API, which lets you install a BPF program that gets called for each syscall you make, deciding whether to allow it to proceed or not.
- OpenBSD: the [`pledge()`](https://man.openbsd.org/pledge) API defines classes of operations you can reserve the right to use, disabling all the others.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。