[LTP] [PATCH] security/prot_hsymlinks: Set umask before mkdir

Petr Vorel pvorel@suse.cz
Tue Apr 6 16:43:52 CEST 2021


Hi,

> When uid is nobody, umask is 0077, the test process might has
it's actually hsym user.
> not permmission to access the file which created by SAFE_MKDIR
(permission)
> with mode 0755.

Thanks for your fix!
Merged with comment in the code. BTW I guess we might want to add this umask
to SAFE_MKDIR() instead of fixing all tests which are affected by 0077.

Kind regards,
Petr


More information about the ltp mailing list