From mboxrd@z Thu Jan 1 00:00:00 1970 From: freeman.zhang1992@gmail.com (Freeman Zhang) Date: Fri, 04 Jul 2014 09:42:49 +0800 Subject: How to use keyring in the kernel? In-Reply-To: <98415.1404398073@turing-police.cc.vt.edu> References: <53B51E6F.8040404@gmail.com> <98415.1404398073@turing-police.cc.vt.edu> Message-ID: <53B60699.2040700@gmail.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org Hi, On Thu, 03 Jul 2014 22:34, Valdis.Kletnieks at vt.edu wrote: > On Thu, 03 Jul 2014 17:12:15 +0800, Freeman Zhang said: > >> And most importantly, what if someone need to manipulate >> (created, updated and read) keys(not keyring) in kernel >> services while user key type "aren't intended" for that? > Why would the kernel be doing that in the first place, when it can > just use a key that's *not* either a user key or a keyring? Oh, that's why we should define our own key types. Thank you Valdis! Freeman