Dave Jiang <dave.ji...@intel.com> wrote: > I think I'm a little confused on what to do once I pass in the new key > id through update. How do I retrieve the new key in kernel that I added > from userspace and not use key_lookup()? request_key() or something > else? Wouldn't request_key come up with the old key since it has the > same description?
As I keep saying, you need to use lookup_user_key(): key = lookup_user_key(keyid, 0, KEY_NEED_SEARCH); You need to add it to linux/key.h and export it. David _______________________________________________ Linux-nvdimm mailing list Linux-nvdimm@lists.01.org https://lists.01.org/mailman/listinfo/linux-nvdimm