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:
@@ -351,12 +351,7 @@ int ksu_handle_devpts(struct inode *inode)
|
||||
return 0;
|
||||
|
||||
if (ksu_file_sid) {
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 1, 0) || defined(KSU_OPTIONAL_SELINUX_INODE)
|
||||
struct inode_security_struct *sec = selinux_inode(inode);
|
||||
#else
|
||||
struct inode_security_struct *sec =
|
||||
(struct inode_security_struct *)inode->i_security;
|
||||
#endif
|
||||
struct inode_security_struct *sec = selinux_inode(inode);
|
||||
if (sec) {
|
||||
sec->sid = ksu_file_sid;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user