projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
security hardening: ensure suid programs have valid stdin/out/err
[musl]
/
src
/
internal
/
libc.h
diff --git
a/src/internal/libc.h
b/src/internal/libc.h
index
929ff97
..
d985902
100644
(file)
--- a/
src/internal/libc.h
+++ b/
src/internal/libc.h
@@
-5,18
+5,17
@@
#include <stdio.h>
struct __libc {
#include <stdio.h>
struct __libc {
- int *(*errno_location)(void);
- void (*testcancel)(void);
+ void *main_thread;
int threaded;
int threaded;
- int
canceldisabl
e;
-
void (*fork_handler)(int)
;
+ int
secur
e;
+
size_t *auxv
;
int (*atexit)(void (*)(void));
void (*fini)(void);
void (*ldso_fini)(void);
volatile int threads_minus_1;
int (*atexit)(void (*)(void));
void (*fini)(void);
void (*ldso_fini)(void);
volatile int threads_minus_1;
- int
ofl_lock
;
+ int
canceldisable
;
FILE *ofl_head;
FILE *ofl_head;
-
void *main_thread
;
+
int ofl_lock
;
};
};
@@
-44,6
+43,7
@@
void __unlockfile(FILE *);
#define UNLOCK(x) (*(volatile int *)(x)=0)
void __synccall(void (*)(void *), void *);
#define UNLOCK(x) (*(volatile int *)(x)=0)
void __synccall(void (*)(void *), void *);
+void __synccall_wait(void);
int __setxid(int, int, int, int);
extern char **__environ;
int __setxid(int, int, int, int);
extern char **__environ;