landlock-lsm / go-landlock

A Go library for the Linux Landlock sandboxing feature
MIT License
115 stars 8 forks source link

Use constants from golang.org/x/sys/unix #19

Closed tklauser closed 2 years ago

tklauser commented 2 years ago

Use the LANDLOCKACCESS*, LANDLOCK_CREATE_RULESET_VERSION and LANDLOCK_RULE_PATH_BENEATH defined in the golang.org/x/sys/unix package. These are generated from the Linux kernel UAPI headers.

gnoack commented 2 years ago

Ah, wonderful! Thank you very much!