Skip to content

Commit

Permalink
Corrected special EXT2_IOCTL euid check, superuser can always
Browse files Browse the repository at this point in the history
change.
  • Loading branch information
Frank Naumann committed Oct 28, 2000
1 parent 7516ed0 commit d45712f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sys/xfs/ext2fs/ext2dev.c
Expand Up @@ -848,7 +848,10 @@ e_ioctl (FILEPTR *f, int mode, void *arg)
}
else */
{
if ((p_geteuid () != le2cpu16 (inode->in.i_uid)) /*&& !capable (CAP_FOWNER)*/)
int euid;

euid = p_geteuid ();
if (euid && (euid != le2cpu16 (inode->in.i_uid)) /*&& !capable (CAP_FOWNER)*/)
return EACCES;
}

Expand Down

0 comments on commit d45712f

Please sign in to comment.