mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Chris Webb <chris@arachsys.com>
To: musl@lists.openwall.com
Subject: [musl] [PATCH] add strerror messages for cryptographic-key errno values
Date: Sun, 7 Nov 2021 13:28:26 +0000	[thread overview]
Message-ID: <20211107132826.GA4277@arachsys.com> (raw)

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")

                 reply	other threads:[~2021-11-07 14:11 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211107132826.GA4277@arachsys.com \
    --to=chris@arachsys.com \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).