1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-24 07:40:52 +00:00
freebsd/libexec
Konstantin Belousov c5637b8be8 rtld: ignore fstatfs(2) errors when checking MNT_NOEXEC flag
File descriptor we operate on might reference something that is not a
file, e.g. shmfd.  In this case, we cannot check MNT_NOEXEC in
principle.

If fstatfs(2) caused some failure on normal filesystem, then typical
expectation is that read or mmap of this file would also fail.  If not,
mmap(2) PROT_EXEC on MNT_NOEXEC filesystem returns EACCES.

Reported by:	obiwac@gmail.com
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
2021-11-06 06:40:17 +02:00
..
atf
atrun
blacklistd-helper
bootpd bootp: remove the USE_BFUNCS knob 2021-09-30 23:47:06 -05:00
comsat
dma dma: make the version exposed reflect the new version 2021-09-22 11:12:04 +02:00
fingerd
flua
ftpd ftpd: delete dead code 2021-07-27 12:18:08 -06:00
getty libexec/getty/ttys.5: document correct "dialup" flag. 2021-06-01 17:05:16 +01:00
hyperv pkgbase: Create a FreeBSD-hyperv package 2021-09-07 10:24:54 +02:00
mail.local
makewhatis.local
mknetid
phttpget
pppoed
rbootd
rc Retire synchronous PPP kernel driver sppp(4). 2021-10-22 11:41:36 -07:00
revnetgroup
rpc.rquotad pkgbase: Create a FreeBSD-nfs package 2021-06-19 17:49:50 +02:00
rpc.rstatd
rpc.rusersd
rpc.rwalld
rpc.sprayd
rtld-elf rtld: ignore fstatfs(2) errors when checking MNT_NOEXEC flag 2021-11-06 06:40:17 +02:00
rtld-elf32
save-entropy
smrsh
talkd
tcpd
telnetd ncurses: chase dependency changes in the source tree 2021-10-04 11:38:24 +02:00
tests
tftp-proxy (t)ftp-proxy: use libpfctl 2021-04-10 11:16:02 +02:00
tftpd
ulog-helper
ypxfr
Makefile
Makefile.amd64
Makefile.i386
Makefile.inc