Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 228665 Details for
Bug 292050
sys-apps/sandbox-2.2: dev-libs/nss fails to install on hardened systems
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for canonicalize() in libsandbox.c
sandbox-2.2_bug292050_alt2.patch (text/plain), 954 bytes, created by
Fredric Johansson
on 2010-04-21 21:01:18 UTC
(
hide
)
Description:
patch for canonicalize() in libsandbox.c
Filename:
MIME Type:
Creator:
Fredric Johansson
Created:
2010-04-21 21:01:18 UTC
Size:
954 bytes
patch
obsolete
>diff -rau sandbox-2.2_old/libsandbox/libsandbox.c sandbox-2.2/libsandbox/libsandbox.c >--- sandbox-2.2_old/libsandbox/libsandbox.c 2010-04-20 18:50:56.202474502 +0200 >+++ sandbox-2.2/libsandbox/libsandbox.c 2010-04-20 18:57:39.114099951 +0200 >@@ -170,7 +170,10 @@ > return -1; > size_t len = strlen(resolved_path); > snprintf(resolved_path + len, SB_PATH_MAX - len, "/%s", path); >- if (NULL == erealpath(resolved_path, resolved_path)) { >+ char *resolved_path_copy = xmalloc(SB_PATH_MAX); >+ strcpy(resolved_path_copy, resolved_path); >+ if (NULL == erealpath(resolved_path_copy, resolved_path)) { >+// if (NULL == erealpath(resolved_path, resolved_path)) { > if (errno_is_too_long()) { > /* The resolved path is too long for the buffer to hold */ > return -1; >@@ -180,6 +183,7 @@ > return -1; > } > } >+ free(resolved_path_copy) > > } else if ((NULL == retval) && (path[0] == '/')) { > /* Whatever it resolved, is not a valid path */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 292050
:
209505
|
228663
|
228665
|
228781
|
253007
|
253009