From patchwork Sun Apr 1 09:13:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Hesse X-Patchwork-Id: 285 Return-Path: Delivered-To: patchwork@openvpn.net Delivered-To: patchwork@openvpn.net Received: from director10.mail.ord1d.rsapps.net ([172.31.255.6]) by backend30.mail.ord1d.rsapps.net (Dovecot) with LMTP id gwPnK7YzwVpJDQAAIUCqbw for ; Sun, 01 Apr 2018 15:32:06 -0400 Received: from proxy12.mail.iad3b.rsapps.net ([172.31.255.6]) by director10.mail.ord1d.rsapps.net (Dovecot) with LMTP id q9thJLYzwVo0UQAApN4f7A ; Sun, 01 Apr 2018 15:32:06 -0400 Received: from smtp21.gate.iad3b ([172.31.255.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by proxy12.mail.iad3b.rsapps.net with LMTP id AMUiIrYzwVr9FgAAEsW3lA ; Sun, 01 Apr 2018 15:32:06 -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: smtp21.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; dkim=fail (signature verification failed) header.d=eworm.de; dmarc=none (p=nil; dis=none) header.from=eworm.de X-Suspicious-Flag: YES X-Classification-ID: 5c48c236-35e3-11e8-84a2-525400cdc90a-1-1 Received: from [216.105.38.7] ([216.105.38.7:8859] helo=lists.sourceforge.net) by smtp21.gate.iad3b.rsapps.net (envelope-from ) (ecelerity 4.2.1.56364 r(Core:4.2.1.14)) with ESMTPS (cipher=DHE-RSA-AES256-GCM-SHA384) id BA/4F-04066-6B331CA5; Sun, 01 Apr 2018 15:32:06 -0400 Received: from [127.0.0.1] (helo=sfs-ml-4.v29.lw.sourceforge.com) by sfs-ml-4.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1f2ih1-0007fp-Og; Sun, 01 Apr 2018 19:31:07 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-4.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1f2igz-0007fh-VU for openvpn-devel@lists.sourceforge.net; Sun, 01 Apr 2018 19:31:05 +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=DWJAWcifijeYLL5FLa1e9wd5FnanUBUT8MB3NKy5DhI=; b=PVPgf18MPXr84GnuIqklF7kpaG YZtu3bGt/5+G5m8qCBLjMVYIc5+fQkY5g0/fvbl5vXVCQV0fGP/GyWw0SS07pf+ckTNUiOcvnV4A9 48waTqQScHCh0pX4x3/abqRo9dNUi8TWCSxppVQPOCVzzmDVrw6fBwHBOdB9LQYKiTR8=; 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=DWJAWcifijeYLL5FLa1e9wd5FnanUBUT8MB3NKy5DhI=; b=WjHNf7OtkWwc4FABf2h4EauMqN X51uKdoP5/oMaVAas/o7x3q5E72+3RT0dt+PsaqLXdzd8wY6dQOYStxb2B4v3EE4byo8L326oL/wI ZeOFfRFPmIUlMaAwh0WqsOXdQUEJkgSBTaiGiCvEIYl4/T01xqPDXfHBLD4S/kDE8kPY=; Received: from mx.mylinuxtime.de ([148.251.109.235]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) id 1f2igx-005JDc-4X for openvpn-devel@lists.sourceforge.net; Sun, 01 Apr 2018 19:31:05 +0000 Received: from leda.eworm.de (unknown [10.10.4.2]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx.mylinuxtime.de (Postfix) with ESMTPSA id 49480266FD; Sun, 1 Apr 2018 21:14:02 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.10.3 mx.mylinuxtime.de 49480266FD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eworm.de; s=mail; t=1522610042; bh=DWJAWcifijeYLL5FLa1e9wd5FnanUBUT8MB3NKy5DhI=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=A/bnf5ooUmet9L7Eyan4lVXFCTxwec4xrcgPb9jBkvVXCjP0/LpCkXG2J5dcuRu8e SnXWvUTpTBuNfE9ytdO9/+glR3V7g4WDjJ39tJ22s5chPfZCq4qe/na05kAEEHxi8n 7cx3y+p8u6X+r887co2urEEqeY3ykWcxZn7b9ULU= Received: by leda.eworm.de (Postfix, from userid 1000) id EBB36102881; Sun, 1 Apr 2018 21:13:55 +0200 (CEST) From: Christian Hesse To: OpenVPN Development Date: Sun, 1 Apr 2018 21:13:09 +0200 Message-Id: <20180401191309.32211-4-list@eworm.de> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180401191309.32211-1-list@eworm.de> References: <20180401191309.32211-1-list@eworm.de> X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-Headers-End: 1f2igx-005JDc-4X Subject: [Openvpn-devel] [RFC 3/3] systemd: create configuration directories from tmpfiles 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: , Cc: Christian Hesse MIME-Version: 1.0 Errors-To: openvpn-devel-bounces@lists.sourceforge.net X-getmail-retrieved-from-mailbox: Inbox From: Christian Hesse We have a dedicated user created by systemd-sysusers, so create configuration directories from systemd-tmpfiles for proper permissions. This mitigates a race condition at packaging/install time. Signed-off-by: Christian Hesse --- distro/systemd/tmpfiles-openvpn.conf | 2 ++ 1 file changed, 2 insertions(+) ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot diff --git a/distro/systemd/tmpfiles-openvpn.conf b/distro/systemd/tmpfiles-openvpn.conf index 835dc1c8..0f96baa5 100644 --- a/distro/systemd/tmpfiles-openvpn.conf +++ b/distro/systemd/tmpfiles-openvpn.conf @@ -1,2 +1,4 @@ d /run/openvpn-client 0750 openvpn openvpn - d /run/openvpn-server 0750 openvpn openvpn - +d /etc/openvpn/client 0750 openvpn openvpn - +d /etc/openvpn/server 0750 openvpn openvpn -