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

"plugin start": spawn plugin processes with a non-0 umask #3375

Merged
merged 1 commit into from
Dec 29, 2019

Conversation

darosior
Copy link
Contributor

@darosior darosior commented Dec 24, 2019

Since they are currently spawned with a umask of 0 (set when daemonizing), plugins will create files with 666 and directory with 777 permissions. This might not be a big deal but 22 may be a more expected default for plugin developers ?

@rustyrussell
Copy link
Contributor

We should leave umask unchanged, from whatever it was at start?

@darosior
Copy link
Contributor Author

Ok, will make it a lightningd member then.

@cdecker
Copy link
Member

cdecker commented Dec 27, 2019

Needs a changelog entry, otherwise looks good to me 👍

@cdecker cdecker self-assigned this Dec 27, 2019
@cdecker cdecker added this to the 0.8.1 milestone Dec 27, 2019
@darosior
Copy link
Contributor Author

Modified to use initial umask instead, and added the Changelog

Changelog-Added: JSONRPC: 'plugin start' now restores initial umask before spawning the plugin process
@cdecker
Copy link
Member

cdecker commented Dec 29, 2019

ACK ab28258

@cdecker cdecker merged commit 841fbf5 into ElementsProject:master Dec 29, 2019
@darosior darosior deleted the umask_for_plugins branch December 29, 2019 18:39
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.

3 participants