Same thing with mount03:
$./mount03 -D /dev/loop0 -T ext2 mount03 0 TINFO : Formatting /dev/loop0 with ext2 extra opts='' mke2fs 1.42.5 (29-Jul-2012) mount03 1 TPASS : mount(2) passed with rwflag = 1 mount03 2 TPASS : mount(2) passed with rwflag = 4 mount03 3 TPASS : mount(2) passed with rwflag = 8 mount03 4 TPASS : mount(2) passed with rwflag = 16 mount03 5 TPASS : mount(2) passed with rwflag = 1 /bin/sh: 0: Can't open /tmp/mouF9AJfQ/mntpoint/setuid_test mount03 6 TPASS : mount(2) passed with rwflag = 2 mount03 7 TPASS : mount(2) passed with rwflag = 1024
Same thing with mount03:
$./mount03 -D /dev/loop0 -T ext2 mntpoint/ setuid_ test
mount03 0 TINFO : Formatting /dev/loop0 with ext2 extra opts=''
mke2fs 1.42.5 (29-Jul-2012)
mount03 1 TPASS : mount(2) passed with rwflag = 1
mount03 2 TPASS : mount(2) passed with rwflag = 4
mount03 3 TPASS : mount(2) passed with rwflag = 8
mount03 4 TPASS : mount(2) passed with rwflag = 16
mount03 5 TPASS : mount(2) passed with rwflag = 1
/bin/sh: 0: Can't open /tmp/mouF9AJfQ/
mount03 6 TPASS : mount(2) passed with rwflag = 2
mount03 7 TPASS : mount(2) passed with rwflag = 1024