support for unbit syscall 357 and uidsec_struct

This commit is contained in:
roberto@localhost.localdomain
2009-11-23 09:48:15 +01:00
parent 36db616a73
commit 90a520160b
2 changed files with 14 additions and 0 deletions
+13
View File
@@ -584,6 +584,10 @@ int main(int argc, char *argv[], char *envp[]) {
struct rlimit rl ;
#endif
#ifdef UNBIT
struct uidsec_struct us;
#endif
int socket_type;
socklen_t socket_type_len;
@@ -1671,6 +1675,15 @@ clean:
goodbye_cruel_world();
}
#ifdef UNBIT
if (syscall(357,&us,0) > 0) {
if (us.memory_errors > 0) {
fprintf(stderr,"Unbit Kernel found a memory allocation error for process %d.\n", mypid);
goodbye_cruel_world();
}
}
#endif
}
if (manage_next_request == 0) {
+1
View File
@@ -31,6 +31,7 @@
#ifdef UNBIT
#undef _XOPEN_SOURCE
#include "unbit.h"
#endif
#ifdef _POSIX_C_SOURCE