Commit Graph

7 Commits (b849bbd02eabc0f948930e893bee2e0590a6e8b2)

Author SHA1 Message Date
Micah Snyder (micasnyd) 9e20cdf6ea Add CMake build tooling 5 years ago
Micah Snyder e2f59af30a Clang-format touchup 5 years ago
Mickey Sola 88ede3063f onas - fix warnings and remove unused variable 5 years ago
Micah Snyder 206dbaefe8 Update copyright dates for 2020 5 years ago
Mickey Sola 4fee702fc3 clamonacc - conform to clang-format 6 years ago
Mickey Sola 72c10bd1a5 clamonacc - fix distcheck, patch by Micah 6 years ago
Mickey Sola 78b1b1b4c6 clamonacc - rename/cleanup filenames, variables, and some logging to be more unified and explicit 6 years ago
Mickey Sola 95bfaf7e24 clamonacc - refactor signal handling and cleanup to clamonacc top level to ensure context is cleanup up on exit 6 years ago
Mickey Sola 4360a9915a clamonacc - move fanotify init to startup check function to ensure elevated permission checking is done before daemonization; fix potential segfault when pswd struct does not get allocated during exclusion check 6 years ago
Mickey Sola 7aa7646741 clamonacc - cleanup event loop exiting; use pthread cancel push and pop macros for exiting to avoid signal collision issues with thread pool; whitespace 6 years ago
Mickey Sola 7bc021ffa6 clamonacc - cleanup whitespace; normalize local includes for clamonacc; ensure FANOTIFY wrappings are done properly 6 years ago
Mickey Sola 52dc3149e2 clamonacc - add pthread conditional wait to event consumer queue; add uname exclusion; add error handling for selinux permission denied case when reading fanotify kernel event queue; remove deprecated clamuko references; update clamd.conf.sample; remove unsused options in help output; add daemonization/foreground command-line option; add retry and deny on error functionality 6 years ago
Mickey Sola 7d83fa292d clamonacc - fix fd leak when excluding file after self-check; cleanup signal handling and application exiting; fixup path for using unix fd passing with curl; normalize some log output; add suppression of noisy error cases when clamd lacks sufficient permissions to stat certain files" 6 years ago
Mickey Sola 7ad7211e1a clamonacc - cleanup; add additional logging; fix issue where consumer queue would fall behind and burn through allowed open fds; update copyrights; cleanup error handling; re-enable extra scanning 6 years ago
Mickey Sola 3941428bbb clamonacc - fix issue where pooled scanning threads were getting bad fds; add event loop level recovery when dealing with fds that aren't valid or have been closed previously 6 years ago
Mickey Sola 13447fcf9f clamonacc - fix issue where fanotify allow wasn't being written on exlcude 6 years ago
Mickey Sola 132dd49bf9 clamonacc - add maxthreads config option; fix issue where mutex wasn't being unlocked on empty case; fix issue where pathname wasn't being passed in; added some noisy logging 6 years ago
Mickey Sola b365aa5884 clamonacc - add consumer queue; add thread pool library; add thread pool support in consumer queue; flesh out consumer queue code; refactor scan functions into thread pool worker functions; refactor scan functions to work off slimmed down params and event metadata instead of a single, giant context; sundry fixups 6 years ago
Mickey Sola 0d78af13f1 clamonacc - add curl support for send receive and connecting to clam daemon; add new option for timeout when using curl; refactor all scanning into self-contained scanning thread; add non-blocking wait (via select) for receiving and sending data to and from clam daemon 6 years ago
Mickey Sola 3e5b1b8bbf clamonacc - add curl support 6 years ago
Mickey Sola 3733a8795e clamonacc - move and configure fts fix 6 years ago
Mickey Sola cf281f52df clamonacc - improve protocol error visibility; remove unneeded cruft in proto; consolidate use of globals; set fan_mask appropriately in context during fanotify setup; improve/fixup logging; rework proto for readability/maintability 6 years ago
Mickey Sola e5ae2ad9fa clamonacc - clean/fix up command line option arg passing; use only logg for printing 6 years ago
Mickey Sola 497b72eae8 clamonacc - cleanup/improve logging; pare down uneeded proto functions; add initialfunctionality for watch and exclude list command line options; use reentrant safe onas_scan function 6 years ago
Mickey Sola 20b9d67932 clamonacc - add more logging; handle errors better; use clamdopts where appropriate; fix event loop scan failures introduced with clam-client integration 6 years ago
Mickey Sola 7534d83ee0 clamonacc - make symbol passing via c/cpp flags explicit; fix include pathing for libclamav include headers; autojunk'd 6 years ago
Mickey Sola 953a43f33f clamonacc - fill out client scan hooks; proliferate onas context struct; refactor client, inotif, and fanotif code flow; delete unneeded functons; various other fixups 6 years ago
Mickey Sola b4a29cc7ff clamonacc - reorganize/restructure onaccess layout into component pieces for easier maintenance, future design reworks, and general conceptualization of code flow 6 years ago
Mickey Sola 1b264c0bf2 clamonacc - update autotools scripts to get clamd and onacc building; autojunk'd 6 years ago
Mickey Sola d9428376c2 clamonacc - initial clamonacc refactor 6 years ago
Micah Snyder 52cddcbcfd Updating and cleaning up copyright notices. 6 years ago
Micah Snyder 72fd33c8b2 clang-format'd using new .clang-format rules. 6 years ago
Micah Snyder (micasnyd) 3d9620db54 Disabled OnAccessExtraScanning and provided a warning when starting clamd if it's enabled as well as a note in the sample clamd.conf. 7 years ago
Micah Snyder d39cb6581f Updating libclamunrar from legacy C implementation to modern unrar 5.6.5. API changes and supporting changes included to pass the filepath of the scanned file into libclamav through the cli_ctx structure, required by the unrar library to open archives. The filename argument may be optional for the scandesc scanning variant, but libclamav will make a best effort to identify the filename from the file descriptor if it was not provided. In addition, included the ability to prefix temp file and directory names with file basenames. 7 years ago
Micah Snyder d7979d4ff7 Restructured scan options flags from a single bitflag field to a structure containing multiple bitflag fields. This also required adding a new function to the bytecode API to get scan options a la carte, and modifying the existing function to hand back scan options in the old/deprecated uint32_t bitflag format. Re-generated bytecode iface header files. 7 years ago
Micah Snyder e551468a03 Initializing virname to NULL in cases where it was uninitialized. 7 years ago
Mickey Sola 674a4aa545 0.100.x - bb11985 - onas whitespace normalization/fixup 7 years ago
Mickey Sola b71960cd37 0.100.x - bb11985 - overhauling onas extra scanning feature to work with new UID exclude fixes 7 years ago
Mickey Sola 51b69a091a 0.100.x - bb11985 - adding initial refactor for thread-safe scan function for onas 7 years ago
Mickey Sola 6412bda704 onas - changing sizelimit to unsigned int to allow for wider scan ranges 8 years ago
Mickey Sola d98d6fdbd1 bb11432 - resolving onaccess warnings 10 years ago
Steven Morgan bd6ce1e459 fix crash in clamd scan callback function. 10 years ago
Mickey Sola 67e36ea745 onas: adding throttling to notifications when handling fanotify errors on large files. 10 years ago
Mickey Sola 2b122eb2cd onas: improving handling of fanotify read errors for large files. 10 years ago
Mickey Sola 4e5ebc3eb4 cov: adding null check check for tharg in onas 10 years ago
Mickey Sola 400b477727 onas: changing onaccess scanning to scan and notify for files after close events 10 years ago
Mickey Sola e0056fe676 onas: adding checks when killing ddd thread. 10 years ago
Mickey Sola cf703fa100 onas: changing clamd NotifyOnly option to Prevention and disabling Prevention option by default. 10 years ago
Mickey Sola 46a35abe56 mass update of copyright headers 10 years ago
Mickey Sola f408e5b2ce fanotify: consolidating prevention options into a single NotifyOnly option. 10 years ago