ufssuspend(4): mark non-passable

This fixes long-standing issue where ufssuspend file descriptor could
leak over fork or be passed over unix domain socket, and then closing it
in the opener would not unsuspend the file system.

It should not affect the well-behaving growfs(8) utility, but makes the
userspace API safer on principle.

Reviewed by:	markj
Tested by:	pho (previous version)
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D60285
This commit is contained in:
Konstantin Belousov committed 2026-10-06 00:56:53 +03:00
1 parent 850d456292
commit 499901dd7a
1 file changed
+1
+1
View File
@@ -60,6 +60,7 @@ static struct cdevsw ffs_susp_cdevsw = {
.d_write = ffs_susp_rdwr,
.d_ioctl = ffs_susp_ioctl,
.d_name = "ffs_susp",
.d_flags = D_NONPASSABLE,
};
static struct cdev *ffs_susp_dev;