Skip to contentSkip to conversation

nfs4.1: add basic SECINFO_NO_NAME support

PATCH Applied Weston Andros Adamson 2 participants 2 messages Jan 14, 2014 – Jan 22, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nfs4.1: add basic SECINFO_NO_NAME support

only returns AUTH_SYS for now

---
 nfs4.1/nfs4server.py | 7 +++++++
 1 file changed, 7 insertions(+)
nfs4.1/nfs4server.py +7 -0
index b279292..65fb9af 100755
@@ -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
Signature · 1 line
1.8.3.4 (Apple Git-47)
#1 lore raw
Quoted 1 line · Weston Andros Adamson

only returns AUTH_SYS for now

Thanks, applied.

--b.

Quoted 27 lines
---
 nfs4.1/nfs4server.py | 7 +++++++
 1 file changed, 7 insertions(+)
nfs4.1/nfs4server.py +7 -0
index b279292..65fb9af 100755
@@ -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
Signature · 1 line
1.8.3.4 (Apple Git-47)