Skip to contentSkip to conversation

READONLY_EXEC is a curious name

DISCUSSION Jamie Lokier 2 participants 3 messages Apr 14, 2004

lore
Share & tools
lore
#0 lore raw

This is not important.

PAGE_READONLY_EXEC is defined in <asm-x86_64/pgtable.h>.

Does anyone else think PAGE_READONLY_EXEC is an odd name for a set of flags which enables read _and_ execute permission? What about PAGE_READEXEC instead?

-- Jamie

#1 lore raw
Quoted 7 lines · On Wed, 14 Apr 2004 20:06:53 +0100 Jamie Lokier <[email protected]> wrote:

This is not important.

PAGE_READONLY_EXEC is defined in <asm-x86_64/pgtable.h>.

Does anyone else think PAGE_READONLY_EXEC is an odd name for a set of flags which enables read _and_ execute permission? What about PAGE_READEXEC instead?

It just follows the pattern there (default is with NX and _EXEC is the variant without NX). I don't care much either ways.

-Andi

#2 lore raw
Quoted 8 lines · Andi Kleen
Quoted 5 lines

PAGE_READONLY_EXEC is defined in <asm-x86_64/pgtable.h>.

Does anyone else think PAGE_READONLY_EXEC is an odd name for a set of flags which enables read _and_ execute permission? What about PAGE_READEXEC instead?

It just follows the pattern there (default is with NX and _EXEC is the variant without NX). I don't care much either ways.

I asked because I'm about to submit a patch to clean up the Alpha definitions and have to pick a name. I see parisc picked PAGE_EXECREAD for this.

-- Jamie