summaryrefslogtreecommitdiffhomepage
path: root/pkg/abi
diff options
context:
space:
mode:
authorChong Cai <chongc@google.com>2020-09-15 19:00:14 -0700
committergVisor bot <gvisor-bot@google.com>2020-09-15 19:01:59 -0700
commitcb2e3c946a376097f695118384cf3a147905aa18 (patch)
treed363eb57824b9141308d661a30b19fada640b165 /pkg/abi
parent8b15effd9ec6091feb9ec554ebe38cc02e765560 (diff)
Implement gvisor verity fs ioctl with GETFLAGS
PiperOrigin-RevId: 331905347
Diffstat (limited to 'pkg/abi')
-rw-r--r--pkg/abi/linux/ioctl.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/abi/linux/ioctl.go b/pkg/abi/linux/ioctl.go
index a4fe7501d..3356a2b4a 100644
--- a/pkg/abi/linux/ioctl.go
+++ b/pkg/abi/linux/ioctl.go
@@ -113,6 +113,12 @@ const (
_IOC_DIRSHIFT = _IOC_SIZESHIFT + _IOC_SIZEBITS
)
+// Constants from uapi/linux/fs.h.
+const (
+ FS_IOC_GETFLAGS = 2147771905
+ FS_VERITY_FL = 1048576
+)
+
// Constants from uapi/linux/fsverity.h.
const (
FS_IOC_ENABLE_VERITY = 1082156677