From patchwork Thu Feb 24 06:23:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kristof Provost via Openvpn-devel X-Patchwork-Id: 2324 Return-Path: Delivered-To: patchwork@openvpn.net Delivered-To: patchwork@openvpn.net Received: from director11.mail.ord1d.rsapps.net ([172.28.255.1]) by backend41.mail.ord1d.rsapps.net with LMTP id oNlPCVa/F2KnAgAAqwncew (envelope-from ) for ; Thu, 24 Feb 2022 12:24:38 -0500 Received: from proxy5.mail.ord1c.rsapps.net ([172.28.255.1]) by director11.mail.ord1d.rsapps.net with LMTP id KCB6C1a/F2L9JQAAvGGmqA (envelope-from ) for ; Thu, 24 Feb 2022 12:24:38 -0500 Received: from smtp25.gate.ord1c ([172.28.255.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by proxy5.mail.ord1c.rsapps.net with LMTPS id oN3vCla/F2K3KgAAPBRIyg (envelope-from ) for ; Thu, 24 Feb 2022 12:24:38 -0500 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: smtp25.gate.ord1c.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=me.com; dmarc=pass (p=none; dis=none) header.from=lists.sourceforge.net X-Suspicious-Flag: YES X-Classification-ID: a4151562-9596-11ec-aede-b8ca3a673c88-1-1 Received: from [216.105.38.7] ([216.105.38.7:54510] helo=lists.sourceforge.net) by smtp25.gate.ord1c.rsapps.net (envelope-from ) (ecelerity 4.2.38.62370 r(:)) with ESMTPS (cipher=DHE-RSA-AES256-GCM-SHA384) id 03/68-03477-55FB7126; Thu, 24 Feb 2022 12:24:37 -0500 Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com) by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.94.2) (envelope-from ) id 1nNHqL-0007jF-PQ; Thu, 24 Feb 2022 17:23:52 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nNHqK-0007j8-GQ for openvpn-devel@lists.sourceforge.net; Thu, 24 Feb 2022 17:23:51 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: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=R6F94IrmlWsgvgi/4qj1c4kaJQPE50ixaFJnSdFgAHM=; b=PSVtU31XtSX90OkxRno0jzIhJm vQ+ka8y9R+AUS7r3JZIcsKczUVjQw9gM1X92jjTsVgOPc1p5pC1zgE5ciP/kIRgHlYnJiaIlt4mer giyakG4aN253qqhBcseVcIq3G3eZ/BvVMaiuAqgspRD8MHsJEC/RW7zBE78Rh8H6B5aY=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject:Cc:To:From :Sender:Reply-To:Content-Type: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=R6F94IrmlWsgvgi/4qj1c4kaJQPE50ixaFJnSdFgAHM=; b=m eRkwF37Uq4aEB17zRJ186Gz9iULcd7iCKGuTFvTJs4O2i+2Hg2l3GgJSeqvgLEeyy9PxnmXkp7PeG PpUrimUwi2krB+4eK5rdtFYEVIoPYG8Bf1ityqINOR0zJSzo2mkjN7e/vrp5/qCj1g7NNkgbmNfOj kz7+5l5AJ/+kfTE0=; Received: from pv50p00im-ztdg10012001.me.com ([17.58.6.51]) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.94.2) id 1nNHqH-00DqOL-7O for openvpn-devel@lists.sourceforge.net; Thu, 24 Feb 2022 17:23:50 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1645723420; bh=R6F94IrmlWsgvgi/4qj1c4kaJQPE50ixaFJnSdFgAHM=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=wC1c9qPvs3d2HXgKJAXcBDnH2w7WCbGLlN5T6lNBolXTXHh0RtfWzbSsAG2jmfTOc YaTfDiBiFZ7N2uOTzMNVcaGOW19w6tUW63esapYk4/ILGIinrC+uXjsFQT3fzsNExm 6QiClU6uJIN53bmdLR8Blddc7HJlinse+uaOA1PDZAYwnLrIBJ5/JZFx1hYkb+yeV/ pB55COH3raMqudICYjxP3rzpdeD12X0lsP2mBmBJpqeSylV2JcRuucNLr2NUm9GhoV zLYgo7zQbkZJF9NJslcc5WboE7Kw0JCM175vGF5wvS11QBN/KJLNIVoNlXY8Vqhzne wbbTFr/AauNBQ== Received: from localhost.localdomain (unknown [49.205.136.29]) by pv50p00im-ztdg10012001.me.com (Postfix) with ESMTPSA id 551A4A0A64; Thu, 24 Feb 2022 17:23:37 +0000 (UTC) To: openvpn-devel@lists.sourceforge.net Date: Thu, 24 Feb 2022 22:53:30 +0530 Message-Id: <20220224172330.43451-1-mohsin92@me.com> X-Mailer: git-send-email 2.32.0 (Apple Git-132) MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.425, 18.0.816 definitions=2022-02-24_03:2022-02-23, 2022-02-24 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 mlxscore=0 mlxlogscore=826 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-2009150000 definitions=main-2202240098 X-Spam-Report: Spam detection software, running on the system "util-spamd-2.v13.lw.sourceforge.com", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Follow up to a480eaa (does the same for auth-pam.c). Signed-off-by: Saifur Rahman Mohsin --- src/plugins/auth-pam/auth-pam.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/plugins/auth-pam/auth-pam.c b/src/plugins/auth-pam/auth-pam.c index 3be647e9..33492e9c 100644 --- a/src/plugins/auth-pam/auth-pam.c +++ b/src/plugins/auth-pam/auth-pam.c @@ -214,10 +2 [...] Content analysis details: (-0.7 points, 6.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [mohsin92[at]me.com] 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit [mohsin92[at]me.com] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 0.0 RCVD_IN_MSPIKE_H4 RBL: Very Good reputation (+4) [17.58.6.51 listed in wl.mailspike.net] -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [17.58.6.51 listed in list.dnswl.org] -0.0 T_SCC_BODY_TEXT_LINE No description available. 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders X-Headers-End: 1nNHqH-00DqOL-7O Subject: [Openvpn-devel] [PATCH] Ignore deprecation warning for daemon on macOS 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: , X-Patchwork-Original-From: Saifur Rahman Mohsin via Openvpn-devel From: Kristof Provost via Openvpn-devel Reply-To: Saifur Rahman Mohsin Errors-To: openvpn-devel-bounces@lists.sourceforge.net X-getmail-retrieved-from-mailbox: Inbox Follow up to a480eaa (does the same for auth-pam.c). Signed-off-by: Saifur Rahman Mohsin Acked-by: Gert Doering --- src/plugins/auth-pam/auth-pam.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/plugins/auth-pam/auth-pam.c b/src/plugins/auth-pam/auth-pam.c index 3be647e9..33492e9c 100644 --- a/src/plugins/auth-pam/auth-pam.c +++ b/src/plugins/auth-pam/auth-pam.c @@ -214,10 +214,17 @@ daemonize(const char *envp[]) { fd = dup(2); } +#if defined(__APPLE__) && defined(__clang__) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +#endif if (daemon(0, 0) < 0) { plugin_log(PLOG_ERR|PLOG_ERRNO, MODULE, "daemonization failed"); } +#if defined(__APPLE__) && defined(__clang__) +#pragma clang diagnostic pop +#endif else if (fd >= 3) { dup2(fd, 2);