Commit Graph

223 Commits

Author SHA1 Message Date
criyle
63db3b54e6 mount: ensure bind mount preserve the mount flag from source 2025-08-23 20:21:02 +00:00
criyle
5f66dc11f5 fix(config): fix syscall check on arm64 2025-08-13 22:22:53 +00:00
criyle
2d0d63be76 build(deps): update upstream seccomp library to fix ptracer
elastic/go-seccomp-bpf#40
fixes #8
2025-06-21 16:54:37 -04:00
criyle
7aa1c5a28b refactor: normalize error message & replace path with filepath 2025-05-25 22:02:23 -04:00
criyle
c63c27d3c2 test(pkg): add some unit tests 2025-05-25 20:24:59 -04:00
DNEGEL3125
638345b6eb
test(fileset): add unit tests for FileSet (#15)
* test(FileSet): add unit test for IsInSetSmart

* test(FileSet): add unit test for Add

* test(fileset): add unit test for AddRange
2025-05-22 13:21:42 -04:00
criyle
1e890d6475 container: skip waitAll 2025-04-03 23:21:14 +00:00
criyle
ea0b084794 runprog: ensure alway re-evaluate
related #14
2025-03-14 02:45:32 -04:00
criyle
98f24cf60a runprog: re-evaluate status after retrieve cgroup measurement
related #14
2025-03-14 02:41:55 -04:00
criyle
c316900c2c build: go mod tidy 2025-03-12 15:25:22 -04:00
criyle
f9fbaff75a build: go 1.24 2025-03-12 15:23:29 -04:00
criyle
2ba894ffd1 vfork: fix asm on other architectures
doc: update

#13
2025-02-22 21:30:33 +00:00
criyle
10235abbf2 container: organize test cases 2025-02-22 21:07:11 +00:00
criyle
396ac9723e forkexec: support vfork
(#13)
2025-02-22 20:04:15 +00:00
criyle
f9deb2dc1a container: add unshare cgroup before exec
#13
2025-02-20 23:09:50 -05:00
criyle
f0dd44f466 container: fix cgroup fd
forkexec: disabled VFORK for now as it is not working properly
#13
2025-02-20 22:52:26 -05:00
criyle
659099a2c0 forkexec: use vfork if no sync needed
#13
2025-02-20 22:35:09 +00:00
criyle
f8361a08a0 forkexec: only sync when syncFunc exists
#13
2025-02-20 21:45:03 +00:00
criyle
d32acd7591 cgroup&container: add ability to utilize cgroup fd with clone3
#13
2025-02-20 20:29:20 +00:00
criyle
f15b953065 container: syncAfterExec to sync after execve rather than before 2025-02-20 19:48:39 +00:00
criyle
3d8333e952 forkexec: initial support for clone3 2025-02-20 03:56:49 -05:00
criyle
f6f057edf9 cgroup: use rmdir to delete cgroup 2025-02-20 04:19:59 +00:00
criyle
51b53cf60b runner: add procPeak as measurement of peak process count 2025-02-20 03:12:28 +00:00
criyle
cf936ae31f build(deps): update dependencies and go 1.23 2025-02-20 02:04:22 +00:00
criyle
0b6b557947 cgroup: add pids.peak for cgroup v2 kernel >= 6.1 2025-02-20 01:51:59 +00:00
criyle
4154f44d83 forkexec: add more benchmark for std fork 2025-02-19 00:03:36 -05:00
Yang Gao
7ffa0ff148
Merge pull request #12 from Zqzqsb/fix-vmReadStr 2025-02-11 03:14:52 -05:00
ZQ
25c32240cf test(ptracer): add helper func to find readable memory 2025-02-11 13:45:35 +08:00
ZQ
9df6a51947 fix(ptracer): delete min func 2025-02-11 13:14:49 +08:00
ZQ
8b7494f796 fix(ptracer): fix vmReadStr logic error 2025-02-11 12:11:28 +08:00
ZQ
99241ac91a test(ptracer): add testfile and verify vmReadStr problem 2025-02-11 12:09:10 +08:00
criyle
3fb1ccd890 pkg/cgroup: add enabled controler check for v2 2025-01-26 00:38:08 -05:00
criyle
144d408a6d build(deps): update dependencies 2025-01-25 23:41:30 -05:00
Yang Gao
fa1ba2f855
Merge pull request #10 from BoYanZh/patch-1
fix(pkg/cgroup): nil pointer dereference
2025-01-10 13:26:51 -05:00
BoYanZh
6c726c9b94
fix(pkg/cgroup): nil pointer dereference
when `build` is `V2.New`, `cg` will be `nil` if it is returned from `if !os.IsExist(err) {`
2025-01-10 03:42:03 -05:00
criyle
81eae7a6d5 build(deps): update dependencies 2024-12-13 18:28:00 +00:00
criyle
5bfbd6c8fe forkexec: fix unshare cgroup with ptracer 2024-06-14 10:26:07 +00:00
criyle
6d21194b72 mount: allow read write mount for /proc
criyle/go-judge#106

Co-authored-by: iBug <git@ibugone.com>
2024-05-23 10:21:46 +00:00
criyle
60a64d0fb1 container: add option to run init command after container initialization 2024-04-16 10:47:48 +00:00
criyle
598c606a99 deps: upgrade to rand/v2 2024-04-05 04:24:10 +00:00
criyle
f6274fd54c cgroup: rename types to remove stutters 2024-02-05 08:53:37 +00:00
criyle
ed93876f8c *: fix typos 2024-02-03 16:19:58 +00:00
criyle
231f3cb58f cgroup: refactor to support creating child cgroup directly 2023-11-09 10:21:07 +00:00
dependabot[bot]
5a772dcd4f
Bump golang.org/x/net from 0.15.0 to 0.17.0 (#6) 2023-10-14 01:57:11 +00:00
criyle
bd846192aa deps: upgrade to go1.21 2023-09-27 13:43:12 +00:00
criyle
69e069ba8f doc: update kernel version doc and dependency versions 2023-08-10 13:09:27 +00:00
Yang Gao
7aeb9869c5
Merge pull request #3 from AlphaNecron/max_mem_cgv2
use memory.peak for cgroup v2 to replicate max_usage_in_bytes in v1 (for kernel >= 5.19)
2023-08-10 20:34:28 +08:00
Nguyen Thanh Quang
656b493a3f
use memory.peak for cgroup v2 as an alternative to max_usage_in_bytes 2023-08-04 23:12:23 +07:00
criyle
25d0f22364 *: bump dependency version & better align 2023-04-12 01:19:47 -07:00
criyle
cce22e7ac8 *: bump dependency version with go1.20 2023-02-19 01:06:21 -08:00