svn commit: r259814 - stable/10/sys/fs/fifofs

Konstantin Belousov kib at FreeBSD.org
Tue Dec 24 07:25:50 UTC 2013


Author: kib
Date: Tue Dec 24 07:25:49 2013
New Revision: 259814
URL: http://svnweb.freebsd.org/changeset/base/259814

Log:
  MFC r259521:
  Do not allow O_EXEC opens for fifo, return EINVAL.

Modified:
  stable/10/sys/fs/fifofs/fifo_vnops.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/fs/fifofs/fifo_vnops.c
==============================================================================
--- stable/10/sys/fs/fifofs/fifo_vnops.c	Tue Dec 24 07:14:25 2013	(r259813)
+++ stable/10/sys/fs/fifofs/fifo_vnops.c	Tue Dec 24 07:25:49 2013	(r259814)
@@ -143,7 +143,7 @@ fifo_open(ap)
 	fp = ap->a_fp;
 	td = ap->a_td;
 	ASSERT_VOP_ELOCKED(vp, "fifo_open");
-	if (fp == NULL)
+	if (fp == NULL || (ap->a_mode & FEXEC) != 0)
 		return (EINVAL);
 	if ((fip = vp->v_fifoinfo) == NULL) {
 		error = pipe_named_ctor(&fpipe, td);


More information about the svn-src-stable-10 mailing list