[Bug 749786] New: Problem with samba-3.4.3 vfs module in sles-11(SP1) 32-bit.
https://bugzilla.novell.com/show_bug.cgi?id=749786 https://bugzilla.novell.com/show_bug.cgi?id=749786#c0 Summary: Problem with samba-3.4.3 vfs module in sles-11(SP1) 32-bit. Classification: openSUSE Product: openSUSE 11.4 Version: Final Platform: i386 OS/Version: SLES 11 Status: NEW Severity: Major Priority: P5 - None Component: Samba AssignedTo: samba-maintainers@SuSE.de ReportedBy: d_vesh@yahoo.com QAContact: samba-maintainers@SuSE.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.6) Gecko/2009020407 Iceweasel/3.0.6 (Debian-3.0.6-3) getting fsp->fsp_name value 'null' with samba-3.4.3 + SLES 11(32 bit) in samba-VFS module in VFS close operation. Reproducible: Always Steps to Reproduce: 1. create vfs object for samba-3.4.3 or even other versions of samba in sles-11. 2. try to get name of uploaded or downloaded file from samba-share in VFS-CLOSE operation. Actual Results: 1. You will receive name of file as 'null' in vfs_close operation instead of actual name of the file. Expected Results: 1. You will receive name of file as 'null' in vfs_close operation instead of actual name of the file. Following samba versions are also tried but getting the same problem. 1) samba-3.5.7 2) samba-3.5.12 3) samba-3.4.7 for sles-11(SP1) 32-bit. Installed other versions of samba in sles-11(SP1), and observed the same problem persist. The versions we tested were from the below links: ftp://ftp.sernet.de/pub/samba/3.4/sles/11/i386/samba3-3.4.15-42.suse111.i586.rpm and ftp://ftp.sernet.de/pub/samba/3.5/sles/11/i386/samba3-3.5.12-44.suse111.i586.rpm -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=749786
https://bugzilla.novell.com/show_bug.cgi?id=749786#c1
David Disseldorp
https://bugzilla.novell.com/show_bug.cgi?id=749786
https://bugzilla.novell.com/show_bug.cgi?id=749786#c2
Divesh Uppoor
Thanks for the report Divesh.
Do you know whether this is also the case in Samba 3.6.3, as shipped with SLES 11 SP2?
SMB Traffic Analyzer uses the same method to obtain the filename on close: 889 static int smb_traffic_analyzer_close(vfs_handle_struct *handle, \ 890 files_struct *fsp) 891 { 892 struct close_data s_data; 893 s_data.result = SMB_VFS_NEXT_CLOSE(handle, fsp); 894 DEBUG(10,("smb_traffic_analyzer_close: CLOSE: %s\n", 895 fsp_str_dbg(fsp))); 896 s_data.filename = fsp->fsp_name->base_name; 897 smb_traffic_analyzer_send_data(handle, 898 &s_data, 899 vfs_id_close); 900 return s_data.result; 901 }
@Holger have you run into this problem?
As a (very ugly) workaround for now you may wish to use readlink(), feeding it a /proc/self/fd/$FD path where $FD = fsp->fh->fd.
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=749786
https://bugzilla.novell.com/show_bug.cgi?id=749786#c3
--- Comment #3 from Divesh Uppoor
https://bugzilla.novell.com/show_bug.cgi?id=749786
https://bugzilla.novell.com/show_bug.cgi?id=749786#c4
--- Comment #4 from Holger Hetterich
https://bugzilla.novell.com/show_bug.cgi?id=749786
https://bugzilla.novell.com/show_bug.cgi?id=749786#c5
--- Comment #5 from Divesh Uppoor
Thanks for the report Divesh.
Do you know whether this is also the case in Samba 3.6.3, as shipped with SLES 11 SP2?
SMB Traffic Analyzer uses the same method to obtain the filename on close: 889 static int smb_traffic_analyzer_close(vfs_handle_struct *handle, \ 890 files_struct *fsp) 891 { 892 struct close_data s_data; 893 s_data.result = SMB_VFS_NEXT_CLOSE(handle, fsp); 894 DEBUG(10,("smb_traffic_analyzer_close: CLOSE: %s\n", 895 fsp_str_dbg(fsp))); 896 s_data.filename = fsp->fsp_name->base_name; 897 smb_traffic_analyzer_send_data(handle, 898 &s_data, 899 vfs_id_close); 900 return s_data.result; 901 }
@Holger have you run into this problem?
As a (very ugly) workaround for now you may wish to use readlink(), feeding it a /proc/self/fd/$FD path where $FD = fsp->fh->fd.
I already noticed that files_struct structure which has fsp_name member which is of type string, and not the structure so that we can access base_name in samba-3.4.3. According to above code as this one, s_data.filename = fsp->fsp_name->base_name; This is possible in samba-3.5.0, where fsp->fsp_name is structure so that we can access base_name. Even also tried accessing file name using fsp->fsp_name->base_name in samba-3.5.0, but same problem persist i.e getting filename value 'null'. But we need to work only on samba-3.4.3. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=749786
https://bugzilla.novell.com/show_bug.cgi?id=749786#c6
--- Comment #6 from Divesh Uppoor
https://bugzilla.novell.com/show_bug.cgi?id=749786
https://bugzilla.novell.com/show_bug.cgi?id=749786#c7
--- Comment #7 from James McDonough
Thanks for the report Divesh.
Do you know whether this is also the case in Samba 3.6.3, as shipped with SLES 11 SP2? On 64-bit 3.6.3, the filename is there when I debug vfs_full_audit.
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=749786
https://bugzilla.novell.com/show_bug.cgi?id=749786#c8
--- Comment #8 from James McDonough
I've seen it now on 3.4.3, SLE11SP1, 64-bit. fsp_name isn't null, but "" on close. Sorry, my mistake, it did not occur. I was simply trying to smbopen a
https://bugzilla.novell.com/show_bug.cgi?id=749786
https://bugzilla.novell.com/show_bug.cgi?id=749786#c9
--- Comment #9 from James McDonough
https://bugzilla.novell.com/show_bug.cgi?id=749786
https://bugzilla.novell.com/show_bug.cgi?id=749786#c10
James McDonough
https://bugzilla.novell.com/show_bug.cgi?id=749786
https://bugzilla.novell.com/show_bug.cgi?id=749786#c11
--- Comment #11 from Divesh Uppoor
On 3.6.3, it does contain the name, even when the VFS_CLOSE is invoked on a failed open attempt. Can you confirm that your failure case with 3.4.3 is on _all_ closes and not just closes occuring after failed opens?
My failure case with 3.4.3 is on _all_ closes and not just closes occuring after failed opens. I am unable to get filename in any case in vfs-close operation. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=749786
https://bugzilla.novell.com/show_bug.cgi?id=749786#c12
--- Comment #12 from James McDonough
(In reply to comment #10)
On 3.6.3, it does contain the name, even when the VFS_CLOSE is invoked on a failed open attempt. Can you confirm that your failure case with 3.4.3 is on _all_ closes and not just closes occuring after failed opens?
My failure case with 3.4.3 is on _all_ closes and not just closes occuring after failed opens. I am unable to get filename in any case in vfs-close operation.
I've run vfs_full_audit, and it's picking up the fsp->fsp_name with no trouble. Do you have stacked vfs modules here? please attach your smb.conf. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=749786
https://bugzilla.novell.com/show_bug.cgi?id=749786#c13
--- Comment #13 from Lars Müller
https://bugzilla.novell.com/show_bug.cgi?id=749786
https://bugzilla.novell.com/show_bug.cgi?id=749786#c14
--- Comment #14 from Divesh Uppoor
@Divesh: Is this issue solved for you or do you need more time to collect the requested information? We need some more time. we shall provide with the required information. Thank you.
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=749786
https://bugzilla.novell.com/show_bug.cgi?id=749786#c15
--- Comment #15 from Divesh Uppoor
https://bugzilla.novell.com/show_bug.cgi?id=749786
https://bugzilla.novell.com/show_bug.cgi?id=749786#c16
Divesh Uppoor
Created an attachment (id=484398) --> (http://bugzilla.novell.com/attachment.cgi?id=484398) [details] smb.conf
pls find attached is the smb.conf.
The above smb.conf is from ubuntu 10.10 which is working.Attached is the smb.conf from SLES -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=749786
https://bugzilla.novell.com/show_bug.cgi?id=749786#c17
--- Comment #17 from Divesh Uppoor
https://bugzilla.novell.com/show_bug.cgi?id=749786
https://bugzilla.novell.com/show_bug.cgi?id=749786#c
Lars Müller
https://bugzilla.novell.com/show_bug.cgi?id=749786
https://bugzilla.novell.com/show_bug.cgi?id=749786#c
Lars Müller
https://bugzilla.novell.com/show_bug.cgi?id=749786
https://bugzilla.novell.com/show_bug.cgi?id=749786#c18
James McDonough
https://bugzilla.novell.com/show_bug.cgi?id=749786
https://bugzilla.novell.com/show_bug.cgi?id=749786#c19
--- Comment #19 from Divesh Uppoor
I see no stacked modules. How are you building your module?
I would like to see the output of the shipped full_audit module, logging both open and close on success and failure. These will show the names.
Will you please elaborate how to take the output of the shipped full_audit module, logging both open and close on success and failure. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=749786
https://bugzilla.novell.com/show_bug.cgi?id=749786#c20
--- Comment #20 from James McDonough
https://bugzilla.novell.com/show_bug.cgi?id=749786
https://bugzilla.novell.com/show_bug.cgi?id=749786#c21
--- Comment #21 from Divesh Uppoor
https://bugzilla.novell.com/show_bug.cgi?id=749786
https://bugzilla.novell.com/show_bug.cgi?id=749786#c22
--- Comment #22 from Divesh Uppoor
https://bugzilla.novell.com/show_bug.cgi?id=749786
https://bugzilla.novell.com/show_bug.cgi?id=749786#c23
--- Comment #23 from Divesh Uppoor
from the man page for vfs_full_audit:
path = /data/records vfs objects = full_audit full_audit:prefix = %u|%I full_audit:success = open opendir full_audit:failure = all !open full_audit:facility = LOCAL7 full_audit:priority = ALERT
So, change success and failure options to "open close", and the others you can set as works best for your syslog.
Below I have attached two log files one which contains log of every operation and other which contains logs of only open and close operations. Those are outputs of the shipped full_audit module, logging on success and failure. Though I can see the names of files in vfs_full_audit log but I am unable to get names of downloaded and uploaded files in vfs close operation. I mean fsp->fsp_name value 'null' in vfs close operation. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=749786
https://bugzilla.novell.com/show_bug.cgi?id=749786#c24
James McDonough
participants (1)
-
bugzilla_noreply@novell.com