mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-03-25 13:29:03 +02:00
util/mkhtemp: loosen execution restriction
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -433,11 +433,23 @@ world_writeable_and_sticky(
|
||||
/* must be fully executable
|
||||
* by everyone, or openat2
|
||||
* becomes unreliable**
|
||||
*
|
||||
* TODO: loosen these, as a toggle.
|
||||
* execution rights isn't
|
||||
* really a requirement for
|
||||
* TMPDIR, except maybe search,
|
||||
* but this function will be
|
||||
* generalised at some point
|
||||
* for use in other tools
|
||||
* besides just mkhtemp.
|
||||
*/
|
||||
/*
|
||||
if (!(st.st_mode & S_IXUSR) ||
|
||||
!(st.st_mode & S_IXGRP) ||
|
||||
!(st.st_mode & S_IXOTH)) {
|
||||
|
||||
*/
|
||||
/* just require it for *you*, for now */
|
||||
if (!(st.st_mode & S_IXUSR)) {
|
||||
errno = EACCES;
|
||||
goto sticky_hell;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user