mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-01-23 13:51:06 -05:00
cryptsetup: Provide implementation without cgo
This commit is contained in:
parent
524718d82c
commit
c1dbbf34c3
@ -2,7 +2,10 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
|||||||
|
|
||||||
go_library(
|
go_library(
|
||||||
name = "cryptsetup",
|
name = "cryptsetup",
|
||||||
srcs = ["cryptsetup.go"],
|
srcs = [
|
||||||
|
"crypsetup_cross.go",
|
||||||
|
"cryptsetup_cgo.go",
|
||||||
|
],
|
||||||
# keep
|
# keep
|
||||||
cdeps = [
|
cdeps = [
|
||||||
"@//rpm:cryptsetup",
|
"@//rpm:cryptsetup",
|
||||||
|
15
internal/cryptsetup/crypsetup_cross.go
Normal file
15
internal/cryptsetup/crypsetup_cross.go
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
//go:build !linux || !cgo
|
||||||
|
|
||||||
|
/*
|
||||||
|
Copyright (c) Edgeless Systems GmbH
|
||||||
|
|
||||||
|
SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
*/
|
||||||
|
package cryptsetup
|
||||||
|
|
||||||
|
const (
|
||||||
|
// ReadWriteQueueBypass is a flag to disable the write and read workqueues for a crypt device.
|
||||||
|
ReadWriteQueueBypass = cryptActivateNoReadWorkqueue | cryptActivateNoWriteWorkqueue
|
||||||
|
cryptActivateNoReadWorkqueue = 0x1000000
|
||||||
|
cryptActivateNoWriteWorkqueue = 0x2000000
|
||||||
|
)
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build linux && cgo
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright (c) Edgeless Systems GmbH
|
Copyright (c) Edgeless Systems GmbH
|
||||||
|
|
Loading…
Reference in New Issue
Block a user