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

procfs: minor hardening #19

Merged
merged 2 commits into from
Jul 23, 2024
Merged

procfs: minor hardening #19

merged 2 commits into from
Jul 23, 2024

Conversation

cyphar
Copy link
Owner

@cyphar cyphar commented Jul 23, 2024

Fixes #18
Signed-off-by: Aleksa Sarai cyphar@cyphar.com

By operating on the magic-link directly, we (in theory) should be safe
against a racing mount even when using unsafeHostProcRoot(). There's not
much we can do about Reopen, but at least the core lookup logic should
be safe against race attacks.

Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
This should lower the chance of checking the wrong paths if we ever
rework this code (though our tests do catch bugs here).

Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
@cyphar cyphar merged commit ecd61ca into main Jul 23, 2024
11 checks passed
@cyphar cyphar deleted the proc-minor-hardening branch July 23, 2024 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

proc: should we bother with some minor improvements?
1 participant