mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-24 18:20:07 +01:00
core: allow uid 0 to activate user connections
Previously, uid 0 was not permitted to activate user connections, but in some cases this is desired.
This commit is contained in:
parent
0bc29fe9d3
commit
555dfd35e6
1 changed files with 8 additions and 0 deletions
|
|
@ -2091,6 +2091,14 @@ is_user_request_authorized (NMManager *manager,
|
|||
goto out;
|
||||
}
|
||||
|
||||
/* Let root activate anything.
|
||||
* FIXME: use a PolicyKit permission instead
|
||||
*/
|
||||
if (0 == sender_uid) {
|
||||
success = TRUE;
|
||||
goto out;
|
||||
}
|
||||
|
||||
service_name = dbus_g_proxy_get_bus_name (priv->user_proxy);
|
||||
if (!service_name) {
|
||||
g_set_error (error, NM_MANAGER_ERROR,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue