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

Allow limited RLIMIT_FSIZE when dumping lease #389

Merged
merged 3 commits into from
Oct 29, 2024

Conversation

ColinMcInnes
Copy link
Contributor

When PRIVSEP, set rlimit to 5Kb when dumping lease (all other privileges are still dropped).

Without this, redirecting dumplease to anything but stdout results in SIGXFSZ due to EBIG error.

Resolves #386

Set rlimit to 5Kb when dumping lease (all other privileges are still dropped).

Without this, redirecting dumplease to anything but stdout results in SIGXFSZ due to EBIG error.
@ColinMcInnes
Copy link
Contributor Author

Note this will still not let you dump lease as part of an exit hook script, those are still limited to FSIZE 0.

@rsmarples
Copy link
Member

@ColinMcInnes I made the fix a bit simpler. Does it still work for you?

@ColinMcInnes
Copy link
Contributor Author

@ColinMcInnes I made the fix a bit simpler. Does it still work for you?

Yes that works for me.

@rsmarples rsmarples merged commit 550c2bb into NetworkConfiguration:master Oct 29, 2024
2 of 5 checks passed
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.

dumplease redirect stdout blocked by rlimit (SIGXFSZ)
2 participants