Skip to content

Set the user for dropping privileges in the configuration file#56

Open
g1drk wants to merge 1 commit intodimkr:masterfrom
g1drk:config
Open

Set the user for dropping privileges in the configuration file#56
g1drk wants to merge 1 commit intodimkr:masterfrom
g1drk:config

Conversation

@g1drk
Copy link

@g1drk g1drk commented May 3, 2020

This is currently determined at build time, which is pretty inflexible and ties the plugin to specific runtime /etc/passwd configuration. It seems only to make sense using the configuration file for this.


if (root) {
g_free (username);
username = g_key_file_get_value (cfg, "global", "user", NULL);
Copy link
Owner

Choose a reason for hiding this comment

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

Why store it in a global?

Copy link
Author

Choose a reason for hiding this comment

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

I didn’t want to change much, so I did the same thing it does with resolvers and command line arguments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants