Skip to content
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

radvd: save pwnam if no user or root is passed #166

Merged
merged 1 commit into from
Feb 20, 2022

Conversation

robbat2
Copy link
Member

@robbat2 robbat2 commented Jan 10, 2022

If -u is not passed, or -u root is passed, the is-config-writable by own
uid or own gid check is not needed, so skip the pwnam that it causes.

Reference: #165
Signed-off-by: Robin H. Johnson [email protected]

If -u is not passed, or -u root is passed, the is-config-writable by own
uid or own gid check is not needed, so skip the pwnam that it causes.

Reference: radvd-project#165
Signed-off-by: Robin H. Johnson <[email protected]>
@stappersg
Copy link
Member

Looks good to me.

Let's discuss "need info on how this is being used badly with systemd" in #165

@robbat2
Copy link
Member Author

robbat2 commented Jan 11, 2022

@stappersg +1 anyway?

@robbat2
Copy link
Member Author

robbat2 commented Jan 17, 2022

@stappersg I think this is still valuable, because it removes the getpwnam call if the output of that call would not be used.

@robbat2
Copy link
Member Author

robbat2 commented Feb 20, 2022

@stappersg bump, I still think this should get merged so getpwnam is not needed if configured correctly (would also give a way to not need NSS for this at all).

Copy link
Member

@stappersg stappersg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@stappersg
Copy link
Member

FWIW in #165 is a link to 167 ( and now has this merge request also a linik to #167)

@robbat2 robbat2 merged commit 9ec317f into radvd-project:master Feb 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants