opnsense-src/sys/fs
Olivier Certner 8c767de732
nfs: Fallback to GID_NOGROUP on no groups
We cannot unconditionally access nfsd's VNET variables in
'sys/kern/vfs_export.c' nor 'sys/fs/nfsserver/nfs_nfsdsubs.c', as they
may not have been compiled in depending on build options.

So, forget about the extra mile of using the configured default group
and use the hardcoded GID_NOGROUP (which differs only on systems running
nfsuserd(8) and with a non-default GID for their "nogroup" group).

Reported by:    rpokala, bapt (MINIMAL compile breakup)
Reported by:    cy, David Wolfskill (panics caused by mountd(8))
Approved by:    markj (mentor)
Fixes:          cfbe7a62dc62 ("nfs, rpc: Ensure kernel credentials have at least one group")

(cherry picked from commit 5169d4307eb9c8b7bb0bd46d600012bcc12cbdae)

Approved by:    markj (mentor)
2024-11-15 11:47:43 +01:00
..
autofs sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
cd9660 cd9660: Add support for mask,dirmask,uid,gid options 2024-04-08 10:25:46 -07:00
cuse sys: Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:24 -06:00
deadfs sys: Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:18 -06:00
devfs devfs_allocv(): style 2024-05-19 03:57:54 +03:00
ext2fs Fix build with gcc12. 2023-10-31 08:59:28 -07:00
fdescfs Fix MNT_IGNORE for devfs, fdescfs and nullfs 2024-04-22 15:48:15 +02:00
fifofs sys: Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:18 -06:00
fuse fusefs: fix an uninitialized memory access in fuse_vnop_deallocate 2024-10-10 12:48:39 -06:00
mntfs sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
msdosfs msdosfs: return ENOENT if looking up invalid name for OPEN or DELETE 2024-09-01 03:53:36 +03:00
nfs nfs: Fallback to GID_NOGROUP on no groups 2024-11-15 11:47:43 +01:00
nfsclient nfs: trivial typo fix 2024-10-29 16:33:33 -04:00
nfsserver nfs, rpc: Ensure kernel credentials have at least one group 2024-11-15 11:47:43 +01:00
nullfs nullfs: Show correct exported flag. 2024-04-22 15:48:15 +02:00
procfs procfs: ensure that RLIMIT_IDENT is properly updated when a limit is added 2024-10-05 10:08:53 +03:00
pseudofs pseudofs: fix off by one in hash iteration in pfs_purge 2023-11-24 17:22:15 +00:00
smbfs Add vnode_pager_clean_{a,}sync(9) 2024-01-18 02:51:33 +02:00
tarfs tarfs: Implement VOP_BMAP 2024-04-15 10:06:12 -04:00
tmpfs tmpfs_destroy_vobject(): clear v_object under the object lock 2024-05-19 03:57:54 +03:00
udf udf: Stop checking for failures from malloc(M_WAITOK) 2024-09-30 12:44:15 +08:00
unionfs unionfs_lookup(): fix wild accesses to vnode private data 2024-04-27 12:42:36 -05:00