freebsd-nq/tests/sys
Alan Somers bfcb817bcd Fix issues with FUSE_ACCESS when default_permissions is disabled
This patch fixes two issues relating to FUSE_ACCESS when the
default_permissions mount option is disabled:

* VOP_ACCESS() calls with VADMIN set should never be sent to a fuse server
  in the form of FUSE_ACCESS operations. The FUSE protocol has no equivalent
  of VADMIN, so we must evaluate such things kernel-side, regardless of the
  default_permissions setting.

* The FUSE protocol only requires FUSE_ACCESS to be sent for two purposes:
  for the access(2) syscall and to check directory permissions for
  searchability during lookup. FreeBSD sends it much more frequently, due to
  differences between our VFS and Linux's, for which FUSE was designed. But
  this patch does eliminate several cases not required by the FUSE protocol:

  * for any FUSE_*XATTR operation
  * when creating a new file
  * when deleting a file
  * when setting timestamps, such as by utimensat(2).

* Additionally, when default_permissions is disabled, this patch removes one
  FUSE_GETATTR operation when deleting a file.

PR:		245689
Reported by:	MooseFS FreeBSD Team <freebsd@moosefs.pro>
Reviewed by:	cem
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D24777
2020-05-22 18:11:17 +00:00
..
acl Set required program for all acl tests 2019-09-05 18:54:46 +00:00
aio lio_listio_empty_nowait_thread sometimes does *not* hang. 2020-01-04 18:59:46 +00:00
audit tests: audit: mark closefrom test an expected fail for now 2020-04-14 23:36:03 +00:00
auditpipe Introduce test program for auditpipe(4) 2018-07-26 00:16:41 +00:00
capsicum Integrate capsicum-test into the FreeBSD test suite 2019-04-01 21:24:50 +00:00
cddl zfs: multiple improvements to the zpool_add tests 2019-10-10 02:17:45 +00:00
common Add tests verifying IPv4/IPv6 output for TCP/UDP/raw paths. 2020-03-23 12:21:32 +00:00
devrandom random(4): Fortuna: allow increased concurrency 2019-06-17 20:29:13 +00:00
fifo Avoid hard-coding pipe buffer sizes in the pipe and fifo kqueue tests. 2020-05-20 17:48:18 +00:00
file close_range/closefrom: fix regression from close_range introduction 2020-04-13 17:55:31 +00:00
fs Fix issues with FUSE_ACCESS when default_permissions is disabled 2020-05-22 18:11:17 +00:00
geom Revert 357780, dtrace -c has been fixed in head` 2020-05-18 23:43:48 +00:00
kern Avoid hard-coding pipe buffer sizes in the pipe and fifo kqueue tests. 2020-05-20 17:48:18 +00:00
kqueue Enable timer tests in sys.kqueue.libkqueue.kqueue_test.main on i386 2020-04-22 09:53:41 +00:00
mac Resolve conflict between the fusefs(5) and mac_bsdextended(4) tests 2020-05-02 20:14:59 +00:00
mqueue DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
net Make sys.net.if_bridge_test depend on python; sys.net.if_bridge_test.span 2020-05-19 21:55:29 +00:00
netinet Make sys.netinet.output and sys.netinet6.output6 tests depend on python; 2020-05-19 21:48:45 +00:00
netinet6 Make sys.netinet.output and sys.netinet6.output6 tests depend on python; 2020-05-19 21:48:45 +00:00
netipsec Revert r360204, sys.netipsec.tunnel.empty.v{4,6} are fixed by r360560 2020-05-04 11:23:55 +00:00
netmap netmap: add test cases for multiple host rings 2019-04-13 12:50:47 +00:00
netpfil pf tests: fix up a couple WARNS= 6 nits 2020-05-14 23:20:58 +00:00
opencrypto Remove support for the algorithms deprecated in r348876. 2020-05-02 14:20:32 +00:00
pjdfstest Tag pjdfstest symlink with pkgbase package 2020-02-12 17:37:32 +00:00
posixshm posixshm: implement posix_fallocate(2) 2020-01-08 19:08:44 +00:00
sys Revert r357246 2020-01-29 22:37:01 +00:00
vfs vfs_lookup: Allow PATH_MAX-1 symlinks 2017-11-17 19:25:39 +00:00
vm Adjust tests after page fault changes in r352807 2019-09-29 15:17:58 +00:00
Makefile tests: Enable net tests 2020-02-13 14:09:09 +00:00
Makefile.depend
Makefile.inc Use MK_CHECK_USE_SANDBOX in tests/..., to deal with the fact that 2017-08-02 22:24:08 +00:00