aboutsummaryrefslogtreecommitdiff
path: root/metadata/policy.go
diff options
context:
space:
mode:
Diffstat (limited to 'metadata/policy.go')
-rw-r--r--metadata/policy.go11
1 files changed, 5 insertions, 6 deletions
diff --git a/metadata/policy.go b/metadata/policy.go
index 102c587..ac2fde7 100644
--- a/metadata/policy.go
+++ b/metadata/policy.go
@@ -35,12 +35,11 @@ import (
// Encryption specific errors
var (
- prefix = "filesystem encryption: "
- ErrEncryptionNotSupported = errors.New(prefix + "not supported")
- ErrEncryptionDisabled = errors.New(prefix + "disabled in the kernel config")
- ErrNotEncrypted = errors.New(prefix + "file or directory not encrypted")
- ErrEncrypted = errors.New(prefix + "file or directory already encrypted")
- ErrBadEncryptionOptions = errors.New(prefix + "invalid options provided")
+ ErrEncryptionNotSupported = errors.New("filesystem encryption not supported")
+ ErrEncryptionDisabled = errors.New("filesystem encryption disabled in the kernel config")
+ ErrNotEncrypted = errors.New("file or directory not encrypted")
+ ErrEncrypted = errors.New("file or directory already encrypted")
+ ErrBadEncryptionOptions = util.SystemError("invalid encryption options provided")
)
// policyIoctl is a wrapper for the ioctl syscall. If opens the file at the path