kernel: fix build for gcc (#873)

current_cred() need this
This commit is contained in:
rhjdvsgsgks
2023-08-16 09:55:23 +00:00
committed by GitHub
parent ae9519de42
commit 6aeb76a3ef

View File

@@ -15,6 +15,7 @@
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 10, 0)
#include "linux/key.h"
#include "linux/errno.h"
#include "linux/cred.h"
struct key *init_session_keyring = NULL;
static inline int install_session_keyring(struct key *keyring)
@@ -174,4 +175,4 @@ long ksu_strncpy_from_user_nofault(char *dst, const void __user *unsafe_addr,
return ret;
}
#endif
#endif