[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: more re: nfs openbsd setattr bug



Otto Moerbeek wrote:
> To demonstrate what I mean, here's an ugly diff, which makes the
> access check of setattr TOSERVER behave like utimes(NULL). Han,
> could you try this on your server? If it works, we at least know
> a bit more what is going on.

I applied your patch against the eh... second of march
snapshot. Now I get this:

~% cat test
#!/bin/sh
echo foo > /mnt/nfs/nowplaying
touch /mnt/nfs/nowplaying
~% l /mnt/nfs/nowplaying
-rw-rw-r-- 1 han nfs 0 mrt 28 10:22 /mnt/nfs/nowplaying
~% sudo -u bascuppen ./test
./test[2]: cannot create /mnt/nfs/nowplaying: Operation not permitted
~% # Now I chowned the file on the server.
~% l /mnt/nfs/nowplaying
-rw-rw-r-- 1 bascuppen nfs 0 mrt 28 10:22 /mnt/nfs/nowplaying
~% ./test                  
./test[2]: cannot create /mnt/nfs/nowplaying: Operation not permitted



# Han