@@ -1562,8 +1562,8 @@ int pid_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat)
15621562 generic_fillattr (inode , stat );
15631563
15641564 rcu_read_lock ();
1565- stat -> uid = 0 ;
1566- stat -> gid = 0 ;
1565+ stat -> uid = GLOBAL_ROOT_UID ;
1566+ stat -> gid = GLOBAL_ROOT_GID ;
15671567 task = pid_task (proc_pid (inode ), PIDTYPE_PID );
15681568 if (task ) {
15691569 if (!has_pid_permissions (pid , task , 2 )) {
@@ -1623,8 +1623,8 @@ int pid_revalidate(struct dentry *dentry, struct nameidata *nd)
16231623 inode -> i_gid = cred -> egid ;
16241624 rcu_read_unlock ();
16251625 } else {
1626- inode -> i_uid = 0 ;
1627- inode -> i_gid = 0 ;
1626+ inode -> i_uid = GLOBAL_ROOT_UID ;
1627+ inode -> i_gid = GLOBAL_ROOT_GID ;
16281628 }
16291629 inode -> i_mode &= ~(S_ISUID | S_ISGID );
16301630 security_task_to_inode (task , inode );
@@ -1811,8 +1811,8 @@ static int tid_fd_revalidate(struct dentry *dentry, struct nameidata *nd)
18111811 inode -> i_gid = cred -> egid ;
18121812 rcu_read_unlock ();
18131813 } else {
1814- inode -> i_uid = 0 ;
1815- inode -> i_gid = 0 ;
1814+ inode -> i_uid = GLOBAL_ROOT_UID ;
1815+ inode -> i_gid = GLOBAL_ROOT_GID ;
18161816 }
18171817 inode -> i_mode &= ~(S_ISUID | S_ISGID );
18181818 security_task_to_inode (task , inode );
@@ -2061,8 +2061,8 @@ static int map_files_d_revalidate(struct dentry *dentry, struct nameidata *nd)
20612061 inode -> i_gid = cred -> egid ;
20622062 rcu_read_unlock ();
20632063 } else {
2064- inode -> i_uid = 0 ;
2065- inode -> i_gid = 0 ;
2064+ inode -> i_uid = GLOBAL_ROOT_UID ;
2065+ inode -> i_gid = GLOBAL_ROOT_GID ;
20662066 }
20672067 security_task_to_inode (task , inode );
20682068 status = 1 ;
0 commit comments