Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:msmeissn:branches:security
aide
aide-xattr-in-libc.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File aide-xattr-in-libc.patch of Package aide
Index: aide-0.18.6/configure.ac =================================================================== --- aide-0.18.6.orig/configure.ac +++ aide-0.18.6/configure.ac @@ -59,7 +59,7 @@ dnl Do the right thing for glibc... AIDE_DEFS="-D_GNU_SOURCE" dnl This is borrowed from libtool - + if test $ac_cv_c_compiler_gnu = yes; then LD_STATIC_FLAG='-static' @@ -101,54 +101,54 @@ else # All AIX code is PIC. LD_STATIC_FLAG='-bnso -bI:/lib/syscalls.exp' ;; - + hpux9* | hpux10* | hpux11*) # Is there a better LD_STATIC_FLAG that works with the bundled CC? ## wl='-Wl,' LD_STATIC_FLAG="${wl}-a ${wl}archive" ## pic_flag='+Z' ;; - + irix5* | irix6*) ## wl='-Wl,' LD_STATIC_FLAG='-non_shared' # PIC (with -KPIC) is the default. ;; - + cygwin* | mingw* | os2*) # We can build DLLs from non-PIC. ;; - + osf3* | osf4* | osf5*) # All OSF/1 code is PIC. ## wl='-Wl,' LD_STATIC_FLAG='-non_shared' ;; - + sco3.2v5*) ## pic_flag='-Kpic' LD_STATIC_FLAG='-dn' ## special_shlib_compile_flags='-belf' ;; - + solaris*) ## pic_flag='-KPIC' LD_STATIC_FLAG='-Bstatic' ## wl='-Wl,' ;; - + sunos4*) ## pic_flag='-PIC' LD_STATIC_FLAG='-Bstatic' ## wl='-Qoption ld ' ;; - + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) ## pic_flag='-KPIC' LD_STATIC_FLAG='-Bstatic' ## wl='-Wl,' ;; - + uts4*) ## pic_flag='-pic' LD_STATIC_FLAG='-Bstatic' @@ -338,8 +338,6 @@ fi AIDE_PKG_CHECK(selinux, SELinux, no, SELINUX, libselinux, selinux) -AIDE_PKG_CHECK(xattr, xattr, no, XATTR, libattr, xattrs) - AIDE_PKG_CHECK(capabilities, POSIX 1003.1e capabilities, no, CAPABILITIES, libcap, caps) AIDE_PKG_CHECK(e2fsattrs, e2fsattrs, no, E2FSATTRS, e2p, e2fsattrs) Index: aide-0.18.6/include/db_config.h =================================================================== --- aide-0.18.6.orig/include/db_config.h +++ aide-0.18.6/include/db_config.h @@ -19,7 +19,7 @@ * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ - + #ifndef _DB_CONFIG_H_INCLUDED #define _DB_CONFIG_H_INCLUDED @@ -32,7 +32,6 @@ #ifdef WITH_ZLIB #include <zlib.h> #endif -#include "attributes.h" #include "hashsum.h" #include "db_line.h" #include "list.h" @@ -75,7 +74,7 @@ /* int (*close)(_db_config*); */ /* int db_size; */ /* DB_FIELD* db_order; */ -/* void* local; */ +/* void* local; */ /* }_db_config ; */ typedef struct database { @@ -111,14 +110,14 @@ typedef struct db_config { #ifdef WITH_ZLIB /* Is dbout gzipped or not */ int gzip_dbout; - + #endif DB_ATTR_TYPE db_out_attrs; char *check_path; RESTRICTION_TYPE check_file_type; - + char* config_file; char* config_version; bool config_check_warn_unrestricted_rules; @@ -160,7 +159,7 @@ typedef struct db_config { int symlinks_found; DB_ATTR_TYPE attr; -#ifdef WITH_ACL +#ifdef WITH_ACL int no_acl_on_symlinks; #endif int warn_dead_symlinks; Index: aide-0.18.6/src/do_md.c =================================================================== --- aide-0.18.6.orig/src/do_md.c +++ aide-0.18.6/src/do_md.c @@ -45,7 +45,6 @@ #ifdef WITH_XATTR #include <sys/xattr.h> -#include <attr/attributes.h> #ifndef ENOATTR # define ENOATTR ENODATA #endif @@ -327,7 +326,7 @@ md_hashsums calc_hashsums(char* fullpath } void fs2db_line(struct stat* fs,db_line* line) { - + line->inode=fs->st_ino; if(ATTR(attr_uid)&line->attr) { @@ -349,7 +348,7 @@ void fs2db_line(struct stat* fs,db_line* }else{ line->size=0; } - + if(ATTR(attr_linkcount)&line->attr){ line->nlink=fs->st_nlink; }else { @@ -367,7 +366,7 @@ void fs2db_line(struct stat* fs,db_line* }else{ line->ctime=0; } - + if(ATTR(attr_atime)&line->attr){ line->atime=fs->st_atime; }else{ @@ -379,13 +378,13 @@ void fs2db_line(struct stat* fs,db_line* } else { line->bcount=0; } - + } #ifdef WITH_ACL void acl2line(db_line* line) { acl_type *ret = NULL; - + #ifdef WITH_POSIX_ACL if(ATTR(attr_acl)&line->attr) { acl_t acl_a = NULL; @@ -438,7 +437,7 @@ void acl2line(db_line* line) { acl_free(acl_d); } line->acl = ret; -#endif +#endif } #endif @@ -600,4 +599,3 @@ void capabilities2line(db_line* line) { void no_hash(db_line* line) { line->attr&=~get_hashes(true); } -
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor