mirror of
https://github.com/nektos/act.git
synced 2026-04-26 09:25:54 +03:00
[PR #716] [MERGED] Add support for container kernel capabilities #1575
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#1575
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/nektos/act/pull/716
Author: @jbenden
Created: 6/1/2021
Status: ✅ Merged
Merged: 6/4/2021
Merged by: @mergify[bot]
Base:
master← Head:capabilities📝 Commits (1)
05385e7Add support for container kernel capabilities📊 Changes
6 files changed (+17 additions, -7 deletions)
View changed files
📝
cmd/input.go(+2 -0)📝
cmd/root.go(+4 -0)📝
pkg/container/docker_run.go(+6 -4)📝
pkg/runner/run_context.go(+1 -1)📝
pkg/runner/runner.go(+2 -0)📝
pkg/runner/step_context.go(+2 -2)📄 Description
This patch adds two new command-line flags to specify one or
more kernel capabilities to add or remove from the workflow
containers.
The command-line flag
--cap-addallows for newcapabilities on the workflow containers; where as,
The command-line flag
--cap-dropallows for removingspecific capabilities on the workflow containers.
This was developed to specifically be able to add
SYS_PTRACEto a workflow I maintain. It involves using this capability to
monitor a make build, to then build a compilation database.
Signed-off-by: Joseph Benden joe@benden.us
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.