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: O_EMPTYPATH #16

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

upstream kernel hardening: O_EMPTYPATH #16

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 an alternative interface to re-open through /proc/self/fd/$n. Because it's possible to bind-mount over magic-links we can't trust /proc/self/fd/$n and thus need a proc-less way to do this.

This is a prerequisite of #7 and #15.

#42 solves this problem for the most part, except for unprivileged users where an attacker can modify the mount table while you're doing the lookup. It would be nice to solve this though.

@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 O_EMPTYPATH upstream kernel hardening: O_EMPTYPATH 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