Revision e19f9d65186d87258f05eae8a1b4e168594369fe authored by Mateusz Guzik on 18 July 2012, 04:52:37 UTC, committed by Mateusz Guzik on 18 July 2012, 04:52:37 UTC
Unbreak handling of descriptors opened with O_EXEC by fexecve(2). While here return EBADF for descriptors opened for writing (previously it was ETXTBSY). Add fgetvp_exec function which performs appropriate checks. == Follow-up commit to r238220: Pass only FEXEC (instead of FREAD|FEXEC) in fgetvp_exec. _fget has to check for !FWRITE anyway and may as well know about FREAD. Make _fget code a bit more readable by converting permission checking from if() to switch(). Assert that correct permission flags are passed. PR: kern/169651 In collaboration with: kib Approved by: re (hrs), trasz (mentor)
1 parent 59b3442
File | Mode | Size |
---|---|---|
bin | ||
cddl | ||
contrib | ||
crypto | ||
etc | ||
games | ||
gnu | ||
include | ||
kerberos5 | ||
lib | ||
libexec | ||
release | ||
rescue | ||
sbin | ||
secure | ||
share | ||
sys | ||
tools | ||
usr.bin | ||
usr.sbin | ||
ALU-USA-statement.pdf | -rw-r--r-- | 38.0 KB |
COPYRIGHT | -rw-r--r-- | 6.0 KB |
Caldera-license.pdf | -rw-r--r-- | 12.0 KB |
LICENSE | -rw-r--r-- | 14.8 KB |
LOCKS | -rw-r--r-- | 383 bytes |
MAINTAINERS | -rw-r--r-- | 6.5 KB |
Makefile | -rw-r--r-- | 16.0 KB |
Makefile.inc1 | -rw-r--r-- | 49.2 KB |
Makefile.mips | -rw-r--r-- | 96 bytes |
ObsoleteFiles.inc | -rw-r--r-- | 237.7 KB |
README | -rw-r--r-- | 3.0 KB |
README.md | -rw-r--r-- | 16.2 KB |
UPDATING | -rw-r--r-- | 61.5 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...