[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: more re: nfs openbsd setattr bug
- To: tech_(_at_)_openbsd_(_dot_)_org
- Subject: Re: more re: nfs openbsd setattr bug
- From: Han Boetes <han_(_at_)_mijncomputer_(_dot_)_nl>
- Date: Tue, 28 Mar 2006 10:27:48 +0159
- Mail-followup-to: tech_(_at_)_openbsd_(_dot_)_org
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
Visit your host, monkey.org