Susfs main (#597)
* Update file_wrapper.c (#595) * Remove wrong compatibility code from susfs-main (#596) Nongki compatibility code should be committed to nongki branch, rather than susfs-main branch. --------- Co-authored-by: kAiF <askthekaif@proton.me> Co-authored-by: cctv18 <85936817+cctv18@users.noreply.github.com>
This commit is contained in:
@@ -106,11 +106,7 @@ bool is_task_ksu_domain(const struct cred* cred)
|
||||
if (!cred) {
|
||||
return false;
|
||||
}
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,1,0)
|
||||
const struct task_security_struct *tsec = selinux_cred(cred);
|
||||
#else
|
||||
const struct task_security_struct *tsec = cred->security;
|
||||
#endif
|
||||
if (!tsec) {
|
||||
return false;
|
||||
}
|
||||
@@ -134,11 +130,7 @@ bool is_context(const struct cred* cred, const char* context)
|
||||
if (!cred) {
|
||||
return false;
|
||||
}
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,1,0)
|
||||
const struct task_security_struct *tsec = selinux_cred(cred);
|
||||
#else
|
||||
const struct task_security_struct *tsec = cred->security;
|
||||
#endif
|
||||
const struct task_security_struct * tsec = selinux_cred(cred);
|
||||
if (!tsec) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user