diff options
-rw-r--r-- | kernel/system_keyring.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/system_keyring.c b/kernel/system_keyring.c index 5296721eca5b..564dd93430a2 100644 --- a/kernel/system_keyring.c +++ b/kernel/system_keyring.c | |||
@@ -35,7 +35,7 @@ static __init int system_trusted_keyring_init(void) | |||
35 | keyring_alloc(".system_keyring", | 35 | keyring_alloc(".system_keyring", |
36 | KUIDT_INIT(0), KGIDT_INIT(0), current_cred(), | 36 | KUIDT_INIT(0), KGIDT_INIT(0), current_cred(), |
37 | ((KEY_POS_ALL & ~KEY_POS_SETATTR) | | 37 | ((KEY_POS_ALL & ~KEY_POS_SETATTR) | |
38 | KEY_USR_VIEW | KEY_USR_READ), | 38 | KEY_USR_VIEW | KEY_USR_READ | KEY_USR_SEARCH), |
39 | KEY_ALLOC_NOT_IN_QUOTA, NULL); | 39 | KEY_ALLOC_NOT_IN_QUOTA, NULL); |
40 | if (IS_ERR(system_trusted_keyring)) | 40 | if (IS_ERR(system_trusted_keyring)) |
41 | panic("Can't allocate system trusted keyring\n"); | 41 | panic("Can't allocate system trusted keyring\n"); |
@@ -81,8 +81,8 @@ static __init int load_system_certificate_list(void) | |||
81 | NULL, | 81 | NULL, |
82 | p, | 82 | p, |
83 | plen, | 83 | plen, |
84 | (KEY_POS_ALL & ~KEY_POS_SETATTR) | | 84 | ((KEY_POS_ALL & ~KEY_POS_SETATTR) | |
85 | KEY_USR_VIEW, | 85 | KEY_USR_VIEW | KEY_USR_READ), |
86 | KEY_ALLOC_NOT_IN_QUOTA | | 86 | KEY_ALLOC_NOT_IN_QUOTA | |
87 | KEY_ALLOC_TRUSTED); | 87 | KEY_ALLOC_TRUSTED); |
88 | if (IS_ERR(key)) { | 88 | if (IS_ERR(key)) { |