Skip to content

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
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