lightningd / plugins

Community curated plugins for core-lightning
BSD 3-Clause "New" or "Revised" License
269 stars 129 forks source link

umask(0) and plugins #79

Closed darosior closed 4 years ago

darosior commented 4 years ago

Plugining fun fact:

lightningd does umask(0) when daemonizing: https://github.com/ElementsProject/lightning/blob/689dd28dddb062f0366aa3f1addb5602602c68a7/lightningd/lightningd.c#L535-L536

So all files created by plugins (started using plugin start) will be 666 and directories 777.. Not really an issue but recall to set umask (at each call) :p .

darosior commented 4 years ago

Hmm so it's only for dynamic plugins, and I think it deserves to be treated upstream not here, closing