From: "Michael Kerrisk (man-pages)" <mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: David Howells <dhowells-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
Eugene Syromyatnikov
<evgsyr-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
linux-man <linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
keyrings-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
lkml <linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: Revised add_key(2) man page for review
Date: Tue, 13 Dec 2016 12:23:23 +0100 [thread overview]
Message-ID: <2ed8ebca-e971-f9f5-a791-28f2604344c4@gmail.com> (raw)
In-Reply-To: <24646.1481626688-S6HVgzuS8uM4Awkfq6JHfwNdhmdF6hFW@public.gmane.org>
Hello David
Thanks for the review!
On 12/13/2016 11:58 AM, David Howells wrote:
> Michael Kerrisk (man-pages) <mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
>> The destination keyring serial number may be that of a valid
>> keyring for which the caller has write permission, or it may be
>> one of the following special keyring IDs:
>
> No comma before "or".
Actually, I think its okay with the comma. But I decided anyway to
reword this into two sentences.
>> "user" This is a general purpose key type whose payload may be
>> ...
>> "keyring"
>
> It probably makes sense to put keyring either first or last.
Done.
>
>> "keyring"
>> Keyrings are special key types that may contain links to
>> sequences of other keys of any type. If this interface
>> is used to create a keyring, then a NULL payload should
>> be specified, and plen should be zero.
>
> I think "then payload should be NULL and plen should be zero." sounds better.
Agreed. Fixed.
>> "logon" (since Linux 3.3)
>> This key type is essentially the same as "user", but it
>> does not provide reading.
>
> "permit the key to be read" rather than "provide reading", I think.
Fixed.
>> "big_key" (since Linux 3.13)
>> This key type is similar to "user", but may hold a pay‐
>> load of up to 1 MiB. If the key payload is large, then
>> it may be stored in swap space rather than kernel mem‐
>> ory.
>
> "stored encrypted in swap space".
Fixed.
>> printf("Key ID is %lx\n", (long) key);
>
> key_serial_t is an int. It doesn't really need casting to long.
Well, this is a common way of dealing with opaque integer system data
types, so that one does not encode a representational dependency into
printf(). (Relies on the assumption that the underlying type is no
bigger than long. The alternative these days is a cast to (intmax_t)
plus %jd.) [So, for the moment, I'll leave the text as is.]
Cheers,
Micael
--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2016-12-13 11:23 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-04 15:47 Revised add_key(2) man page for review Michael Kerrisk (man-pages)
[not found] ` <9a5cc2a7-a505-9d0d-5b78-4bc5ab100ff1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-11-15 8:43 ` [PATCH 0/5] " Eugene Syromyatnikov
2016-11-15 8:43 ` [PATCH 1/5] add_key.2: tfix Eugene Syromyatnikov
2016-11-16 17:56 ` Michael Kerrisk (man-pages)
2016-11-15 8:43 ` [PATCH 2/5] add_key.2: wording change regarding the reasons of call faliure Eugene Syromyatnikov
2016-11-16 17:56 ` Michael Kerrisk (man-pages)
2016-11-15 8:44 ` [PATCH 3/5] add_key.2: change wording regarding storing of big_key payload Eugene Syromyatnikov
2016-11-16 17:56 ` Michael Kerrisk (man-pages)
2016-11-15 8:44 ` [PATCH 4/5] add_key.2: add information regarding EFAULT Eugene Syromyatnikov
2016-11-16 17:56 ` Michael Kerrisk (man-pages)
2016-11-15 8:44 ` [PATCH 5/5] add_key.2: add information regarding EPERM Eugene Syromyatnikov
2016-11-15 21:00 ` Michael Kerrisk (man-pages)
[not found] ` <fc419c25-7e99-9b47-0439-3469bb6e9ed6-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-11-15 21:17 ` Eugene Syromyatnikov
[not found] ` <CACGkJduKzn3ZK2uet_eVPFRmQszCRZQRyUBOJ-GYe44zCuvzMA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-11-15 22:24 ` Eugene Syromyatnikov
2016-11-16 17:57 ` Michael Kerrisk (man-pages)
2016-12-13 10:58 ` Revised add_key(2) man page for review David Howells
[not found] ` <24646.1481626688-S6HVgzuS8uM4Awkfq6JHfwNdhmdF6hFW@public.gmane.org>
2016-12-13 11:23 ` Michael Kerrisk (man-pages) [this message]
[not found] ` <2ed8ebca-e971-f9f5-a791-28f2604344c4-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-12-13 11:37 ` David Howells
2016-12-13 11:49 ` Michael Kerrisk (man-pages)
[not found] ` <CAKgNAkinuHhvrQKkxT8add2u7eeu0onVgObZr1Qrn4awszpBew-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-12-13 12:06 ` Eugene Syromyatnikov
[not found] ` <CACGkJduFtWxiuHoVUxEkHZkFR4XmeirSb7=gsaaUfPY6nY7Jsw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-12-13 12:53 ` Michael Kerrisk (man-pages)
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=2ed8ebca-e971-f9f5-a791-28f2604344c4@gmail.com \
--to=mtk.manpages-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=dhowells-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=evgsyr-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=keyrings-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/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 NNTP newsgroup(s).