An open API service indexing awesome lists of open source software.

https://github.com/demindiro/runcap

Run programs temporarily with capabilities as non-root
https://github.com/demindiro/runcap

Last synced: over 1 year ago
JSON representation

Run programs temporarily with capabilities as non-root

Awesome Lists containing this project

README

          

# runcap

This program allows granting specific capabilities to non-root processes.

## Why not capsh?

`capsh` is (IMO) awful to use and I couldn't find an alternative. For some
reason the Debian version misses `--addamb` too which makes it effectively
useless. I also can't figure out how to make it `exec()` ("chainload") a
program.

## How it works

- Set UID & GID (with `set_uid` and `set_groups`, which are special).
- Put a list of capabilities in the effective, inheritable and permitted
sets.
- Put those capabilities in the ambient set.
- Execute the program.

## TODO

It may be worth setting the bounding set properly.