From patchwork Fri Oct 7 10:01:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Hajnoczi X-Patchwork-Id: 9365925 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A4DDE608A6 for ; Fri, 7 Oct 2016 10:05:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 912772949B for ; Fri, 7 Oct 2016 10:05:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 85BFD2949D; Fri, 7 Oct 2016 10:05:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 409242949C for ; Fri, 7 Oct 2016 10:05:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750866AbcJGKFC (ORCPT ); Fri, 7 Oct 2016 06:05:02 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40350 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751549AbcJGKFB (ORCPT ); Fri, 7 Oct 2016 06:05:01 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CC718A0CC1 for ; Fri, 7 Oct 2016 10:04:05 +0000 (UTC) Received: from localhost (ovpn-112-51.ams2.redhat.com [10.36.112.51]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u97A3k1F031341; Fri, 7 Oct 2016 06:03:58 -0400 From: Stefan Hajnoczi To: linux-nfs@vger.kernel.org Cc: Stefan Hajnoczi Subject: [PATCH 3/4] mount: accept AF_VSOCK in nfs_verify_family() Date: Fri, 7 Oct 2016 11:01:42 +0100 Message-Id: <1475834503-3984-4-git-send-email-stefanha@redhat.com> In-Reply-To: <1475834503-3984-1-git-send-email-stefanha@redhat.com> References: <1475834503-3984-1-git-send-email-stefanha@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Fri, 07 Oct 2016 10:04:05 +0000 (UTC) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Since AF_VSOCK is now a supported address family it needs to be accepted by nfs_verify_family(). Signed-off-by: Stefan Hajnoczi --- utils/mount/network.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/mount/network.c b/utils/mount/network.c index dcc38ca..e4c6e1d 100644 --- a/utils/mount/network.c +++ b/utils/mount/network.c @@ -1417,7 +1417,7 @@ sa_family_t config_default_family = AF_INET; static int nfs_verify_family(sa_family_t family) { - if (family != AF_INET) + if (family != AF_INET && family != AF_VSOCK) return 0; return 1;