KEYS: Remove KEY_FLAG_TRUSTED and KEY_ALLOC_TRUSTED

Remove KEY_FLAG_TRUSTED and KEY_ALLOC_TRUSTED as they're no longer
meaningful.  Also we can drop the trusted flag from the preparse structure.

Given this, we no longer need to pass the key flags through to
restrict_link().

Further, we can now get rid of keyring_restrict_trusted_only() also.

Signed-off-by: David Howells <dhowells@redhat.com>
这个提交包含在:
David Howells
2016-04-06 16:14:26 +01:00
父节点 a511e1af8b
当前提交 77f68bac94
修改 7 个文件,包含 9 行新增59 行删除

查看文件

@@ -51,12 +51,11 @@ static bool init_keyring __initdata;
*/
static int restrict_link_by_ima_mok(struct key *keyring,
const struct key_type *type,
unsigned long flags,
const union key_payload *payload)
{
int ret;
ret = restrict_link_by_builtin_trusted(keyring, type, flags, payload);
ret = restrict_link_by_builtin_trusted(keyring, type, payload);
if (ret != -ENOKEY)
return ret;