From 36a9fc8323d2ab30b7e04b4e386ccd5fa0340001 Mon Sep 17 00:00:00 2001 From: Arun S Date: Fri, 17 Jul 2026 06:48:47 +0530 Subject: [PATCH] kernel_tainted: use linux build tag instead of !windows util.SysReadUintFromFile is defined in internal/util/sysreadfile.go which has a //go:build linux constraint. Using !windows caused build failures on OpenBSD and other non-Linux, non-Windows platforms. /proc/sys/kernel/tainted is Linux-specific, so linux is the correct build tag. Signed-off-by: Arun Srinivasan Signed-off-by: Arun S --- kernel_tainted.go | 2 +- kernel_tainted_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel_tainted.go b/kernel_tainted.go index dbfa3b09..8730c99d 100644 --- a/kernel_tainted.go +++ b/kernel_tainted.go @@ -11,7 +11,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -//go:build !windows +//go:build linux package procfs diff --git a/kernel_tainted_test.go b/kernel_tainted_test.go index 1224c26e..338cec25 100644 --- a/kernel_tainted_test.go +++ b/kernel_tainted_test.go @@ -11,7 +11,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -//go:build !windows +//go:build linux package procfs