Date: Tue, 16 Aug 2022 11:33:09 +0200 From: Gert Doering Message-ID: References: <20220514103717.235-1-timo@...2669...> <202208111003.27BA3jBP091528@...2054...> <41d3a297-83f3-5b13-49f7-dd70b0d8daee@...2669...> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="4fmQ+PWSwNogiEaB" Content-Disposition: inline In-Reply-To: Subject: Re: [Openvpn-devel] [PATCH applied] Re: platform: Retain CAP_NET_ADMIN when dropping privileges List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Steffan Karger Cc: Gert Doering , Timo Rothenpieler , openvpn-devel --4fmQ+PWSwNogiEaB Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, On Tue, Aug 16, 2022 at 11:16:50AM +0200, Steffan Karger wrote: > So I'm really not in favour of retaining CAP_NET_ADMIN "just in case". > I would even like to be able to not retain it at all. I hear what you say, and I support that line of thought. Alas, with current Linux-DCO, we need this for fiddling all the DCO bits (keys / key renewal! / peer-id / install/update peers), as this is done via netlink, and netlink requires CAP_NET_ADMIN. To get around that we'd need to find a communication channel to=20 (Linux-)DCO that does not require privileges after initial setup=20 ("hey, DCO, give me a socket that does not need privileges") and=20 rewrite quite a bit... I'm sure that Antonio will be thrilled by that new challenge... :-) gert --=20 "If was one thing all people took for granted, was conviction that if you=20 feed honest figures into a computer, honest figures come out. Never doubte= d=20 it myself till I met a computer with a sense of humor." Robert A. Heinlein, The Moon is a Harsh Mistre= ss Gert Doering - Munich, Germany gert@...1296... --4fmQ+PWSwNogiEaB Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGcBAEBAgAGBQJi+2RVAAoJEB2Cnv7KVigSYNEL/jVVbyWCjtYvaewcnqhMDFQa SlB5AXsROeEpR4Zk2YMMu4jXmM3gPgpxw5YDN8q49zuiBSyBwnPrO7QQsVKha+KD 01cMtKQT9HaITojFP8d6VSQSQUy1vRVb6jh4MGXTV+iR+GgxGhbe/oM96aUXZITG W6XHBHddKwbzIqIrp7fsPYatgFnV6F0HR1MoNI5pDkxkUoDOz2w5PZG9dqKaUPaw O4Bu9tz7NYgv7iVgH0iJLAUEZ/TnxAQIWnQG9GB4s4q6BpHP75SAN5nEsJWpsEUN f2XaHXUEzufXpTaef6reHDIz7yEUFXS2oDk/LXZeIgo59JvdzrFChWj5kBwsEiEX Feswb2BUEsHFJiOTIpYNsHeCcfBXgW9G8JSbT44XiQhTJ/+zEJ2vK3OKxr9PnUrQ 1LpHEQL4qq6upept4bH4dPvaQwZpROXZHGlGcGrm7QB2xv7h6bCMaODnztw6nZBh pcxvkTEu11yfHNW8oXPnyxnHGbOF/92G/5Ig7X7nQA== =Hchv -----END PGP SIGNATURE----- --4fmQ+PWSwNogiEaB--