summaryrefslogtreecommitdiffstats
path: root/certs/blacklist.c
diff options
context:
space:
mode:
authorMickaël Salaün <mic@linux.microsoft.com>2020-11-20 19:04:25 +0100
committerDavid Howells <dhowells@redhat.com>2021-01-21 17:16:10 +0100
commita6cb0ab7daf78ce87d70212dfdb01a622d833500 (patch)
tree41e2022ab814ab0565775bbef9fbdd2cf9c2d025 /certs/blacklist.c
parentcerts: Fix blacklist flag type confusion (diff)
downloadlinux-a6cb0ab7daf78ce87d70212dfdb01a622d833500.tar.xz
linux-a6cb0ab7daf78ce87d70212dfdb01a622d833500.zip
certs: Replace K{U,G}IDT_INIT() with GLOBAL_ROOT_{U,G}ID
Align with the new macros and add appropriate include files. Signed-off-by: Mickaël Salaün <mic@linux.microsoft.com> Signed-off-by: David Howells <dhowells@redhat.com> Cc: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'certs/blacklist.c')
-rw-r--r--certs/blacklist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/certs/blacklist.c b/certs/blacklist.c
index 029471947838..bffe4c6f4a9e 100644
--- a/certs/blacklist.c
+++ b/certs/blacklist.c
@@ -14,6 +14,7 @@
#include <linux/ctype.h>
#include <linux/err.h>
#include <linux/seq_file.h>
+#include <linux/uidgid.h>
#include <keys/system_keyring.h>
#include "blacklist.h"
@@ -156,8 +157,7 @@ static int __init blacklist_init(void)
blacklist_keyring =
keyring_alloc(".blacklist",
- KUIDT_INIT(0), KGIDT_INIT(0),
- current_cred(),
+ GLOBAL_ROOT_UID, GLOBAL_ROOT_GID, current_cred(),
(KEY_POS_ALL & ~KEY_POS_SETATTR) |
KEY_USR_VIEW | KEY_USR_READ |
KEY_USR_SEARCH,