diff options
author | kib <kib@FreeBSD.org> | 2013-12-24 07:25:49 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2013-12-24 07:25:49 +0000 |
commit | d30d9d8d8738307b1f1b93f8e0e57d71136e9b97 (patch) | |
tree | b6952d56722439a637ddd4028d63ee8c1b3b1215 /sys/fs/fifofs | |
parent | 5c0abc1ae6cb448da4c42c15742060bec01b31f8 (diff) | |
download | FreeBSD-src-d30d9d8d8738307b1f1b93f8e0e57d71136e9b97.zip FreeBSD-src-d30d9d8d8738307b1f1b93f8e0e57d71136e9b97.tar.gz |
MFC r259521:
Do not allow O_EXEC opens for fifo, return EINVAL.
Diffstat (limited to 'sys/fs/fifofs')
-rw-r--r-- | sys/fs/fifofs/fifo_vnops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/fifofs/fifo_vnops.c b/sys/fs/fifofs/fifo_vnops.c index bdb1367..d3eb281 100644 --- a/sys/fs/fifofs/fifo_vnops.c +++ b/sys/fs/fifofs/fifo_vnops.c @@ -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); |