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

upstream kernel hardening: pidfd_open("exe") #17

Open
cyphar opened this issue Dec 29, 2019 · 0 comments
Open

upstream kernel hardening: pidfd_open("exe") #17

cyphar opened this issue Dec 29, 2019 · 0 comments
Labels
security A security issue or hardening problem. upstream/linux Dependent on upstream kernel work.

Comments

@cyphar
Copy link
Member

cyphar commented Dec 29, 2019

We need to have a pidfd-based interface to grab the equivalent of /proc/self/exe. Because it's possible to bind-mount over magic-links we can't trust /proc/self/exe and thus need a proc-less way to do this.

This is a prerequisite of #7 (while we don't use /proc/self/exe it's needed by container runtimes and thus is related to the feature-completeness of #15).

NOTE: #42 solves this problem for privileged users and regular users where an attacker cannot create mounts to exploit the TOCTOU check, but it would be nice for us to solve this completely.

@cyphar cyphar added security A security issue or hardening problem. upstream/linux Dependent on upstream kernel work. labels Dec 29, 2019
@cyphar cyphar mentioned this issue Dec 29, 2019
5 tasks
@cyphar cyphar changed the title pidfd_open("exe") upstream kernel hardening: pidfd_open("exe") Jul 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
security A security issue or hardening problem. upstream/linux Dependent on upstream kernel work.
Projects
None yet
Development

No branches or pull requests

1 participant