From 38b74b34d2d370030f0e1abf835cfefefeaa0de2 Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Wed, 4 Jan 2012 13:21:43 -0500 Subject: [PATCH] ukernel: enable nat ping again if we're not root, no nat ping at all. fix that. Change-Id: I7ea4db77b30ba639921b11c4ccad35a2e14133b4 Reviewed-on: http://gerrit.openafs.org/6509 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- src/afs/afs_conn.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/afs/afs_conn.c b/src/afs/afs_conn.c index fcb42609a..8d456a471 100644 --- a/src/afs/afs_conn.c +++ b/src/afs/afs_conn.c @@ -469,7 +469,11 @@ afs_ConnBySA(struct srvAddr *sap, unsigned short aport, afs_int32 acell, * Will need to be revisited if/when CB gets security. */ if ((isec == 0) && (service != 52) && !(tu->states & UTokensBad) && - (tu->viceId == UNDEFVID) && (tu->uid == 0)) + (tu->viceId == UNDEFVID) +#ifndef UKERNEL /* ukernel runs as just one uid anyway */ + && (tu->uid == 0) +#endif + ) rx_SetConnSecondsUntilNatPing(tc->id, 20); tc->forceConnectFS = 0; /* apparently we're appropriately connected now */ -- 2.39.5