Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support prctls PR_CAP_AMBIENT + PR_SET_SECUREBITS #6089

Open
bnoordhuis opened this issue May 27, 2021 · 4 comments
Open

Support prctls PR_CAP_AMBIENT + PR_SET_SECUREBITS #6089

bnoordhuis opened this issue May 27, 2021 · 4 comments
Labels
stale-issue This issue has not been updated in 120 days. type: bug Something isn't working

Comments

@bnoordhuis
Copy link

Description

We have code to drop ambient capabilities that looks like this:

prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_CLEAR_ALL, 0, 0, 0);
prctl(PR_SET_SECUREBITS, SECBIT_KEEP_CAPS_LOCKED | SECBIT_NOROOT /* | etc */);

Works great everywhere except under gVisor, where the prctls fail with EINVAL.

Environment

Whatever version of gVisor GCP's Cloud Run uses. A quick skim of the master branch suggests they're not supported there, either.

@bnoordhuis bnoordhuis added the type: bug Something isn't working label May 27, 2021
@ianlewis
Copy link
Contributor

gVisor currently doesn't support ambient capabilities so we'd likely need to support them before supporting PR_CAP_AMBIENT
#3166

@github-actions
Copy link

A friendly reminder that this issue had no activity for 120 days.

@github-actions github-actions bot added the stale-issue This issue has not been updated in 120 days. label Sep 13, 2023
Copy link

This issue has been closed due to lack of activity.

@milantracy milantracy reopened this Jan 18, 2024
@ayushr2 ayushr2 removed stale-issue This issue has not been updated in 120 days. auto-closed labels Jan 18, 2024
Copy link

A friendly reminder that this issue had no activity for 120 days.

@github-actions github-actions bot added the stale-issue This issue has not been updated in 120 days. label May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale-issue This issue has not been updated in 120 days. type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants