I'd quote 'keyctl print' just so it's obvious where the command ends and the
descriptive text starts.
I recommend adding some example commands with all the arguments substituted.
Nothing helps get to grip with an API like knowing what a command is supposed
to look like when it's actually used.
There are still a lot of places in here where you should probably be using
const and size_t.
Using kzalloc() rather than kmalloc() is a waste of time, I'd've thought.
It's a temporary buffer. Does it really need to be precleared?
Merge.
That's what [] is for.
kfree() can handle a NULL pointer.
Should there be a check for pcrlock() failure?
Values defined for TPM hardware access really ought to be in a separate file
in include/linux/. They aren't strictly specific to the trusted key
implementation here; that may be the only user currently in the kernel, but
that doesn't mean there can't be another user.
David
--