Default listening paths #5
Labels
No labels
bug
circologctl
doc
duplicate
enhancement
help wanted
invalid
question
security
syslog
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: boyska/circolog#5
Loading…
Reference in a new issue
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?
The current defaults are insecure: having logs accessible by every user on localhost is unexpected behavior on many systems.
So the default should be to expose HTTP over UNIX domain instead of TCP.
FHS says that sockets should be in
/run/circolog/
So:
/run/circolog/query
/run/circolog/ctl
/run/circolog/syslog
The problem is that non-root users generally can't access those dirs (well, unless you have a start script which creates those and give you ownership; like
RuntimeDirectory
for systemd)So, how to make it work for non-root users? Options are:
/tmp/
instead of/run/
if non-root/tmp/
agreed to put the command line default to
/tmp
, which is a pretty good choice in any case.Better (as in "more FHS-compliant") paths could be proposed at distribution level (when #22 is ready)