Skip to contentSkip to conversation

gssd: Make TCP the default protocol for GSSD connections.

PATCH In review Chuck Lever 2 participants 2 messages Oct 28, 2015 – Nov 4, 2015

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

PATCH 1/1 gssd: Make TCP the default protocol for GSSD connections.

No failure case if gssd doesn't recognize the kernel's requested protocol. Caught with "protocol=rdma" upcall.

---
Just spit-balling.

 utils/gssd/gssd_proc.c |   11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)
utils/gssd/gssd_proc.c +2 -9
index 1d8e6a7..7569295 100644
@@ -890,16 +890,9 @@ create_auth_rpc_client(struct clnt_info *clp,
 	printerr(2, "creating %s client for server %s\n", clp->protocol,
 			clp->servername);
 
-	if ((strcmp(clp->protocol, "tcp")) == 0) {
-		protocol = IPPROTO_TCP;
-	} else if ((strcmp(clp->protocol, "udp")) == 0) {
+	protocol = IPPROTO_TCP;
+	if ((strcmp(clp->protocol, "udp")) == 0)
 		protocol = IPPROTO_UDP;
-	} else {
-		printerr(0, "WARNING: unrecognized protocol, '%s', requested "
-			 "for connection to server %s for user with uid %d\n",
-			 clp->protocol, clp->servername, uid);
-		goto out_fail;
-	}
 
 	switch (addr->sa_family) {
 	case AF_INET:
#1 lore raw
Quoted 4 lines · Chuck Lever

No failure case if gssd doesn't recognize the kernel's requested protocol. Caught with "protocol=rdma" upcall.

Committed...

steved.

Quoted 35 lines

---
Just spit-balling.

 utils/gssd/gssd_proc.c |   11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)
utils/gssd/gssd_proc.c +2 -10
index 1d8e6a7..7569295 100644
@@ -890,16 +890,9 @@ create_auth_rpc_client(struct clnt_info *clp,
 	printerr(2, "creating %s client for server %s\n", clp->protocol,
 			clp->servername);
 
-	if ((strcmp(clp->protocol, "tcp")) == 0) {
-		protocol = IPPROTO_TCP;
-	} else if ((strcmp(clp->protocol, "udp")) == 0) {
+	protocol = IPPROTO_TCP;
+	if ((strcmp(clp->protocol, "udp")) == 0)
 		protocol = IPPROTO_UDP;
-	} else {
-		printerr(0, "WARNING: unrecognized protocol, '%s', requested "
-			 "for connection to server %s for user with uid %d\n",
-			 clp->protocol, clp->servername, uid);
-		goto out_fail;
-	}
 
 	switch (addr->sa_family) {
 	case AF_INET:
 
--

To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html