From: Maximilian Bosch <maximilian@mbosch.me>
To: Jarkko Sakkinen <jarkko@kernel.org>
Cc: Linus Heckemann <linus@schreibt.jetzt>, keyrings@vger.kernel.org
Subject: Re: Allowing empty keys? or: setting attributes on keys safely
Date: Sat, 23 Mar 2024 14:44:06 +0100 [thread overview]
Message-ID: <pvifchlk2bxk4o5tpucvh2n5evmbhhcc7ok6dmxi2jogqd6oxo@rozgfpgmebpr> (raw)
In-Reply-To: <CZ9B2PLX5VZS.1GPZ6W2K9UVV5@seitikki>
Hi!
> Something prevents you setting invalid payload first, and appropriate
> one later with keyctl_update?
When I look at the implementation of `key_update`[1], it seems as if the
expiry is reset. Is there any way I'm missing which allows me to either
atomically create a key in a keyring with a timeout or to update a key
while retaining the timeout?
Cheers!
Max / ma27
[1] https://github.com/torvalds/linux/blob/v6.8/security/keys/key.c#L1083
prev parent reply other threads:[~2024-03-23 13:51 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-17 18:20 Allowing empty keys? or: setting attributes on keys safely Linus Heckemann
2024-02-19 19:47 ` Jarkko Sakkinen
2024-02-20 9:28 ` Linus Heckemann
2024-02-20 17:49 ` Jarkko Sakkinen
2024-02-20 17:52 ` Jarkko Sakkinen
2024-03-23 13:44 ` Maximilian Bosch [this message]
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=pvifchlk2bxk4o5tpucvh2n5evmbhhcc7ok6dmxi2jogqd6oxo@rozgfpgmebpr \
--to=maximilian@mbosch.me \
--cc=jarkko@kernel.org \
--cc=keyrings@vger.kernel.org \
--cc=linus@schreibt.jetzt \
/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.
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 read-only IMAP folder(s) and NNTP newsgroup(s).