summaryrefslogtreecommitdiff
path: root/src/audit.c
AgeCommit message (Collapse)AuthorFilesLines
2009-08-05io: flag for following symlinks on fstatTimo Teras1-2/+2
usually we are interested on the actual file's length. but audit is interested about the link. so add a flag for this and use it in audit.
2009-07-31audit: sanitize --systemTimo Teras1-32/+79
make the system audit compare only installed files, instead of scanning the whole file system. also make it print only package names with -q, so reinstalling modified packages becomes easy.
2009-07-31apk: use *at instead of chdir+normal file syscallTimo Teras1-3/+4
this way we never change cwd, and relative filenames are always parsed consistently. this also helps filename construction in many places. this patch also changes '--root' to override location of all configuration to be in the new root. previously it depended on the file which one was used.
2009-07-30db: fix checksum storing to dbTimo Teras1-4/+3
also take precautions in audit code if the db is missing the checksum.
2009-07-30audit: protection mask for "symlinks only"Timo Teras1-0/+5
and use it for /etc/init.d by default. fixes #99.
2009-07-22audit: add --system optionTimo Teras1-15/+21
to check system files for changes.
2009-07-14db: live with sha1 and md5Timo Teras1-3/+5
this also convers scripts file to a tar archive.
2009-07-14db: speed up fdb creationTimo Teras1-4/+3
avoid recalculating hashes, and store the lengths of names, so we can optimize some operations.
2009-07-13io: move csumming away from bstream to gunzipTimo Teras1-13/+5
in future we want to checksum on gzip boundary basis, not the full file.
2009-06-25help: auto construct helpTimo Teras1-4/+6
And add some more verbosity to the help message.
2009-05-06change apk audit letters to correspond to old sfic/lbu lettersNatanael Copa1-2/+2
A = "added" U = "updated"
2009-01-17db: database locking and creation to part of opening itTimo Teras1-1/+1
Add flags field to db open call. Also make error reporting quite a bit more detailed.
2009-01-16info: only show package desc when --verboseNatanael Copa1-1/+1
also introduce apk_verbosity. --quiet reduce verbosity and --verbose increases it. Default verbosity is 1.
2009-01-14audit: new command to check changed filesTimo Teras1-0/+146
Currently only implement --backup to get list of (config) files in protected directories to backup. This also fixes a database corruption bug in database.c.