Possible permissions bug on NFSv3 kernel client
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
On Thu, 29 Apr 2004 19:50:06 +0200, you wrote in linux.kernel:
Quoted 5 lines
Quoted 2 lines
...so that the the MODIFY and EXTEND bits aren't set when writing to a block or character device.
Hmm... Why shouldn't the MODIFY bit at least be set if the user requested write access to the device?
It's somewhat of a mixed-up situation for device nodes exported via NFSv3. Permission bits are on the server, but the actual write does not happen via NFS (as v3 WRITE only works on regular files).
Signature · 2 lines
Ciao, Pascal
Quoted 11 lines · Pascal Schmidt
On Thu, 29 Apr 2004 19:50:06 +0200, you wrote in linux.kernel:
Quoted 5 lines
Quoted 2 lines
...so that the the MODIFY and EXTEND bits aren't set when writing to a block or character device.
Hmm... Why shouldn't the MODIFY bit at least be set if the user requested write access to the device?
It's somewhat of a mixed-up situation for device nodes exported via NFSv3. Permission bits are on the server, but the actual write does not happen via NFS (as v3 WRITE only works on regular files).
It's not "mixed up" at all: the permissions checking has to be done by the server, period.
All the file security information (the mode bits, owner uid, group gid, ACLs etc) that determine whether or not the open() should succeed are defined on the *server* not on the client. If the former is doing some form of mapping of those values (in particular if it is doing some form of root/uid/gid squashing) then the only way for the client to get it right is to make an ACCESS call.
The fact that the subsequent writes go to a device on the client is entirely irrelevant.
Cheers,
Trond