Skip to contentSkip to conversation

read_file_perms vs mmap_read_file_perms

DISCUSSION Russell Coker 2 participants 3 messages Feb 9, 2019 – Feb 10, 2019

lore
Share & tools
lore
#0 lore raw

define(read_file_perms',{ getattr open read lock ioctl }') define(mmap_read_file_perms',{ getattr open map read ioctl }')

I think that the general expectation would be that mmap_read_file_perms is a superset of read_file_perms. Is there any reason why mmap_read_file_perms doesn't include lock permission? If not I think we should add it to avoid surprises.

Signature · 2 lines
My Main Blog         http://etbe.coker.com.au/
My Documents Blog    http://doc.coker.com.au/
#1 lore raw
Quoted 7 lines · Russell Coker

define(read_file_perms',{ getattr open read lock ioctl }') define(mmap_read_file_perms',{ getattr open map read ioctl }')

I think that the general expectation would be that mmap_read_file_perms is a superset of read_file_perms. Is there any reason why mmap_read_file_perms doesn't include lock permission? If not I think we should add it to avoid surprises.

You are correct, it should be a proper superset. However, my preference would be to go the other way and eliminate lock from read_file_perms, which is what I'm trying to do with mmap_read_file_perms not being a proper superset.

Signature · 1 line
Chris PeBenito
#2 lore raw

Now that we have just had a release it's a good time for changes that have the potential to break things. So removing lock now would be ok I guess.

Quoted 17 lines · Chris PeBenito
Quoted 4 lines · Russell Coker

define(read_file_perms',{ getattr open read lock ioctl }') define(mmap_read_file_perms',{ getattr open map read ioctl }')

I think that the general expectation would be that

mmap_read_file_perms is a

Quoted 1 line

superset of read_file_perms. Is there any reason why

mmap_read_file_perms

Quoted 1 line

doesn't include lock permission? If not I think we should add it to

avoid

Quoted 1 line

surprises.

You are correct, it should be a proper superset. However, my preference
would be to go the other way and eliminate lock from read_file_perms, which is what I'm trying to do with mmap_read_file_perms not being a proper superset.

Signature · 1 line
Sent from my Huawei Mate 9 with K-9 Mail.