database: set stricter file mode creation #58
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently,
internal/db.OpenDB()
executes:where
0666
indicates anos.FileMode
. This translates to the permissionsrw-rw-rw-
, used in Bolt for the creation file mode (see here). However,umask
may influence this behaviour:It would be better to only grant
rw
permission for user/group, and none for other, by default.Agreed.