[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1384695783.5181.49.camel@dhcp-9-2-203-236.watson.ibm.com>
Date: Sun, 17 Nov 2013 08:43:03 -0500
From: Mimi Zohar <zohar@...ux.vnet.ibm.com>
To: David Howells <dhowells@...hat.com>
Cc: d.kasatkin@...sung.com, zohar@...ibm.com, keyrings@...ux-nfs.org,
linux-security-module@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 9/9] KEYS: Fix encrypted key type update method
On Sun, 2013-11-17 at 09:17 +0000, David Howells wrote:
> Mimi Zohar <zohar@...ux.vnet.ibm.com> wrote:
>
> > + keyctl control <keyid> encrypted change-master-key \
> > + "update key-type:master-key-name"
>
> Why include the word "update" in the argument? Isn't that implicit in the
> command name?
Agreed, it's redundant. encrypted_control() currently strips off the
"encrypted change-master-key" string and then calls datablob_parse(),
which still expects a key_cmd (eg. new, load, or update). Instead, we
could pass "change-master-key" to datablob_parse() as the key_cmd and
make the necessary changes.
thanks,
Mimi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists