Changeset 115 for trunk/include


Ignore:
Timestamp:
Aug 21, 2007, 10:22:59 PM (17 years ago)
Author:
rainer
Message:

Fix the problem that new suid/sgid file found by the file system check already will not be quarantined in the suid check (ticket #71).

Location:
trunk/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/samhain.h

    r114 r115  
    131131#define SH_FFLAG_CHECKED   (1<<3)
    132132#define SH_FFLAG_REPORTED  (1<<3)
     133#define SH_FFLAG_SUIDCHK   (1<<4)
    133134
    134135#define SH_FFLAG_ALLIGNORE_SET(a)   (((a) & SH_FFLAG_ALLIGNORE) != 0)
     
    147148#define SET_SH_FFLAG_REPORTED(a)    ((a) |= SH_FFLAG_REPORTED)
    148149#define CLEAR_SH_FFLAG_REPORTED(a)  ((a) &= ~SH_FFLAG_REPORTED)
     150
     151#define SH_FFLAG_SUIDCHK_SET(a)     (((a) & SH_FFLAG_SUIDCHK) != 0)
     152#define SET_SH_FFLAG_SUIDCHK(a)     ((a) |= SH_FFLAG_SUIDCHK)
     153#define CLEAR_SH_FFLAG_SUIDCHK(a)   ((a) &= ~SH_FFLAG_SUIDCHK)
    149154
    150155
  • trunk/include/sh_hash.h

    r22 r115  
    8484void sh_hash_pushdata_memory (file_type * theFile, char * fileHash);
    8585
     86/* Get file flags from in-memory database
     87 */
     88int sh_hash_getflags (char * filename);
     89
     90/* Set file flags in in-memory database
     91 */
     92int sh_hash_setflags (char * filename, int flags);
     93
     94/* Set a file flag in in-memory database
     95 */
     96void sh_hash_addflag  (char * filename, int flag);
     97
    8698/* Compare a file with its status in the database.
    8799 */
Note: See TracChangeset for help on using the changeset viewer.