unix: add fs-verity consts and types

See https://www.kernel.org/doc/html/latest/filesystems/fsverity.html for
details.

Change-Id: I5b02d0ef84f21d05ea3f1ac8e905232733ea3739
Reviewed-on: https://go-review.googlesource.com/c/sys/+/225698
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Tobias Klauser
2020-03-27 17:32:47 +00:00
committed by Tobias Klauser
parent 85ca7c5b95
commit 9dae0f8f57
17 changed files with 57 additions and 1 deletions
+7
View File
@@ -88,6 +88,7 @@ struct termios2 {
#include <linux/fanotify.h>
#include <linux/filter.h>
#include <linux/fs.h>
#include <linux/fsverity.h>
#include <linux/genetlink.h>
#include <linux/hdreg.h>
#include <linux/icmpv6.h>
@@ -2283,3 +2284,9 @@ const (
DEVLINK_DPIPE_HEADER_IPV4 = C.DEVLINK_DPIPE_HEADER_IPV4
DEVLINK_DPIPE_HEADER_IPV6 = C.DEVLINK_DPIPE_HEADER_IPV6
)
// fs-verity
type FsverityDigest C.struct_fsverity_digest
type FsverityEnableArg C.struct_fsverity_enable_arg