Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20211107132826.GA4277@arachsys.com>
Date: Sun, 7 Nov 2021 13:28:26 +0000
From: Chris Webb <chris@...chsys.com>
To: musl@...ts.openwall.com
Subject: [PATCH] add strerror messages for cryptographic-key errno values

ENOKEY, EKEYEXPIRED, EKEYREVOKED and EKEYREJECTED messages are taken from
the comments in the Linux uapi errno.h, but also match glibc's strerror.

These errno values are now commonly returned by mount(2) and therefore
passed to strerror() by mount(8) when working with encrypted filesystems.
---
 src/errno/__strerror.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/errno/__strerror.h b/src/errno/__strerror.h
index 2d992da5..14925907 100644
--- a/src/errno/__strerror.h
+++ b/src/errno/__strerror.h
@@ -102,3 +102,7 @@ E(EDQUOT,       "Quota exceeded")
 E(ENOMEDIUM,    "No medium found")
 E(EMEDIUMTYPE,  "Wrong medium type")
 E(EMULTIHOP,    "Multihop attempted")
+E(ENOKEY,       "Required key not available")
+E(EKEYEXPIRED,  "Key has expired")
+E(EKEYREVOKED,  "Key has been revoked")
+E(EKEYREJECTED, "Key was rejected by service")

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.