Skip to content

Commit 1fddb5e

Browse files
yuki0iqsunfishcode
authored andcommitted
Add ptrace and seccomp bindings (#136)
1 parent 690ba64 commit 1fddb5e

File tree

22 files changed

+16498
-1
lines changed

22 files changed

+16498
-1
lines changed

Cargo.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ static_assertions = "1.1.0"
2121
libc = "0.2.100"
2222

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

2727
[lints.rust.unexpected_cfgs]
@@ -47,6 +47,7 @@ mempolicy = []
4747
net = []
4848
netlink = []
4949
prctl = []
50+
ptrace = []
5051
system = []
5152
xdp = []
5253
default = ["std", "general", "errno"]

gen/include/stdint.h

Whitespace-only changes.

gen/modules/ptrace.h

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#include "support.h"
2+
3+
#include <linux/audit.h> /* Definition of AUDIT_* constants */
4+
#include <linux/filter.h> /* Definition of struct sock_fprog */
5+
#include <linux/ptrace.h> /* Definition of PTRACE_* constants */
6+
#include <linux/seccomp.h> /* Definition of SECCOMP_* constants */

0 commit comments

Comments
 (0)