Changeset 102
- Timestamp:
- Apr 26, 2007, 9:59:55 PM (18 years ago)
- Location:
- trunk
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure.ac
r101 r102 1851 1851 if test "x${withval}" != "xno"; then 1852 1852 AC_DEFINE(SH_USE_KERN) 1853 1854 kernel_numeric=`uname -r | sed 's%-%.%g' | sed 's%_%.%g' | awk -F. '{ print $1*65536+$2*256+$3 }'` 1855 AC_DEFINE_UNQUOTED(SH_KERNEL_NUMBER, ${kernel_numeric}, [Kernel number]) 1856 1853 1857 kernelversion=`uname -r` 1854 1858 AC_DEFINE_UNQUOTED(SH_KERNEL_VERSION, _("${kernelversion}"), [Define the kernel version]) -
trunk/docs/Changelog
r101 r102 1 1 2.3.4: 2 * fixed compilation of kern_head (problem reported by S. Clormann) 2 * sh_kern.c: for 2.6.21+ don't check proc_root_lookup (not possible 3 anymore? proc_root_inode.lookup != proc_root_lookup) 4 * sh_extern.c: flush streams before forking (problem if [Prelink] 5 used together with prelude logging, reported by M. deJong) 6 * fixed compilation of kern_head (regression cause by cross-compiling 7 fix; problem reported by S. Clormann) 3 8 * more typos fixed (reported by John Horne) 4 9 -
trunk/include/sh_prelink.h
r22 r102 10 10 /* return S_TRUE if ELF file, S_FALSE otherwise 11 11 */ 12 int sh_prelink_iself (SL_TICKET fd, off_t size, int alert_timeout );12 int sh_prelink_iself (SL_TICKET fd, off_t size, int alert_timeout, char * path); 13 13 14 14 /* configuration -
trunk/src/sh_entropy.c
r78 r102 607 607 } 608 608 609 fflush (NULL); 610 609 611 source->pid = aud_fork(FIL__, __LINE__); 610 612 -
trunk/src/sh_extern.c
r96 r102 126 126 int pfd = -1; 127 127 #endif 128 128 129 129 SL_ENTER(_("sh_ext_popen")); 130 130 … … 218 218 219 219 PDBG(3); 220 220 221 221 /* 222 * -- F ork222 * -- Flush streams and fork 223 223 */ 224 fflush (NULL); 225 224 226 task->pid = aud_fork(FIL__, __LINE__); 225 227 -
trunk/src/sh_gpg.c
r87 r102 426 426 SL_RETURN( (NULL), _("sh_gpg_popen")); 427 427 } 428 429 fflush (NULL); 428 430 429 431 source->pid = aud_fork(FIL__, __LINE__); -
trunk/src/sh_kern.c
r93 r102 987 987 static void check_proc_root (struct sh_kernel_info * kinfo) 988 988 { 989 struct proc_dir_entry proc_root_dir; 990 991 /* 2.6.21 (((2) << 16) + ((6) << 8) + (21)) */ 992 #if SH_KERNEL_NUMBER < 132629 989 993 struct inode_operations proc_root_inode; 990 struct proc_dir_entry proc_root_dir;991 994 992 995 memcpy (&proc_root_inode, &(kinfo->proc_root_inode), sizeof(struct inode_operations)); 993 memcpy (&proc_root_dir, &(kinfo->proc_root_dir), sizeof(struct proc_dir_entry)); 994 996 997 /* Seems that the info does not relate anymore to proc_root_lookup(?) 998 */ 995 999 if ( (unsigned int) *proc_root_inode.lookup != proc_root_lookup) 996 1000 { … … 998 1002 _("proc_root_inode_operations.lookup != proc_root_lookup")); 999 1003 } 1000 else if ( (((unsigned int) * &proc_root_dir.proc_iops) != proc_root_iops) 1004 #endif 1005 1006 memcpy (&proc_root_dir, &(kinfo->proc_root_dir), sizeof(struct proc_dir_entry)); 1007 if ( (((unsigned int) * &proc_root_dir.proc_iops) != proc_root_iops) 1001 1008 && (proc_root_dir.size != proc_root_iops) 1002 1009 && (((unsigned int) * &proc_root_dir.proc_fops) != proc_root_iops) … … 1006 1013 _("proc_root.proc_iops != proc_root_inode_operations")); 1007 1014 } 1015 1008 1016 return; 1009 1017 } -
trunk/src/sh_prelink.c
r101 r102 71 71 } 72 72 73 int sh_prelink_iself (SL_TICKET fd, off_t size, int alert_timeout) 74 { 75 long status; 76 char magic[4]; 73 int sh_prelink_iself (SL_TICKET fd, off_t size, int alert_timeout, char * path) 74 { 75 long status; 76 char magic[4]; 77 char * tmp; 77 78 78 79 /* 42 bytes is about the minimum an ELF binary might have … … 95 96 /*@+usedef@*/ 96 97 } 98 else 99 { 100 tmp = sh_util_safe_name (path); 101 sh_error_handle(SH_ERR_ERR, FIL__, __LINE__, status, MSG_E_SUBGPATH, 102 _("Error reading file"), _("sh_prelink_iself"), tmp); 103 SH_FREE(path); 104 } 97 105 return S_FALSE; 98 106 } -
trunk/src/sh_processcheck.c
r82 r102 786 786 } 787 787 788 extern int flag_err_debug; 789 788 790 static int sh_processes_readps (FILE * in, short * res, 789 791 char * str, size_t len, … … 844 846 { 845 847 tstr[pos-1] = '\0'; 848 if (flag_err_debug == SL_TRUE) 849 { 850 sh_error_handle(SH_ERR_ALL, FIL__, __LINE__, num, MSG_E_SUBGEN, 851 tstr, 852 _("sh_processes_readps")); 853 } 846 854 /* fprintf(stderr, "<%ld> %s\n", num, tstr); */ 847 855 line = SKIP_WS; pos = 0; … … 1039 1047 if ((res[j] & SH_PR_ANY) || (res[j] & SH_PR_PS_ANY)) 1040 1048 { 1049 /* list all tests where the pid was found 1050 */ 1041 1051 sh_processes_tlist (tests, sizeof(tests), res[j]); 1052 1042 1053 /* 1043 1054 * case 1: in ps and found -
trunk/src/sh_tiger0.c
r93 r102 361 361 else 362 362 tiger_fd = (-1); 363 364 363 365 364 SL_RETURN( res, _("sh_tiger_hash_val")); -
trunk/src/sh_unix.c
r98 r102 3211 3211 else if ((theFile->check_mask & MODI_PREL) != 0 && 3212 3212 S_TRUE == sh_prelink_iself(rval_open, fbuf.st_size, 3213 alert_timeout ))3213 alert_timeout, theFile->fullpath)) 3214 3214 { 3215 3215 if (0 != sh_prelink_run (theFile->fullpath, … … 3251 3251 else if (policy == SH_LEVEL_PRELINK && 3252 3252 S_TRUE == sh_prelink_iself(rval_open, fbuf.st_size, 3253 alert_timeout ))3253 alert_timeout, theFile->fullpath)) 3254 3254 { 3255 3255 if (0 != sh_prelink_run (theFile->fullpath,
Note:
See TracChangeset
for help on using the changeset viewer.