-
Notifications
You must be signed in to change notification settings - Fork 17
Migrate cardwire-ebpf (C) to aya-ebpf (Rust) #137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
ff34f02
feat(nix): switch rust to nightly
luytan b04213d
feat: add a crate for epbf and another for userspace ebpf, this is th…
luytan 659f370
feat(cardwire-ebpf): add lsm_open_file hook and start implementing he…
luytan b4430b2
feat(cardwire-ebpf): implement previous maps, document them and impro…
luytan dca9da6
feat(cardwire-ebpf): implement return code struct, getter functions a…
luytan cdf0e70
feat(cardwire-ebpf): add verifications to try_file_open, add RingBufs…
luytan 516762e
refactor(cardwire-ebpf): replace dentry with directly the inode
luytan 70c8b22
feat(cardwire-ebpf): add inode_permission hook
luytan 979715a
feat(cardwire-ebpf): add inode_getattr hook
luytan 5321dcd
feat(cardwire-ebpf): implement getdents64 and do some cleaning/refact
luytan a29bc43
feat: implement new lib
luytan a95bef8
feat: update nix compi and finish updating the lib/daemon
luytan 02b6b80
ci: try to fix
luytan 5ff5fd4
chore: fix clippy warnings
luytan 3bccb12
ci: fix maybe
luytan 5e570cd
feat(cardwire-ebpf): add exec events, todo test on laptop
luytan 85b6acd
feat(cardwire-ebpf): implement actual smart mode and force gpu
luytan 0e895e4
chore(cardwire-ebpf): remove unused import
luytan 8405216
feat: make smart mode works
luytan 202db4a
fix: nvdia dGPU to be allowed on smart mode
luytan f4085f7
packaging: update arch for aya-ebpf
luytan c7962f1
chore: update Cargo.lock
luytan bb2a677
ci: pin taiki-e action
luytan 0e90db5
feat(cardwired): use gpu_id as values inside the BPF maps
luytan 2f1e0e6
docs: update block_inode comment
luytan 9fb34d4
fix: add gpu_id to is_inode_blocked
luytan 85149c2
fix(cardwired): remove unused comm from report event
luytan 8efca67
refactor(cardwire-ebpf): use reference for hashmap key
luytan 201967f
refactor(cardwire-ebpf): use an helper function to send report events
luytan 7a43492
fix(cardwired): use gpu id when re-applying block in debug interface
luytan 1cfa1f1
fix(cardwire-ebpf): wrong program name missing_lsm
luytan 3b3c75e
refactor(cardwire-ebpf): improve error handling and add the logger
luytan f72627a
feat: log ebpf error
luytan 01b1a23
feat: add pid_whitelisted and clean some maps
luytan c4991ad
chore: remove fish
luytan 4b6ad2b
fix: various issues
luytan 930a6f2
ci: fix release
luytan dc34a87
fix: arch packaging
luytan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.