summaryrefslogtreecommitdiff
path: root/usr/src/uts
diff options
context:
space:
mode:
authorRichard Lowe <richlowe@richlowe.net>2021-12-02 15:15:52 -0600
committerRichard Lowe <richlowe@richlowe.net>2021-12-12 15:40:06 -0600
commit01355ae8e99e2965e664160bdd8ac9f0fdc1329c (patch)
treedbea1f257da6813eadfb9b9b4143d39b34ce73a4 /usr/src/uts
parent47c607a3073a2acd65c934fe1e6967b2aa0094d8 (diff)
downloadillumos-gate-01355ae8e99e2965e664160bdd8ac9f0fdc1329c.tar.gz
14283 ldd should not complain about non-executable shared objects
Reviewed by: Jason King <jason.brian.king@gmail.com> Reviewed by: Andy Fiddaman <andy@omnios.org> Reviewed by: Toomas Soome <tsoome@me.com> Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/uts')
-rw-r--r--usr/src/uts/common/os/grow.c21
1 files changed, 6 insertions, 15 deletions
diff --git a/usr/src/uts/common/os/grow.c b/usr/src/uts/common/os/grow.c
index de2a4f26c4..da53bce24e 100644
--- a/usr/src/uts/common/os/grow.c
+++ b/usr/src/uts/common/os/grow.c
@@ -30,7 +30,7 @@
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
-/* All Rights Reserved */
+/* All Rights Reserved */
#include <sys/types.h>
#include <sys/inttypes.h>
@@ -758,20 +758,11 @@ smmap_common(caddr_t *addrp, size_t len,
}
/*
- * XXX - Do we also adjust maxprot based on protections
- * of the vnode? E.g. if no execute permission is given
- * on the vnode for the current user, maxprot probably
- * should disallow PROT_EXEC also? This is different
- * from the write access as this would be a per vnode
- * test as opposed to a per fd test for writability.
- */
-
- /*
- * Verify that the specified protections are not greater than
- * the maximum allowable protections. Also test to make sure
- * that the file descriptor does allows for read access since
- * "write only" mappings are hard to do since normally we do
- * the read from the file before the page can be written.
+ * Verify that the specified protections are not greater than the
+ * maximum allowable protections. Also test to make sure that the
+ * file descriptor allows for read access since "write only" mappings
+ * are hard to do since normally we do the read from the file before
+ * the page can be written.
*/
if (((maxprot & uprot) != uprot) || (fp->f_flag & FREAD) == 0)
return (EACCES);