- Timestamp:
- Feb 18, 2007, 5:23:32 PM (18 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/docs/Changelog
r89 r92 1 1 2.3.2: 2 * move file descriptor closing more towards program startup 3 * fix samhain_hide module (in-)compatibility with recent kernels 2 4 * fix regression in full stealth mode (incorrect comparison of 3 5 bytes read vs. maximum capacity), reported by B. Fleming -
trunk/include/kern_head.h
r9 r92 780 780 "_sys___semctl", /* 295 */ 781 781 "_sys_shmctl", /* 296 */ 782 "_sys_msgctl", /* 297 */ 782 "_sys_msgctl", /* 297 */ 783 "_sys_sched_yield", /* 298 */ 784 "_sys_getthrid", /* 299 */ 785 "_sys_thrsleep", /* 300 */ 786 "_sys_thrwakeup", /* 301 */ 787 "_sys_threxit", /* 302 */ 788 "_sys_thrsigdivert", /* 303 */ 789 "_sys___getcwd", /* 304 */ 783 790 NULL 784 791 }; -
trunk/src/kern_head.c
r51 r92 726 726 if (utbuf.release[0] == '3') 727 727 which = 38; 728 else if (utbuf.release[0] == '4') 729 which = 40; 728 730 #else 729 731 if (utbuf.release[0] == '4') … … 791 793 printf("\n/* Kernel %s, machine %s -- use table %s */\n\n", 792 794 utbuf.release, utbuf.machine, "callz_fbsd5"); 793 else if (which == 38 )795 else if (which == 38 || which == 40) 794 796 printf("\n/* Kernel %s, machine %s -- use table %s */\n\n", 795 797 utbuf.release, utbuf.machine, "callz_obsd"); … … 817 819 } 818 820 } 819 else if (which == 38 ) {821 else if (which == 38 || which == 40) { 820 822 while ((callz_obsd[i] != NULL) && (i < SYS_MAXSYSCALL)) 821 823 { -
trunk/src/samhain.c
r86 r92 914 914 default: 915 915 times = 0; 916 while (times < 120) {916 while (times < 300) { 917 917 respid = waitpid(pid, &status, WNOHANG|WUNTRACED); 918 918 if ((pid_t)-1 == respid) … … 1122 1122 SL_ENTER(_("main")); 1123 1123 1124 /* --- Close all but first three file descriptors. --- 1125 */ 1126 sh_unix_closeall(3, -1); /* at program start */ 1127 1128 1124 1129 if (argc >= 2 && 0 != getuid() && 1125 1130 (0 == strcmp(argv[1], _("start")) || … … 1311 1316 sh.flag.opts = S_FALSE; 1312 1317 1313 1314 /* close all other files1315 */1316 sh_unix_closeall(3, -1); /* after processing CL options; only stderr here */1317 1318 1318 1319 1319 /* --- Get user info. --- -
trunk/src/sh_unix.c
r89 r92 1849 1849 if (goDaemon == 1) 1850 1850 { 1851 /* close allfile descriptors1851 /* Close first tree file descriptors 1852 1852 */ 1853 sh_unix_closeall (0, -1); /* if running as daemon */ 1853 close (0); /* if running as daemon */ 1854 close (1); /* if running as daemon */ 1855 close (2); /* if running as daemon */ 1854 1856 1855 1857 /* Enable full error logging … … 1913 1915 else 1914 1916 { 1915 sh_unix_closeall(3, -1); /* if not daemon */1916 1917 sh_error_enable_unsafe (S_TRUE); 1917 1918 #if defined(HAVE_LIBPRELUDE)
Note:
See TracChangeset
for help on using the changeset viewer.