From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: ju.orth@gmail.com Received: from krantz.zx2c4.com (localhost [127.0.0.1]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 394b645a for ; Sun, 9 Sep 2018 09:39:59 +0000 (UTC) Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 22b41d15 for ; Sun, 9 Sep 2018 09:39:59 +0000 (UTC) Received: by mail-wr1-x430.google.com with SMTP id z96-v6so18843155wrb.8 for ; Sun, 09 Sep 2018 02:40:34 -0700 (PDT) Return-Path: Subject: Re: Should setting the listen-port require CAP_SYS_ADMIN in the socket namespace? To: WireGuard mailing list References: From: Julian Orth Message-ID: Date: Sun, 9 Sep 2018 11:40:32 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed List-Id: Development discussion of WireGuard List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To be clear: The solution described for the transit-net case also applies to the listen-port case: Trying to change listen-port and/or transit-net should require CAP_SYS_ADMIN in the transit namespace unless the user also proves access to that namespace by passing an UDP socket from that namespace in the same call.