Skip to content

Commit

Permalink
Add ptrace and seccomp bindings (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuki0iq authored Dec 18, 2024
1 parent 10db0ea commit 59c392f
Show file tree
Hide file tree
Showing 22 changed files with 16,837 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ static_assertions = "1.1.0"
libc = "0.2.100"

[package.metadata.docs.rs]
features = ["default", "bootparam", "btrfs", "ioctl", "landlock", "netlink", "io_uring", "if_arp", "if_ether", "if_packet", "net", "prctl", "elf", "xdp", "mempolicy", "system", "loop_device"]
features = ["default", "bootparam", "btrfs", "ioctl", "landlock", "netlink", "io_uring", "if_arp", "if_ether", "if_packet", "net", "ptrace", "prctl", "elf", "xdp", "mempolicy", "system", "loop_device"]
targets = ["x86_64-unknown-linux-gnu", "i686-unknown-linux-gnu"]

[lints.rust.unexpected_cfgs]
Expand All @@ -47,6 +47,7 @@ mempolicy = []
net = []
netlink = []
prctl = []
ptrace = []
system = []
xdp = []
default = ["std", "general", "errno"]
Expand Down
Empty file added gen/include/stdint.h
Empty file.
6 changes: 6 additions & 0 deletions gen/modules/ptrace.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#include "support.h"

#include <linux/audit.h> /* Definition of AUDIT_* constants */
#include <linux/filter.h> /* Definition of struct sock_fprog */
#include <linux/ptrace.h> /* Definition of PTRACE_* constants */
#include <linux/seccomp.h> /* Definition of SECCOMP_* constants */
Loading

0 comments on commit 59c392f

Please sign in to comment.