-
Notifications
You must be signed in to change notification settings - Fork 292
[Security] do not run as root. #816
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ package defaults | |
func GetDefaults() platformDefaultParameters { | ||
return platformDefaultParameters{ | ||
// Admin | ||
DefaultAdminListen: "unix:///var/run/yggdrasil.sock", | ||
DefaultAdminListen: "unix:///var/run/yggdrasil/yggdrasil.sock", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This breaks running if the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I didn't test this and indeed if yggdrasil does not try to create the directory in which it wants to place the socket (which IMOHO is a bug) then this will fail. An actual go progammer is required to make ygg create the directory before it attempts to create a file in it. I am not a Go programmer, would appreciate a patch. I guess its not too complex. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No problem, default socket path can be different if run with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. good point. Likely best to use /run/user/{UID}/ which is where Linux by default makes those. For instance wayland creates its sockets there. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, it's bad to hardcode this path. The better way would be to use contents There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually, defaults should be dependent on whether config is generated by regular user or Regular user should have everything in the home directory (and socket |
||
|
||
// Configuration (used for yggdrasilctl) | ||
DefaultConfigFile: "/etc/yggdrasil.conf", | ||
|
Uh oh!
There was an error while loading. Please reload this page.