VFS: check X bit, not R bit, opening executables
For dynamically linked executables, the interpreter is passed a file descriptor of the binary being executed. To this end, VFS opens the target executable, but opening the file fails if it is not readable, even when it is executable. With this patch, when opening the executable, it verifies the X bit rather than the R bit on the file, thus allowing the execution of dynamically linked binaries that are executable but not readable. Add test86 to verify correctness. Change-Id: If3514add6a33b33d52c05a0a627d757bff118d77
This commit is contained in:
@@ -6307,6 +6307,7 @@
|
||||
./usr/tests/minix-posix/test83 minix-sys
|
||||
./usr/tests/minix-posix/test84 minix-sys
|
||||
./usr/tests/minix-posix/test85 minix-sys
|
||||
./usr/tests/minix-posix/test86 minix-sys
|
||||
./usr/tests/minix-posix/test9 minix-sys
|
||||
./usr/tests/minix-posix/testinterp minix-sys
|
||||
./usr/tests/minix-posix/testisofs minix-sys
|
||||
|
||||
Reference in New Issue
Block a user