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

/run not being mounted as readonly #56

Closed
ezrizhu opened this issue Jun 25, 2023 · 0 comments · Fixed by #67
Closed

/run not being mounted as readonly #56

ezrizhu opened this issue Jun 25, 2023 · 0 comments · Fixed by #67
Assignees
Labels
bug Something isn't working

Comments

@ezrizhu
Copy link
Collaborator

ezrizhu commented Jun 25, 2023

It seems like mount --rbind -o ro,noload --read-only /run "$SANDBOX_DIR/temproot/run" is not making /run mount as readonly.
We should also try to get this mounted in overlayfs aswell so we can track changes in run.

Motivation: running try rm -rf --no-preserve-root /* will break the system until the system is power-cycled as removing entries in /run breaks systemd.

Relates to #20

@ezrizhu ezrizhu added the bug Something isn't working label Jun 25, 2023
@ezrizhu ezrizhu self-assigned this Jun 25, 2023
@ezrizhu ezrizhu linked a pull request Jun 26, 2023 that will close this issue
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant