mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 11:25:21 +01:00
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:
1 parent
850d456292
commit
499901dd7a
1 file changed
+1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user