database: set stricter file mode creation #58
Labels
No Label
bug
feature
good-beginner-bug
needs-test
question
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: electricdusk/rushlink#58
Loading…
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.