NetworkManager/examples
Thomas Haller f1a1921edc
examples: drop confusing UID handling in "vpn.py" example
First of all, the "os.setuid()" call is never reached. lgtm.com warns about
that, and warnings are annoying because they require investigation.

This code is only in the example, so that the user would understand that
they should edit the source and set the desired UID. But you can only
call setuid() if you have CAP_SETUID, so commonly this anyway doesn't
work -- unless you are root already, and then you actually don't need
it either.

Let's drop this code from the example.

Maybe this example really should be dropped. Does the "dbus" python
module even still work? Doesn't for me...
2021-05-27 00:02:19 +02:00
..
C example: rework "vpn-import-libnm" example 2021-04-01 21:16:01 +02:00
dispatcher dispatcher: avoid "dirname" and "basename" calls in "10-ifcfg-rh-routes.sh" script 2019-10-04 12:38:16 +02:00
js all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
lua/lgi all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
nm-conf.d examples: drop rtl drivers from the mac address change blacklist 2019-04-08 10:10:25 +02:00
python examples: drop confusing UID handling in "vpn.py" example 2021-05-27 00:02:19 +02:00
ruby all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
shell all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00