[LTP] [PATCH v2 09/13] syscalls/mount03: Copy setuid_test to execute instead of 'TEST FILE'

Cyril Hrubis chrubis@suse.cz
Wed Nov 29 14:20:19 CET 2017


Hi!
> When testing the MS_NOSUID mount flag, mount03 forgets to copy
> setuid_test into the new filesystem. Instead it writes 'TEST FILE' into
> a new file and attempts to execute it with S_ISUID. This fails, but not
> for the reasons ltp expects.

What is the exact error here? I guess that the file does not have
execute bit set and that check kicks in first?

Anyway we really should check the errno from the exec() is EPERM which
should have caught this problem.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list