site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com 220 #if 3777787 221 /* 222 * Since the hardware currently does not support writing without 223 * read-before-write, or execution-without-read, if the request is 224 * for write or execute access, we must imply read access as well; 225 * otherwise programs expecting this to work will fail to operate. 226 */ 227 if (prot & (VM_PROT_EXECUTE | VM_PROT_WRITE)) 228 prot |= VM_PROT_READ; 229 #endif /* radar 3777787 */ 230 380 if (fp->f_fglob->fg_flag & FREAD) 381 maxprot |= VM_PROT_READ; 382 else if (prot & PROT_READ) { 383 (void)vnode_put(vp); 384 error = EACCES; 385 goto bad; 386 } _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Terry Lambert