From patchwork Wed Sep 9 12:15:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Selva Nair X-Patchwork-Id: 1437 Return-Path: Delivered-To: patchwork@openvpn.net Delivered-To: patchwork@openvpn.net Received: from director7.mail.ord1d.rsapps.net ([172.27.255.8]) by backend30.mail.ord1d.rsapps.net with LMTP id wL6GIl1UWV+fOAAAIUCqbw (envelope-from ) for ; Wed, 09 Sep 2020 18:17:01 -0400 Received: from proxy3.mail.iad3a.rsapps.net ([172.27.255.8]) by director7.mail.ord1d.rsapps.net with LMTP id QKVrIl1UWV8JOAAAovjBpQ (envelope-from ) for ; Wed, 09 Sep 2020 18:17:01 -0400 Received: from smtp16.gate.iad3a ([172.27.255.8]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by proxy3.mail.iad3a.rsapps.net with LMTPS id gG1lG11UWV9EfQAAYaqY3Q (envelope-from ) for ; Wed, 09 Sep 2020 18:17:01 -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: smtp16.gate.iad3a.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=gmail.com; dmarc=fail (p=none; dis=none) header.from=gmail.com X-Suspicious-Flag: YES X-Classification-ID: 2e45a02c-f2ea-11ea-99f7-5254004ee196-1-1 Received: from [216.105.38.7] ([216.105.38.7:53040] helo=lists.sourceforge.net) by smtp16.gate.iad3a.rsapps.net (envelope-from ) (ecelerity 4.2.38.62370 r(:)) with ESMTPS (cipher=DHE-RSA-AES256-GCM-SHA384) id BC/4E-16162-C54595F5; Wed, 09 Sep 2020 18:17:00 -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 1kG8Nm-0004GT-HC; Wed, 09 Sep 2020 22:16:02 +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 1kG8Nk-0004GE-ND for openvpn-devel@lists.sourceforge.net; Wed, 09 Sep 2020 22:16:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=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:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=nQzV6c5UYmxG5INAzf9TABA1dNWsWdf/Tw5FQMGIqj8=; b=htZ/ank4icdytWGoF91l7dutZa z6bAiJ9oXaamrxJgTUwWUqdsS7q1mMl0LRgZU4wprv5QP540O2JYbwbmd8Wzw+mFD6oqv3TZ2/GOI KWpsCdcDiSma6sL1reD7oGCtGlbt9l5wabWodSdsbG3gPo1hGJGw6YrhYEFa6Rgw8SB0=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=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: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=nQzV6c5UYmxG5INAzf9TABA1dNWsWdf/Tw5FQMGIqj8=; b=Le6PLPcB3nnXWnMIonBv2wwnLO WeDbxjouORpFgBr+wA05IHbB4xLLwd4BG28m4r8XJzZKmI8VZg/v9QQoDJZsciGSIMIw72Kc0L9CK gWaMU8gdGNYNyxeGaMBQZHhab3M4CdNlqeKsGELR4XjsRFezP55PKxBv79gBsU497pMk=; Received: from mail-qk1-f196.google.com ([209.85.222.196]) by sfi-mx-3.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92.2) id 1kG8Ni-0015sE-Qp for openvpn-devel@lists.sourceforge.net; Wed, 09 Sep 2020 22:16:00 +0000 Received: by mail-qk1-f196.google.com with SMTP id g72so4060810qke.8 for ; Wed, 09 Sep 2020 15:15:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=nQzV6c5UYmxG5INAzf9TABA1dNWsWdf/Tw5FQMGIqj8=; b=MdjFs8/wF7eCcf18sh/o5yLrkRAsr2UzXL3s580P06LobqhlmGv7FOhv52vzfaAtBK 6qw1r05J72/5IYU+1ioqnrK7Yos2HqtvdPR5DaFHoFwRgME7jtRp4qTKJtg6mnAf3WXB K19htNdGKePFnkxVtfHDM7/XYItEtplhwQwRP0xJlWrhJT7pnKaixE2V94bjwau/fP+d Ss3LuwFFK8NXaRth37TmyZWT2gM3PZqoSsmxlKJ1+s6VjD3HKsEAm9n8KlKadUC9Cxs6 9fRB50Rw1dHVeN12ivFQMSQKzk43YyGYOpzWx0Iq54gs/tsZ+MNtl37fHx1gTaYqA7jX G1Xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=nQzV6c5UYmxG5INAzf9TABA1dNWsWdf/Tw5FQMGIqj8=; b=l87E84cK5ehccUYfmr6CRjQ7bmYs6x2j/zauB1uHTOTuj0Bs/sqIgdSNZ+q/iXlGHc k/bBi9st59hMuAXbIyJTG4NKvG1eSd7c8s8rjrbUPdRxxLAiT+V3/gipy/76Y5Be8yQN JqXx8I2uaCbvzjvVxRzdZKO8WLdR/Wgdhh+cx50AhVAzenKLX4EN1NaWcCzwo7dNjgl7 aZg3pByp/daOmvHt8+FPOkIPMDaF1M1xqXQu+8Sah+1HGzItVGzkB/TK4J7RPHJFdUB0 cCUwnxKQ1GOrkkpnqPVX/GZaJJ6VRYafHbGMOzmaP+irT1lrLvY64V2x53apyd1lCDeI Zrlw== X-Gm-Message-State: AOAM533yPJV0Z/9F9y01mtwHfMPDyGzCS1EAJ9tLx6SbVZ9gaxgqUWGN TFYipBOPb2ZkkTmVtGpuRKz+ZISjTS4= X-Google-Smtp-Source: ABdhPJzJ46YATqacI/Ef9iFjZw0Bjkj4jOh37x+Fe902yHG6bUO5PPAs33Z+IKvKLipNIWlxuzoZ5A== X-Received: by 2002:a05:620a:211c:: with SMTP id l28mr5082074qkl.395.1599689752841; Wed, 09 Sep 2020 15:15:52 -0700 (PDT) Received: from saturn.home.sansel.ca (CPE40167ea0e1c2-CM788df74daaa0.cpe.net.cable.rogers.com. [99.228.34.11]) by smtp.gmail.com with ESMTPSA id g131sm3923922qkb.135.2020.09.09.15.15.52 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Sep 2020 15:15:52 -0700 (PDT) From: selva.nair@gmail.com To: openvpn-devel@lists.sourceforge.net Date: Wed, 9 Sep 2020 18:15:29 -0400 Message-Id: <1599689729-25906-1-git-send-email-selva.nair@gmail.com> X-Mailer: git-send-email 2.1.4 X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (selva.nair[at]gmail.com) -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.222.196 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.222.196 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-Headers-End: 1kG8Ni-0015sE-Qp Subject: [Openvpn-devel] [PATCH] Add a remark on dropping privileges when --mlock is used 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 From: Selva Nair trac #1059 Signed-off-by: Selva Nair Acked-by: Gert Doering --- doc/man-sections/generic-options.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/man-sections/generic-options.rst b/doc/man-sections/generic-options.rst index a07fe7e..d5f0883 100644 --- a/doc/man-sections/generic-options.rst +++ b/doc/man-sections/generic-options.rst @@ -230,6 +230,13 @@ which mode OpenVPN is configured as. The downside of using ``--mlock`` is that it will reduce the amount of physical memory available to other applications. + The limit on how much memory can be locked and how that limit + is enforced are OS-dependent. On Linux the default limit that an + unprivileged process may lock (RLIMIT_MEMLOCK) is low, and if + privileges are dropped later, future memory allocations will very + likely fail. The limit can be increased using ulimit or systemd + directives depending on how OpenVPN is started. + --nice n Change process priority after initialization (``n`` greater than 0 is lower priority, ``n`` less than zero is higher priority).