Commit Graph

117 Commits

Author SHA1 Message Date
liurunrun ab0ab76781 fixed blacklist on loongarch in makefile
Signed-off-by: liurunrun <liurunrun@uniontech.com>
2025-10-16 10:21:51 +08:00
liurunrun aebc89d60b add index.html to build github pages for this project
Signed-off-by: liurunrun <liurunrun@uniontech.com>
2025-10-15 17:16:14 +08:00
liurunrun 9f7a82ca9c feat(lsock): improve bit switch setting logic in parse_args
Add automatic bit switch handling to support both IPv4/IPv6 and TCP/UDP protocols:

1. When no IP version switch is specified, enable both IPv4 and IPv6 by default
2. When IP version is specified but no protocol switch, enable both TCP and UDP
3. Prevent conflicting IP version switches when IP address is provided

This change makes the command line arguments more user-friendly while maintaining
protocol compatibility.

Signed-off-by: liurunrun <liurunrun@uniontech.com>
2025-10-15 16:22:11 +08:00
liurunrun 2ab2372487 remove -psock option from demo
Signed-off-by: liurunrun <liurunrun@uniontech.com>
2025-10-15 16:22:11 +08:00
liurunrun 436b4dcc20 fixed arg phase logic in lsock
Signed-off-by: liurunrun <liurunrun@uniontech.com>
2025-10-15 15:41:15 +08:00
liurunrun 92346f3339 fixed bugs in debian package generating
Signed-off-by: liurunrun <liurunrun@uniontech.com>
2025-10-15 15:40:07 +08:00
liurunrun af55a3ed0d updated license info
Signed-off-by: liurunrun <liurunrun@uniontech.com>
2025-10-15 13:42:08 +08:00
liurunrun 9145818a81 optimized code logic in spinlock_ob
Signed-off-by: liurunrun <liurunrun@uniontech.com>
2025-10-15 13:42:08 +08:00
liurunrun 60af539148 fixed frtp compile error
Signed-off-by: liurunrun <liurunrun@uniontech.com>
2025-10-14 10:30:54 +08:00
liurunrun bfb67b03d9 feat(license): make project REUSE-compliant with LGPL-2.1-only
- Add SPDX-License-Identifier headers to all source files
- Include full license texts in LICENSES/ directory:
  - CC0-1.0.txt
  - LGPL-2.1-only.txt
- Create root LICENSE file explaining mixed licensing scheme
- Ensure all files declare correct license via SPDX tags

Project now passes `reuse lint` and complies with REUSE Specification v3.3.

Signed-off-by: liurunrun <liurunrun@uniontech.com>
2025-10-14 10:30:54 +08:00
liurunrun 24b77f47fb fixed makefile under test
Signed-off-by: liurunrun <liurunrun@uniontech.com>
2025-10-13 13:50:11 +08:00
liurunrun ade9913a3a reworte frtp-test and fixed bugs in makefiles
Implemented several mock functions that behave more like libbpf, rewrote the
frtp test case accordingly, and fixed the problems in makefiles caused by the
previous changes.

Temporarily disabled some test cases that caused problems.

Signed-off-by: liurunrun <liurunrun@uniontech.com>
2025-10-13 13:50:11 +08:00
liurunrun aa543a3a18 enhanced frtp audit log output
frtp now prints full path of the target file instead of a (devno,ino) pair.

Signed-off-by: liurunrun <liurunrun@uniontech.com>
2025-10-13 13:50:11 +08:00
liurunrun 603702c46c modified policy files and included them in deb package
Signed-off-by: liurunrun <liurunrun@uniontech.com>
2025-10-13 13:50:11 +08:00
xulang 95d132d12c fix packing script 2025-09-22 16:18:00 +08:00
xulang 887e9757f2 reorganize header files 2025-09-22 11:54:16 +08:00
xulang 579faae90a remove common header files 2025-09-22 11:24:45 +08:00
xulang 00eae19c3e fix gtest problems 2025-09-19 16:43:01 +08:00
xulang 73523d25cb fix Makefile for demo and so with a releasing build 2025-09-19 13:34:21 +08:00
liurunrun 49af5d2b7c fixed bugs in makefiles
Signed-off-by: liurunrun <liurunrun@uniontech.com>
2025-09-18 16:17:49 +08:00
xulang fc325d7426 fix Makefile and packing script 2025-09-18 10:36:45 +08:00
xulang ac23b99dff fix submodule reference 2025-09-17 18:10:45 +08:00
xulang da457338db update README and Makefile 2025-09-17 17:53:29 +08:00
xulang 5a0bf5ebd7 bpf progs now are moved to a independent repository
https://github.com/DKapture/dkapture-bpf

