From patchwork Wed Aug 29 04:27:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Ehrhardt X-Patchwork-Id: 457 Return-Path: Delivered-To: patchwork@openvpn.net Delivered-To: patchwork@openvpn.net Received: from director9.mail.ord1d.rsapps.net ([172.31.255.6]) by backend30.mail.ord1d.rsapps.net (Dovecot) with LMTP id 40ZtAnathlv8GgAAIUCqbw for ; Wed, 29 Aug 2018 10:28:06 -0400 Received: from proxy13.mail.iad3b.rsapps.net ([172.31.255.6]) by director9.mail.ord1d.rsapps.net with LMTP id cHaXO3WthltxCgAAalYnBA ; Wed, 29 Aug 2018 10:28:06 -0400 Received: from smtp22.gate.iad3b ([172.31.255.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by proxy13.mail.iad3b.rsapps.net with LMTP id gP6WNXWthls3VwAAvUvv+w ; Wed, 29 Aug 2018 10:28:05 -0400 X-Spam-Threshold: 95 X-Spam-Score: 0 X-Spam-Flag: NO X-Virus-Scanned: OK X-Orig-To: openvpnslackdevel@openvpn.net X-Originating-Ip: [216.105.38.7] Authentication-Results: smtp22.gate.iad3b.rsapps.net; iprev=pass policy.iprev="216.105.38.7"; spf=pass smtp.mailfrom="openvpn-devel-bounces@lists.sourceforge.net" smtp.helo="lists.sourceforge.net"; dkim=fail (signature verification failed) header.d=sourceforge.net; dkim=fail (signature verification failed) header.d=sf.net; dmarc=fail (p=none; dis=none) header.from=canonical.com X-Suspicious-Flag: YES X-Classification-ID: bdc74364-ab97-11e8-9f0e-52540041dff8-1-1 Received: from [216.105.38.7] ([216.105.38.7:24716] helo=lists.sourceforge.net) by smtp22.gate.iad3b.rsapps.net (envelope-from ) (ecelerity 4.2.38.62370 r(:)) with ESMTPS (cipher=DHE-RSA-AES256-GCM-SHA384) id F5/29-28641-57DA68B5; Wed, 29 Aug 2018 10:28:05 -0400 Received: from [127.0.0.1] (helo=sfs-ml-2.v29.lw.sourceforge.com) by sfs-ml-2.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1fv1RQ-0004tf-A9; Wed, 29 Aug 2018 14:27:28 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-2.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1fv1RP-0004tZ-Ey for openvpn-devel@lists.sourceforge.net; Wed, 29 Aug 2018 14:27:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=HXjil4k7WBi22DVYW+Pi4kcVr+goLwWm+ET9jAGoV6A=; b=jL6TekeQXNINV3l8+wYJ3CsAKw vRhRb9LxP0ieNkqvLa1B/EJiEx0nPdX64xRtV2n1bU+ssKFuxwXGs9KHZjQplsNzfl/DzEUhoS9y0 +EeHe2pPRVACEANp17ybYLea7fe1ahEW9RGKt44ToZ6Rh8VDJDvPDs/lwI7O8i9REnPI=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To :MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=HXjil4k7WBi22DVYW+Pi4kcVr+goLwWm+ET9jAGoV6A=; b=UOKIVli9K84hbYYKa+krwW9ApS al2yE9EqX8moQrKQZe0fBwUEnHPotUMf1D7Sr/SRHOPcvQSVdOanDr+FDsdsOpGPn/bsJOj/EijLJ wVp8dMwGxfNoegE7Ph1/wlz0dONmQP2irA48xj/XeOLg5yTbDzWZFKgag84noxi3yHT0=; Received: from youngberry.canonical.com ([91.189.89.112]) by sfi-mx-4.v28.lw.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.90_1) id 1fv1RN-0026co-FW for openvpn-devel@lists.sourceforge.net; Wed, 29 Aug 2018 14:27:27 +0000 Received: from 1.general.paelzer.uk.vpn ([10.172.196.172] helo=lap.fritz.box) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1fv1RG-0004Do-Pw; Wed, 29 Aug 2018 14:27:18 +0000 From: Christian Ehrhardt To: openvpn-devel@lists.sourceforge.net Date: Wed, 29 Aug 2018 16:27:15 +0200 Message-Id: <20180829142715.417-3-christian.ehrhardt@canonical.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180829142715.417-1-christian.ehrhardt@canonical.com> References: <20180829142715.417-1-christian.ehrhardt@canonical.com> X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. X-Headers-End: 1fv1RN-0026co-FW Subject: [Openvpn-devel] [PATCH 2/2] systemd: extend CapabilityBoundingSet for learn-address X-BeenThere: openvpn-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: openvpn-devel-bounces@lists.sourceforge.net X-getmail-retrieved-from-mailbox: Inbox It seems a not too uncommon case that learn-address needs to recycle dnsmasq - to do so it would need CAP_KILL. This was suggested on https://community.openvpn.net/openvpn/ticket/918 Signed-off-by: Christian Ehrhardt --- distro/systemd/openvpn-server@.service.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distro/systemd/openvpn-server@.service.in b/distro/systemd/openvpn-server@.service.in index d1cc72cb..edace213 100644 --- a/distro/systemd/openvpn-server@.service.in +++ b/distro/systemd/openvpn-server@.service.in @@ -11,7 +11,7 @@ Type=notify PrivateTmp=true WorkingDirectory=/etc/openvpn/server ExecStart=@sbindir@/openvpn --status %t/openvpn-server/status-%i.log --status-version 2 --suppress-timestamps --config %i.conf -CapabilityBoundingSet=CAP_IPC_LOCK CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW CAP_SETGID CAP_SETUID CAP_SYS_CHROOT CAP_DAC_OVERRIDE CAP_AUDIT_WRITE +CapabilityBoundingSet=CAP_IPC_LOCK CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW CAP_SETGID CAP_SETUID CAP_SYS_CHROOT CAP_DAC_OVERRIDE CAP_AUDIT_WRITE CAP_KILL LimitNPROC=10 DeviceAllow=/dev/null rw DeviceAllow=/dev/net/tun rw