From patchwork Tue Jan 14 16:27:30 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Weston Andros Adamson X-Patchwork-Id: 3486621 Return-Path: X-Original-To: patchwork-linux-nfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E48C79F381 for ; Tue, 14 Jan 2014 16:27:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DC01D20221 for ; Tue, 14 Jan 2014 16:27:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A434B2021C for ; Tue, 14 Jan 2014 16:27:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751954AbaANQ1l (ORCPT ); Tue, 14 Jan 2014 11:27:41 -0500 Received: from mail-ig0-f175.google.com ([209.85.213.175]:50999 "EHLO mail-ig0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751967AbaANQ1j (ORCPT ); Tue, 14 Jan 2014 11:27:39 -0500 Received: by mail-ig0-f175.google.com with SMTP id uq10so6159859igb.2 for ; Tue, 14 Jan 2014 08:27:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=TWlaBOyf71YnwtMcf2RNiAXF+W6cpGFV6vH2OdJm568=; b=NFGhJ7+/khOoLtzeDIRAoJxoi9Ud95G2mQwkaJg7iEUWmPbSUslNm+Q2HVvEZ2DYC1 EtQGxeS2CBXpBzas64nLpRdHC50YfxD3hbq3WM3h6HO+OGBhYCcsNUHFoda0tkSW/98b BjsineIK/K5VeRfpx+z/ZssC9kTZXLojnyX0jWiNwT/GatvMqX4tmKFMJVJLTA+bW/6G USbrGLJyROfNCO0MQ8aWm8p4usBCdbV2zdSZ7f1bM+HOonTUhcNTT8NSWVa7of2t8m8g MPhj+U+LZkUKk0K5v4ghqdAsbGCjqiovcRdzTY5vnHoUAU/xApUaWDxo3KThMNuZ4sSX fRdQ== X-Gm-Message-State: ALoCoQmKORaMS5tVuMMMNw/N3HuN2NCSTovB8rULiz04uKVdgKBfETgegbbyUgJpPgT8/R8t8RFW X-Received: by 10.50.61.101 with SMTP id o5mr3825999igr.31.1389716859353; Tue, 14 Jan 2014 08:27:39 -0800 (PST) Received: from korthio.gateway.2wire.net (99-82-247-89.lightspeed.livnmi.sbcglobal.net. [99.82.247.89]) by mx.google.com with ESMTPSA id f15sm1888335igd.3.2014.01.14.08.27.37 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 14 Jan 2014 08:27:38 -0800 (PST) From: Weston Andros Adamson To: bfields@fieldses.org Cc: linux-nfs@vger.kernel.org, Weston Andros Adamson Subject: [PATCH] nfs4.1: add basic SECINFO_NO_NAME support Date: Tue, 14 Jan 2014 11:27:30 -0500 Message-Id: <1389716850-1260-1-git-send-email-dros@primarydata.com> X-Mailer: git-send-email 1.8.3.4 (Apple Git-47) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP only returns AUTH_SYS for now Signed-off-by: Weston Andros Adamson --- nfs4.1/nfs4server.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nfs4.1/nfs4server.py b/nfs4.1/nfs4server.py index b279292..65fb9af 100755 --- a/nfs4.1/nfs4server.py +++ b/nfs4.1/nfs4server.py @@ -1161,6 +1161,13 @@ class NFS4Server(rpc.Server): env.set_cfh(self.root) return encode_status(NFS4_OK) + def op_secinfo_no_name(self, arg, env): + check_session(env) + # xxx add gss support + secinfo4_list = [ secinfo4(rpc.AUTH_SYS) ] + res = SECINFO_NO_NAME4res(NFS4_OK, secinfo4_list) + return encode_status(NFS4_OK, res) + # op_putpubfh SHOULD be the same as op_putrootfh # See draft23, section 18.20.3, line 25005 op_putpubfh = op_putrootfh