Debian Patches
Status for fspy/0.1.1-6
| Patch | Description | Author | Forwarded | Bugs | Origin | Last update |
|---|---|---|---|---|---|---|
| 01_fix_makefile.patch | Some trivial fixes in Makefile | no | ||||
| 02_reproducible_build.patch | This patch makes the build reproducible | Chris Lamb <lamby@debian.org> | no | debian | 2017-08-01 | |
| 03_fix_makefile_cppflags.patch | fix Makefile added CPPFLAGS.=================================================================== | Francisco Vilmar Cardoso Ruviaro <francisco.ruviaro@riseup.net> | no | 2020-05-19 | ||
| 04_fix_compiler_warnings.patch | Fix compiler warnings for uninitialized variables This patch fixes several compiler warnings that appear with modern GCC versions: - Fixes duplicate assignment of dprint.G in diff.c and fspy.c - Fixes uninitialized variable warning in adaptive.c (adaptive_delete) - Fixes uninitialized variable warning in enumdirs.c (recwrap) - Fixes uninitialized pointer warnings in diff.c, output.c, and stating.c (freeme) - Fixes format specifier warnings for sizeof() in debug prints (%i -> %li) - Fixes type mismatch for max_element_count (unsigned int -> int) - Fixes type mismatch for inotify watch descriptors (int vs unsigned int) - Adds proper function prototypes to enumdirs.h diff --git a/src/adaptive.c b/src/adaptive.c index 3a467f8..374ef14 100644 |
Bean Huo <beanhuo@micron.com> | no | 2025-11-11 | ||
| 05_reformat_to_linux_style.patch | Reformat source code to Linux kernel coding style Reformat all C source and header files using astyle with Linux kernel coding style settings: - Linux style brace placement (K&R style) - Tab indentation (8 spaces) - Maximum line length of 80 characters . This improves code readability and consistency with Linux kernel coding conventions. No functional changes. |
Bean Huo <beanhuo@micron.com> | no | 2025-11-12 | ||
| 06_update_version_output.patch | Update version output to show Debian package and maintainer info Enhances the --version output to display: - License information (GPL v2+) - Better formatted output with clearer labels . This provides users with complete version and maintenance information when running fspy --version. diff --git a/src/fspy.c b/src/fspy.c index 94fed4e..fb32517 100644 |
Bean Huo <beanhuo@micron.com> | no | 2025-11-12 | ||
| 07_fix_read_warning.patch | Fix read() return value warning in enumdirs.c Detailed description of the changes made. . This patch implements the following: - (Add details here as needed) diff --git a/src/enumdirs.c b/src/enumdirs.c index a8a7b9c..7046bd0 100644 |
Bean Huo <beanhuo@micron.com> | no | 2025-11-12 | ||
| 08_improve_readme.patch | Improve README documentation Enhance the README with better structure, clearer examples, and more comprehensive usage instructions. Add detailed explanations of monitoring options, filtering, and output formatting. |
Bean Huo <beanhuo@micron.com> | no | 2025-11-16 | ||
| 09_add_fanotify_support.patch | Add fanotify support for process tracking Add fanotify-based process tracking feature that integrates seamlessly with existing fspy options. When users specify -P/--show-process flag, fspy now uses the fanotify API to monitor filesystem events and identify which process (PID, UID, command name) is accessing files. . Key changes: - Add new fanotify implementation (fanotify_events.c/h) that shares filtering and output logic with inotify code path - Modify fanotify_monitor() to accept all command-line options (output format, filter, inverted filter, type filter, diff) instead of relying solely on environment variables - Implement regex filtering using shared reg_match() and ireg_match() functions - Implement type filtering using shared checktype() function - Implement custom output formatting using shared print_data() function - Update README with comprehensive documentation on inotify vs fanotify modes, kernel requirements (fanotify introduced in 2.6.36, stable in 2.6.37), and usage examples - Add process information output fields (,w, for PID, ,U, for UID) to output.c . Both monitoring modes now support consistent option handling: -O/--output: Custom output formatting (works with both modes) -F/--filter: Regex pattern filtering (works with both modes) -I/--inverted: Inverted regex filtering (works with both modes) -T/--type: File type filtering (works with both modes) -D/--diff: Metadata difference tracking (works with both modes) -R/--recursive: Only applicable to inotify (fanotify monitors entire mount) . This allows users to combine process tracking with all existing filtering and output options, enabling powerful security auditing capabilities: sudo fspy -P -O 'f, - ,d, (PID:,w,)' -F '\.conf$' -T f /etc . The implementation maintains backwards compatibility with FSPY_OUTPUT environment variable while preferring command-line options. diff --git a/Makefile b/Makefile index b1b7fec..e07058a 100644 |
Bean Huo <beanhuo@iokpp.de> | no | vendor | 2025-11-23 |
