Skip to contentSkip to conversation

NFS4.0: Cases for SGID/SUID status after writing

PATCH New Kinglong Mee 1 participant 1 message May 17, 2014

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

PATCH v2 2/3 NFS4.0: Cases for SGID/SUID status after writing

Adds Environment.c3.

---
 nfs4.0/servertests/environment.py |  4 ++
 nfs4.0/servertests/st_write.py    | 84 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 88 insertions(+)
nfs4.0/servertests/environment.py +4 -0
index 993320d..4b6e725 100644
@@ -104,12 +104,16 @@ class Environment(testmod.Environment):
         sec1, sec2 = self._get_security(opts)
 #        authsys1 = rpc.SecAuthSys(0, opts.machinename, opts.uid, opts.gid, [])
         authsys2 = rpc.SecAuthSys(0, opts.machinename, opts.uid+1, opts.gid+1, [])
+        authsys3 = rpc.SecAuthSys(0, opts.machinename, opts.uid+2, opts.gid+2, [])
         self.c1 = NFS4Client('client1_pid%i' % os.getpid(),
                              opts.server, opts.port, opts.path,
                              sec_list=[sec1], opts=opts)
         self.c2 = NFS4Client('client2_pid%i' % os.getpid(),
                              opts.server, opts.port, opts.path,
                              sec_list=[authsys2], opts=opts)
+        self.c3 = NFS4Client('client3_pid%i' % os.getpid(),
+                             opts.server, opts.port, opts.path,
+                             sec_list=[authsys3], opts=opts)
         self.longname = "a"*512
         self.uid = 0
         self.gid = 0
nfs4.0/servertests/st_write.py +84 -0

87 lines not on this page · raw message

Signature · 1 line
1.9.0