-
Notifications
You must be signed in to change notification settings - Fork 661
add option to relax socket_vmnet validation #2662
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
add option to relax socket_vmnet validation #2662
Conversation
Signed-off-by: Viacheslav Vasilyev <[email protected]>
d58db8d
to
c71a83e
Compare
Signed-off-by: Viacheslav Vasilyev <[email protected]>
Signed-off-by: Viacheslav Vasilyev <[email protected]>
Signed-off-by: Viacheslav Vasilyev <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is needed; you can just delete the sudoers
entry in the network.yaml
file and enable password-less sudo
on the machine. Please file an issue (or PR) if that isn't working.
Allowing relaxed verification is already opening the possibility of privilege escalation without a password prompt, so requiring the user to enable it makes the risk explicit.
Thanks for filing this PR though, it made me look at the code and realize that we should not even create the sudoers file unless all binaries are secure (#2663).
@jandubois it won't work if a user is not a member of the admin group, although is listed in the sudoers file and is an owner of the directory, here is a relevant error message (with the
this check is in this line: Line 103 in 619a4ca
since I'm a sudoer user already, I'm able to change the homebrew's socket_vmnet directory owner to an admin, so that the check passes, however it then complains that the entire directories chain up to / should be owned by a root (or any user which is a member of the admin group)
|
Yes, this is necessary to keep this feature secure. I've shown in #1437 (comment) how you can enable password-less sudo and remove the configuration setting for the |
hello,
with this merge request I'd like to introduce an option to be able to relax socket_vmnet verification logic
regards