update README
2025-09-17 17:18:56 +08:00
xulang 4389f69cdf remove kmodule
1. we don't ever use kernel modules
2. we implement those features by bpf in future
2025-09-17 16:55:07 +08:00
liurunrun 52533e4c32 removed build verify from build-deb.sh
Signed-off-by: liurunrun <liurunrun@uniontech.com>
2025-09-17 16:54:18 +08:00
liurunrun 7cdcf15cc8 updated build-deb.sh to specify version automatically
Signed-off-by: liurunrun <liurunrun@uniontech.com>
2025-09-17 16:54:18 +08:00
liurunrun 9ff8a70b40 disabled some filter tools on loongarch
Disabled rm-forbid and  signal-filter on loongarch due to lack of
support for necessary LSM hooks.

Signed-off-by: liurunrun <liurunrun@uniontech.com>
2025-09-17 14:31:06 +08:00
liurunrun fdd9121988 lsof now print all info while file is not specified
Signed-off-by: liurunrun <liurunrun@uniontech.com>
2025-09-17 14:30:51 +08:00
liurunrun 7e632c9dd7 fixed bugs in lscgroup on loongarch
Signed-off-by: liurunrun <liurunrun@uniontech.com>
2025-09-17 14:30:04 +08:00
liurunrun 1e17ce6b7d fixed bugs in btrfs-snoop
Signed-off-by: liurunrun <liurunrun@uniontech.com>
2025-09-17 14:29:27 +08:00
liurunrun ac301c2f96 fixed stack_map definition in pagefault.bpf.c
Signed-off-by: liurunrun <liurunrun@uniontech.com>
2025-09-17 14:28:51 +08:00
liurunrun ebede05fca disabled pagefault observe tool on loongarch due to non-existence ksym
Signed-off-by: liurunrun <liurunrun@uniontech.com>
2025-09-17 14:26:52 +08:00
liurunrun b7f33c78f9 disabled spinlock_ob on loongarch due to non-existence ksym
Signed-off-by: liurunrun <liurunrun@uniontech.com>
2025-09-17 14:26:52 +08:00
liurunrun b803d5c47a fixed trace-signal to support loongarch
Signed-off-by: liurunrun <liurunrun@uniontech.com>
2025-09-17 14:24:02 +08:00
liurunrun 89cdb50017 fixed syscall-stat to support loongarch
Signed-off-by: liurunrun <liurunrun@uniontech.com>
2025-09-17 14:23:18 +08:00
liurunrun 993b0d1fe0 fixed net-traffic to support loongarch
Signed-off-by: liurunrun <liurunrun@uniontech.com>
2025-09-17 14:21:31 +08:00
liurunrun 01af81b68a disabled policy tools on loongarch
Disabled policy tools on loongarch due to lack of support for necessary
LSM hooks.

Signed-off-by: liurunrun <liurunrun@uniontech.com>
2025-09-17 14:14:42 +08:00
xulang 0c2785cb41 fix: conflict error 2025-09-11 16:32:17 +08:00
xulang a1fe07d814 remove unused including headers 2025-09-11 14:16:19 +08:00
xulang 958d8efc64 rename bpf.cpp to bpf-manager.cpp 2025-09-11 14:14:18 +08:00
liurunrun 6b7000b24d fixed trace-file doesn't work on loongarch64
Signed-off-by: liurunrun <liurunrun@uniontech.com>
2025-09-11 14:12:37 +08:00
liurunrun 805b927d85 add doxygen comments for filter tools
Signed-off-by: liurunrun <liurunrun@uniontech.com>
2025-09-11 10:30:00 +08:00
liurunrun 6cc9839c11 add doxygen comments for elfverify and frtp
Signed-off-by: liurunrun <liurunrun@uniontech.com>
2025-09-11 10:27:02 +08:00
xulang 79c0cc48ba update some doc description 2025-09-03 14:04:08 +08:00
xulang c7b00007f7 delete uuid library dependency
we dont need libuuid now
2025-09-03 14:04:08 +08:00
liurunrun c6e51bda09 formatted those unformatted files
Signed-off-by: liurunrun <liurunrun@uniontech.com>
2025-09-03 14:03:00 +08:00
liurunrun ab6c64182e add testsuites for trace-file
Signed-off-by: liurunrun <liurunrun@uniontech.com>
2025-09-03 14:01:33 +08:00
liurunrun dbe14f8f6d add testsuites for thermal-snoop
Signed-off-by: liurunrun <liurunrun@uniontech.com>
2025-09-03 14:01:33 +08:00
liurunrun 9281ed9f18 add testsuites for proc-info
Signed-off-by: liurunrun <liurunrun@uniontech.com>
2025-09-03 14:01:33 +08:00