From a7f2b562f3b6f87733ae4e3e4fd04afad3b24816 Mon Sep 17 00:00:00 2001 From: Alexey Lunev Date: Sun, 10 Nov 2024 23:11:19 +0300 Subject: [PATCH] fsverity_linux.go: Fix fsverity.IsEnabled() for big endian systems Signed-off-by: Alexey Lunev --- internal/fsverity/fsverity_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/fsverity/fsverity_linux.go b/internal/fsverity/fsverity_linux.go index f19f0e9ce..6b55666d8 100644 --- a/internal/fsverity/fsverity_linux.go +++ b/internal/fsverity/fsverity_linux.go @@ -80,7 +80,7 @@ func IsEnabled(path string) (bool, error) { } defer f.Close() - var attr int + var attr int32 _, _, flagErr := unix.Syscall(syscall.SYS_IOCTL, f.Fd(), uintptr(unix.FS_IOC_GETFLAGS), uintptr(unsafe.Pointer(&attr))) if flagErr != 0 {