containers / containers/toolbox

Add --cap-add and --cap-drop support

Open
#1,042 8 comments 1 reaction 0 assignees View on GitHub
1. Feature request 2. Container Configuration 2. Container Realm 5. Good First Issue 5. Help Wanted
Dominant language
Go
Stars
3.5k
Forks
262
Avg merge
3d 1h
Merged PRs (30d)
1

Description

**Is your feature request related to a problem? Please describe.**
Unable to write to `/dev/mmcblkX` devices from within a toolbox container. This is necessary for various development environments where one may, such as in my case, be automating the provisioning of SDCARDs with custom images or firmware.

**Describe the solution you'd like**
I would like to be able to do something like: `toolbox enter firmware-dev --cap-add CAP_SYS_RAWIO` and `toolbox enter firmware-dev --cap-drop CAP_SYS_RAWIO` or do the same with any other Linux capability.

**Describe alternatives you've considered**
The alternative is to effectively reproduce what `toolbox` is doing with `podman` under the hood via a script wrapping `podman` directly. This is less than ideal just for the sheer amount of typing involved :stuck_out_tongue:

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.