brutella / hc

hc is a lightweight framework to develop HomeKit accessories in Go.
Apache License 2.0
1.74k stars 189 forks source link

Limit permissions on FileStorage directories #182

Closed gonzolino closed 3 years ago

gonzolino commented 4 years ago

Permission bits on FileStorage directories should not be set to 777, since this allows arbitrary users to write to these directories.

Permissions 755 should be sufficient to function.

gonzolino commented 3 years ago

@brutella It would be nice if you could have a look at my PR :)

brutella commented 3 years ago

Thanks for your PR. Merged now. 🎉