Re: [Samba] Anyone can create empty files (v 3.5.11)

2011-10-04 Thread Dan Carpenter
Just a follow up incase someone else runs into this problem. It turns out this was a bug in the cifs driver. I submitted a patch to fix this. http://marc.info/?l=linux-cifsm=131715894203568w=2 regards, dan carpenter -- To unsubscribe from this list go to the following URL and read

Re: [Samba] Anyone can create empty files (v 3.5.11)

2011-09-26 Thread Dan Carpenter
to the directory, it could mask out the O_CREAT flag before sending the open() to the server. regards, dan carpenter -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba

Re: [Samba] Anyone can create empty files (v 3.5.11)

2011-09-25 Thread Dan Carpenter
On Sat, Sep 24, 2011 at 05:04:50PM +0900, TAKAHASHI Motonobu wrote: From: Dan Carpenter dan.carpen...@oracle.com Date: Fri, 23 Sep 2011 09:38:56 +0300 I've mounted my cifs partition with a username and password and to test whether I had my permissions right, I did: $ sudo su testuser

[Samba] Anyone can create empty files (v 3.5.11)

2011-09-23 Thread Dan Carpenter
can create empty files. This is because in smbd/open.c if the file doesn't exist and O_CREAT flag is set then it lets you open the file without checking smbd_check_open_rights(). Or am I doing something wrong? I'm using Debian testing (wheezy). regards, dan carpenter -- To unsubscribe from

[Samba] Did my email come through?

2011-09-22 Thread Dan Carpenter
I sent an email to the list on Monday before I joined and it got held up in moderation (non-member to a members-only list). I don't see my mail on the list archives but when I tried to remove it from the moderation queue it said it had already gone through. Odd. regards, dan carpenter