Re: --user specified but lacking CAP_SETPCAP

Gert Doering <[email protected]>
Newsgroups gmane.network.openvpn.user
Message-ID <[email protected]>
Hi,

On Fri, Oct 27, 2023 at 10:33:03AM +0200, David Sommerseth wrote:
> Unit files not provided by the OpenVPN
> project may indeed be as bad as a home grown sys-v init script which doesn't
> do all the needed things OpenVPN or the system itself expects.

A home-grown sys-v init script is quite unlikely to mess with OpenVPN's
operation as badly as all these nice Systemd features are, like "take
away capabilities" or "protect /tmp" ;-)

[..]
> In the end ... securing, hardening and ensuring a system runs stable, that
> does have some user experience costs - just like it's been a huge change in
> the Windows world too, going from the Win95 "you're all admins by default"
> to all the limitations you'll face out-of-the-box in Win11.

Windows is *much* less annoying today than all the ways Systemd gets into your
way on today's Linux distributions.

But that might be a bit of Stockholm Syndrome.

[..]
> OpenVPN 2 out-of-the-box without systemd (or any other execution strategy
> restricting capabilities in advance) will have lots of possibilities on the
> host.  Systemd in OpenVPN 2.x context just ensures the process is started
> with as few privileges as possible to start running.  Which can reduce the
> possibilities of a misbehaving/misconfigured OpenVPN to actually do
> unexpected harm to the system.

OpenVPN 2 has all the capabilities it needs to do so (--user nobody,
plus the required capability management to work with DCO).  All systemd
adds here is "make troubleshooting more complicated".

> Systemd doesn't "mess with OpenVPN". 

If it takes away capabilities OpenVPN needs, how would you call it, then?

"Sabotage"?

gert
-- 
"If was one thing all people took for granted, was conviction that if you 
 feed honest figures into a computer, honest figures come out. Never doubted 
 it myself till I met a computer with a sense of humor."
                             Robert A. Heinlein, The Moon is a Harsh Mistress

Gert Doering - Munich, Germany                             [email protected]

_______________________________________________
Openvpn-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-users
signature.asc (application/pgp-signature, 630 B)
-----BEGIN PGP SIGNATURE-----

iQGcBAEBAgAGBQJlO7pAAAoJEB2Cnv7KVigSVuIMALN84My5tiGSYpHvscuX3m5V
6jHs7x/WM7f4w2qq4x5tHnGSVgwLMqCUy4JmtdOgQFKcNCRniL9Cb/nm3lIWhSvJ
41IcPU/YAToWdmPjCgeqEqUVb3VamBJpWPGbk5hEU62Cq6nNyldVLb7hqYEKFbrJ
7TtnFWroPKpbsIGMTzQ3htiVnvLWOGepjqwxnDGeNrJ0s9QZv4q+tk7slppTYRqt
9kgB+zbZwkrQ99hNe5r5i5nQbINasMHQUOX12IUL/gC5IoFArpkUIY54tgRGQNoH
k1MPnlGG7xgFRICuQulJrFsn6echH8uh5eZULYyGddmQ+p+b4S0NzIctq0vhwuiJ
ux0uHALrUFuU843SwCQL1RIZ+YgCts/IsBPJF+BuTvrAGiSYu6+KwSqX9l389GEZ
f90BYTyDMluXh9A9+pxuQ6DGt/EEkVizrrz9TyafMnyr0a34Q6hFWsdoOJJoGPd3
e+3N1INWwEJx+h17/YR3vnH2j1hH6Ff8yejPPEB4qw==
=UJeg
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.