Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F165098774
D17557.id49142.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
774 B
Referenced Files
None
Subscribers
None
D17557.id49142.diff
View Options
Index: lib/libc/net/nsdispatch.c
===================================================================
--- lib/libc/net/nsdispatch.c
+++ lib/libc/net/nsdispatch.c
@@ -486,9 +486,19 @@
*/
mod.handle = nss_builtin_handle;
fn = reg_fn;
- } else if (!is_dynamic())
+ } else if (!is_dynamic()) {
goto fin;
- else {
+ } else if (strcmp(source, "cache") == 0 ||
+ strcmp(source, "compat") == 0 ||
+ strcmp(source, "dns") == 0 ||
+ strcmp(source, "files") == 0 ||
+ strcmp(source, "db") == 0 ||
+ strcmp(source, "nis") == 0) {
+ /*
+ * Avoid calling dlopen(3) for built-in modules.
+ */
+ goto fin;
+ } else {
if (snprintf(buf, sizeof(buf), "nss_%s.so.%d", mod.name,
NSS_MODULE_INTERFACE_VERSION) >= (int)sizeof(buf))
goto fin;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Aug 7, 12:53 AM (12 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36140698
Default Alt Text
D17557.id49142.diff (774 B)
Attached To
Mode
D17557: Don't try to dlopen() built-in NSS types
Attached
Detach File
Event Timeline
Log In to Comment