From 277b8dcb887b89d7465085652bc00d7842be2792 Mon Sep 17 00:00:00 2001 From: Hans Rosenfeld Date: Wed, 17 Dec 2014 22:04:39 +0100 Subject: 5444 cannot exec from hsfs since 5405 Reviewed by: Richard Lowe Reviewed by: Keith Wesolowski Reviewed by: Robert Mustacchi Reviewed by: Gordon Ross Reviewed by: Josef 'Jeff' Sipek Approved by: Dan McDonald --- usr/src/uts/common/fs/hsfs/hsfs_vnops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/src/uts/common/fs/hsfs/hsfs_vnops.c b/usr/src/uts/common/fs/hsfs/hsfs_vnops.c index 5375f883ae..c4475ef2ea 100644 --- a/usr/src/uts/common/fs/hsfs/hsfs_vnops.c +++ b/usr/src/uts/common/fs/hsfs/hsfs_vnops.c @@ -1797,7 +1797,7 @@ hsfs_map( if (vp->v_flag & VNOMAP) return (ENOSYS); - if (prot & PROT_WRITE) + if ((prot & PROT_WRITE) && (flags & MAP_SHARED)) return (ENOSYS); if (off > HS_MAXFILEOFF || off < 0 || -- cgit v1.2.3