You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -1010,7 +1014,7 @@ static inline int may_follow_link(struct nameidata *nd)
1010
1014
kuid_tpuid;
1011
1015
1012
1016
#ifdefCONFIG_KSU_SUSFS_SUS_PATH
1013
-
if (nd->inode&&unlikely(nd->inode->i_state&16777216) &&likely(current_cred()->user->android_kabi_reserved2&16777216)) {
1017
+
if (nd->inode&&unlikely(nd->inode->i_state&INODE_STATE_SUS_PATH) &&likely(current->susfs_task_state&TASK_STRUCT_NON_ROOT_USER_APP_PROC)) {
1014
1018
return-ENOENT;
1015
1019
}
1016
1020
#endif
@@ -1093,7 +1097,7 @@ static int may_linkat(struct path *link)
1093
1097
structinode*inode=link->dentry->d_inode;
1094
1098
1095
1099
#ifdefCONFIG_KSU_SUSFS_SUS_PATH
1096
-
if (link->dentry->d_inode&&unlikely(link->dentry->d_inode->i_state&16777216) &&likely(current_cred()->user->android_kabi_reserved2&16777216)) {
1100
+
if (link->dentry->d_inode&&unlikely(link->dentry->d_inode->i_state&INODE_STATE_SUS_PATH) &&likely(current->susfs_task_state&TASK_STRUCT_NON_ROOT_USER_APP_PROC)) {
1097
1101
return-ENOENT;
1098
1102
}
1099
1103
#endif
@@ -1140,7 +1144,7 @@ static int may_create_in_sticky(umode_t dir_mode, kuid_t dir_uid,
1140
1144
structinode*constinode)
1141
1145
{
1142
1146
#ifdefCONFIG_KSU_SUSFS_SUS_PATH
1143
-
if (unlikely(inode->i_state&16777216) &&likely(current_cred()->user->android_kabi_reserved2&16777216)) {
1147
+
if (unlikely(inode->i_state&INODE_STATE_SUS_PATH) &&likely(current->susfs_task_state&TASK_STRUCT_NON_ROOT_USER_APP_PROC)) {
if (!IS_ERR(dentry) &&dentry->d_inode&&unlikely(dentry->d_inode->i_state&INODE_STATE_SUS_PATH) &&likely(current->susfs_task_state&TASK_STRUCT_NON_ROOT_USER_APP_PROC)) {
if (!IS_ERR(dentry) &&dentry->d_inode&&unlikely(dentry->d_inode->i_state&16777216) &&likely(current_cred()->user->android_kabi_reserved2&16777216)) {
1832
+
if (!IS_ERR(dentry) &&dentry->d_inode&&unlikely(dentry->d_inode->i_state&INODE_STATE_SUS_PATH) &&likely(current->susfs_task_state&TASK_STRUCT_NON_ROOT_USER_APP_PROC)) {
if (!retval&&path->dentry->d_inode&&unlikely(path->dentry->d_inode->i_state&16777216) &&likely(current_cred()->user->android_kabi_reserved2&16777216)) {
2523
+
if (!retval&&path->dentry->d_inode&&unlikely(path->dentry->d_inode->i_state&INODE_STATE_SUS_PATH) &&likely(current->susfs_task_state&TASK_STRUCT_NON_ROOT_USER_APP_PROC)) {
if (!IS_ERR(dentry) &&dentry->d_inode&&unlikely(dentry->d_inode->i_state&16777216) &&likely(current_cred()->user->android_kabi_reserved2&16777216)) {
3445
+
if (!IS_ERR(dentry) &&dentry->d_inode&&unlikely(dentry->d_inode->i_state&INODE_STATE_SUS_PATH) &&likely(current->susfs_task_state&TASK_STRUCT_NON_ROOT_USER_APP_PROC)) {
0 commit comments