Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F112056421
D19153.id53814.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
917 B
Referenced Files
None
Subscribers
None
D19153.id53814.diff
View Options
Index: sys/kgssapi/gss_acquire_cred.c
===================================================================
--- sys/kgssapi/gss_acquire_cred.c
+++ sys/kgssapi/gss_acquire_cred.c
@@ -66,6 +66,14 @@
if (cl == NULL)
return (GSS_S_FAILURE);
+ /*
+ * The number of retries defaults to INT_MAX, which effectively
+ * means an infinite, uninterruptable loop. Limiting it to five
+ * retries keeps it from running forever.
+ */
+ i = 5;
+ CLNT_CONTROL(cl, CLSET_RETRIES, &i);
+
args.uid = curthread->td_ucred->cr_uid;
if (desired_name)
args.desired_name = desired_name->handle;
Index: usr.sbin/gssd/gssd.c
===================================================================
--- usr.sbin/gssd/gssd.c
+++ usr.sbin/gssd/gssd.c
@@ -202,6 +202,7 @@
signal(SIGHUP, SIG_IGN);
}
signal(SIGTERM, gssd_terminate);
+ signal(SIGPIPE, gssd_terminate);
memset(&sun, 0, sizeof sun);
sun.sun_family = AF_LOCAL;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 13, 5:05 AM (16 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17130252
Default Alt Text
D19153.id53814.diff (917 B)
Attached To
Mode
D19153: Handle SIGPIPE in gssd, and limit kgssapi RPC retries
Attached
Detach File
Event Timeline
Log In to Comment