-
Notifications
You must be signed in to change notification settings - Fork 12
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
confd: ensure admin users have full access to vtysh #946
Conversation
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.
Thanks for fixing this! 🥇
@@ -45,6 +45,12 @@ static char *os = NULL; | |||
static char *nm = NULL; | |||
static char *id = NULL; | |||
|
|||
static const char *admin_groups[] = { | |||
"wheel", | |||
"frrvty", |
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.
"frrvty", | |
#ifdef HAVE_FRR | |
"frrvty", | |
#endif |
As this list grows, having this type of structure might make it easier to keep track of which deps pull in which groups. It would also avoid the need for group_exists()
. Just a thought.
Now that I think about it: Is there a podman
group that we should add for builds with container support?
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.
Good point. I'll add that to my commit 😀👍
Not that I've seen, but I'll have a look again at podman. I'm still at it with the other related issues anyway.
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.
Dropped the group-exists check, added a comment about future optional support for FRR.
I've also looked into if podman has/requires any group -- answer is none.
So, provided this latest build passes, this feature is complete.
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.
Great 👌
0fedcde
to
addfd3f
Compare
Future Infix defconfigs for smaller system may exclude Frr and set all routes directly in the kernel. So failing to add a user to the frrvty group should not cause an error, hence the new group_exists(). Signed-off-by: Joachim Wiberg <[email protected]>
addfd3f
to
83797ca
Compare
Description
Future Infix defconfigs for smaller system may exclude Frr and set all routes directly in the kernel. So failing to add a user to the
frrvty
group should not cause an error, hence the newgroup_exists()
function.Note, the new
*_groups()
functions could also be used forguest
andoperator
level users. We've talked opening up guest access to sysrepo, relying fully on NACM, in which case we could create a new groupsysrepo
for/dev/shm/*
files.Checklist
Tick relevant boxes, this PR is-a or has-a: