public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Weston Andros Adamson <dros@primarydata.com>
To: bfields@fieldses.org
Cc: linux-nfs@vger.kernel.org, Weston Andros Adamson <dros@primarydata.com>
Subject: [PATCH] nfs4.1: add basic SECINFO_NO_NAME support
Date: Tue, 14 Jan 2014 11:27:30 -0500	[thread overview]
Message-ID: <1389716850-1260-1-git-send-email-dros@primarydata.com> (raw)

only returns AUTH_SYS for now

Signed-off-by: Weston Andros Adamson <dros@primarydata.com>
---
 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
-- 
1.8.3.4 (Apple Git-47)


             reply	other threads:[~2014-01-14 16:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-14 16:27 Weston Andros Adamson [this message]
2014-01-22 18:29 ` [PATCH] nfs4.1: add basic SECINFO_NO_NAME support J. Bruce Fields

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1389716850-1260-1-git-send-email-dros@primarydata.com \
    --to=dros@primarydata.com \
    --cc=bfields@fieldses.org \
    --cc=linux-nfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox