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

utils.lockFile returns False if the directory doesn't exist (and breaks apt postinit on fresh system) #287

Open
qc00 opened this issue Dec 16, 2023 · 0 comments

Comments

@qc00
Copy link

qc00 commented Dec 16, 2023

https://github.com/CumulusNetworks/ifupdown2/blob/master/ifupdown2/ifupdown/utils.py#L227

Both fixes I can think of are risky:

  • Always create the containing directory - can be abused
  • Change default lock directory to /var/run - not sure if the assumption is baked into other places
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

No branches or pull requests

1 participant