mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Howells <dhowells@redhat.com>
To: keyrings@linux-nfs.org
Cc: linux-crypto@vger.kernel.org,
	linux-security-module@vger.kernel.org,
	linux-kernel@vger.kernel.org, mitry.kasatkin@intel.com,
	zohar@linux.vnet.ibm.com, arjan.van.de.ven@intel.com,
	alan.cox@intel.com, David Howells <dhowells@redhat.com>
Subject: [PATCH 02/14] KEYS: Permit key_serial() to be called with a const key pointer
Date: Mon, 28 Nov 2011 15:44:48 +0000	[thread overview]
Message-ID: <20111128154448.6009.8418.stgit@warthog.procyon.org.uk> (raw)
In-Reply-To: <20111128154436.6009.77586.stgit@warthog.procyon.org.uk>

Permit key_serial() to be called with a const key pointer.

Signed-off-by: David Howells <dhowells@redhat.com>
---

 include/linux/key.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/include/linux/key.h b/include/linux/key.h
index 183a6af..f87b51b 100644
--- a/include/linux/key.h
+++ b/include/linux/key.h
@@ -271,7 +271,7 @@ extern int keyring_add_key(struct key *keyring,
 
 extern struct key *key_lookup(key_serial_t id);
 
-static inline key_serial_t key_serial(struct key *key)
+static inline key_serial_t key_serial(const struct key *key)
 {
 	return key ? key->serial : 0;
 }


  reply	other threads:[~2011-11-28 15:45 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-28 15:44 [PATCH 01/14] MPILIB: Export some more symbols David Howells
2011-11-28 15:44 ` David Howells [this message]
2011-11-28 15:45 ` [PATCH 03/14] PGP: Add definitions (RFC 4880) and packet parser David Howells
2011-11-28 15:45 ` [PATCH 04/14] KEYS: Create a key type that can be used for general cryptographic operations David Howells
2011-11-28 15:45 ` [PATCH 05/14] KEYS: Add a DSA crypto key subtype David Howells
2011-11-28 15:45 ` [PATCH 06/14] KEYS: Add a RSA " David Howells
2011-11-28 15:45 ` [PATCH 07/14] PGP: Add signature parser David Howells
2011-11-28 15:46 ` [PATCH 08/14] KEYS: Add signature verification facility David Howells
2011-11-28 15:46 ` [PATCH 09/14] KEYS: DSA key signature verification David Howells
2011-11-28 15:46 ` [PATCH 10/14] KEYS: Add a crypto key request function David Howells
2011-11-28 15:46 ` [PATCH 11/14] KEYS: Provide a function to load keys from a PGP keyring blob David Howells
2011-11-28 15:46 ` [PATCH 12/14] MODSIGN: Add indications of module ELF types David Howells
2011-11-28 15:47 ` [PATCH 13/14] MODSIGN: Module ELF verifier David Howells
2011-11-28 15:47 ` [PATCH 14/14] MODSIGN: Apply signature checking to modules on module load David Howells
2011-11-28 16:27 ` [PATCH 00/14][RFC] Crypto keys and module signing David Howells

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=20111128154448.6009.8418.stgit@warthog.procyon.org.uk \
    --to=dhowells@redhat.com \
    --cc=alan.cox@intel.com \
    --cc=arjan.van.de.ven@intel.com \
    --cc=keyrings@linux-nfs.org \
    --cc=linux-crypto@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-security-module@vger.kernel.org \
    --cc=mitry.kasatkin@intel.com \
    --cc=zohar@linux.vnet.ibm.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®