projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
623753a
)
honor AT_SECURE aux vector flag
author
Rich Felker
<dalias@aerifal.cx>
Tue, 16 Aug 2011 11:46:42 +0000
(07:46 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Tue, 16 Aug 2011 11:46:42 +0000
(07:46 -0400)
src/ldso/dynlink.c
patch
|
blob
|
history
diff --git
a/src/ldso/dynlink.c
b/src/ldso/dynlink.c
index 3fafb181a728528afeda74711571714053828878..390f50baeddf9adc5b9dca8968ace0e2f22955af 100644
(file)
--- a/
src/ldso/dynlink.c
+++ b/
src/ldso/dynlink.c
@@
-60,7
+60,7
@@
static int runtime;
static jmp_buf rtld_fail;
static pthread_rwlock_t lock;
-#define AUX_CNT
15
+#define AUX_CNT
24
#define DYN_CNT 34
static void decode_vec(size_t *v, size_t *a, size_t cnt)
@@
-491,7
+491,7
@@
void *__dynlink(int argc, char **argv, size_t *got)
/* Only trust user/env if kernel says we're not suid/sgid */
if ((aux[0]&0x7800)!=0x7800 || aux[AT_UID]!=aux[AT_EUID]
- || aux[AT_GID]!=aux[AT_EGID]) {
+ || aux[AT_GID]!=aux[AT_EGID]
|| aux[AT_SECURE]
) {
env_path = 0;
env_preload = 0;
}