Linux capabilities in dlang
Find a file
2024-11-02 02:55:54 +01:00
source/capabilities Initial commit; v1.0 2024-11-02 02:55:54 +01:00
.gitignore Initial commit; v1.0 2024-11-02 02:55:54 +01:00
dub.json Initial commit; v1.0 2024-11-02 02:55:54 +01:00
LICENSE Initial commit; v1.0 2024-11-02 02:55:54 +01:00
readme.md Initial commit; v1.0 2024-11-02 02:55:54 +01:00

capabilities-d

A wrapper around the linux capabilitiy system and libcap in dlang.

License

The code in this repository is licensed under AGPL-3.0-or-later; for more details see the LICENSE file in the repository.

Usage

  • get_capid_byname(string) to lookup human readable names to capability id's.
  • setCurrentCapabilities(string[]) to set the current capabilities from a list of human readable names.
  • the Capabilities struct to control capabilities more fine-graded than setCurrentCapabilities.