Displaying 20 results from an estimated 26 matches for "file_share_delete".
2007 Feb 05
0
[SAMBA-SECURITY] CVE-2007-0452: Potential DoS against smbd in Samba 3.0.6 - 3.0.23d
...mba-3.0.23d/source/smbd/nttrans.c samba/source/smbd/nttrans.c
--- samba-3.0.23d/source/smbd/nttrans.c 2006-06-23 08:16:49.000000000 -0500
+++ samba/source/smbd/nttrans.c 2007-01-30 15:00:45.000000000 -0600
@@ -664,7 +664,7 @@
if (lp_acl_check_permissions(SNUM(conn)) && (share_access & FILE_SHARE_DELETE)
&& (access_mask & DELETE_ACCESS)) {
#endif
- status = can_delete(conn, fname, file_attributes, bad_path, True);
+ status = can_delete(conn, fname, file_attributes, bad_path, True, False);
/* We're only going to fail here if it's access denied, as that's the...
2007 Feb 05
0
[SAMBA-SECURITY] CVE-2007-0452: Potential DoS against smbd in Samba 3.0.6 - 3.0.23d
...mba-3.0.23d/source/smbd/nttrans.c samba/source/smbd/nttrans.c
--- samba-3.0.23d/source/smbd/nttrans.c 2006-06-23 08:16:49.000000000 -0500
+++ samba/source/smbd/nttrans.c 2007-01-30 15:00:45.000000000 -0600
@@ -664,7 +664,7 @@
if (lp_acl_check_permissions(SNUM(conn)) && (share_access & FILE_SHARE_DELETE)
&& (access_mask & DELETE_ACCESS)) {
#endif
- status = can_delete(conn, fname, file_attributes, bad_path, True);
+ status = can_delete(conn, fname, file_attributes, bad_path, True, False);
/* We're only going to fail here if it's access denied, as that's the...
2024 Mar 16
1
samba allows rename to a locked file (from linux cifs mount)
...nabling strict renames does not change anything.? Yes it prevents from
> renaming a directory if a file is open inside.? But not renaming a plain
> file which is locked.
oh, you mean just rename a plain file that is currently opened by some
client? That is possible as long as all opens pass FILE_SHARE_DELETE.
What kind of "lock" where you referring at in your initial mail?
-slow
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba....
2018 Mar 27
0
[pre-RFC] Data races in concurrent ThinLTO processes
...time?
>
> Solution:
> Solutions #1, #2 and #3 for problem #3 will take care of problem #4.
>
>
> (Potential) problem #5:
> The implementation of the function ‘rename’ on Windows used by ThinLTO heavily depends on the function CreateFileW or, to be more exact, on its flag FILE_SHARE_DELETE being supported and working correctly on *all* the file systems that can be mounted on Windows. Is the FILE_SHARE_DELETE flag supported on all non-native Windows file systems that we care about? Is it supported on WINE? On FAT32?
>
> If the flag FILE_SHARE_DELETE is not supported, the ‘rena...
2018 Mar 27
1
[pre-RFC] Data races in concurrent ThinLTO processes
...to rename to the same file at the same time?
Solution:
Solutions #1, #2 and #3 for problem #3 will take care of problem #4.
(Potential) problem #5:
The implementation of the function ‘rename’ on Windows used by ThinLTO heavily depends on the function CreateFileW or, to be more exact, on its flag FILE_SHARE_DELETE being supported and working correctly on *all* the file systems that can be mounted on Windows. Is the FILE_SHARE_DELETE flag supported on all non-native Windows file systems that we care about? Is it supported on WINE? On FAT32?
If the flag FILE_SHARE_DELETE is not supported, the ‘rename’ fails,...
2018 Mar 27
2
[pre-RFC] Data races in concurrent ThinLTO processes
...gt;
> *Solution:*
> Solutions #1, #2 and #3 for problem #3 will take care of problem #4.
>
>
> *(Potential) problem #5:*
> The implementation of the function ‘rename’ on Windows used by ThinLTO
> heavily depends on the function CreateFileW or, to be more exact, on its
> flag FILE_SHARE_DELETE being supported and working correctly on *all* the
> file systems that can be mounted on Windows. Is the FILE_SHARE_DELETE flag
> supported on all non-native Windows file systems that we care about? Is it
> supported on WINE? On FAT32?
>
> If the flag FILE_SHARE_DELETE is not support...
2018 Mar 22
4
[pre-RFC] Data races in concurrent ThinLTO processes
...e to the same file at the same time?
Solution:
Solutions #1, #2 and #3 for problem #3 will take care of problem #4.
(Potential) problem #5:
The implementation of the function 'rename' on Windows used by ThinLTO heavily depends on the function CreateFileW or, to be more exact, on its flag FILE_SHARE_DELETE being supported and working correctly on *all* the file systems that can be mounted on Windows. Is the FILE_SHARE_DELETE flag supported on all non-native Windows file systems that we care about? Is it supported on WINE? On FAT32?
If the flag FILE_SHARE_DELETE is not supported, the 'rename'...
2018 Mar 27
4
[pre-RFC] Data races in concurrent ThinLTO processes
...to rename to the same file at the same time?
Solution:
Solutions #1, #2 and #3 for problem #3 will take care of problem #4.
(Potential) problem #5:
The implementation of the function ‘rename’ on Windows used by ThinLTO heavily depends on the function CreateFileW or, to be more exact, on its flag FILE_SHARE_DELETE being supported and working correctly on *all* the file systems that can be mounted on Windows. Is the FILE_SHARE_DELETE flag supported on all non-native Windows file systems that we care about? Is it supported on WINE? On FAT32?
If the flag FILE_SHARE_DELETE is not supported, the ‘rename’ fails,...
2018 Mar 27
0
[pre-RFC] Data races in concurrent ThinLTO processes
...olution:
>> Solutions #1, #2 and #3 for problem #3 will take care of problem #4.
>>
>>
>> (Potential) problem #5:
>> The implementation of the function ‘rename’ on Windows used by ThinLTO heavily depends on the function CreateFileW or, to be more exact, on its flag FILE_SHARE_DELETE being supported and working correctly on *all* the file systems that can be mounted on Windows. Is the FILE_SHARE_DELETE flag supported on all non-native Windows file systems that we care about? Is it supported on WINE? On FAT32?
>>
>> If the flag FILE_SHARE_DELETE is not supported, t...
2018 Mar 22
0
[pre-RFC] Data races in concurrent ThinLTO processes
...time?
>
> Solution:
> Solutions #1, #2 and #3 for problem #3 will take care of problem #4.
>
>
> (Potential) problem #5:
> The implementation of the function ‘rename’ on Windows used by ThinLTO heavily depends on the function CreateFileW or, to be more exact, on its flag FILE_SHARE_DELETE being supported and working correctly on *all* the file systems that can be mounted on Windows. Is the FILE_SHARE_DELETE flag supported on all non-native Windows file systems that we care about? Is it supported on WINE? On FAT32?
>
> If the flag FILE_SHARE_DELETE is not supported, the ‘rena...
2018 Mar 27
0
[pre-RFC] Data races in concurrent ThinLTO processes
...> Solutions #1, #2 and #3 for problem #3 will take care of problem #4.
>
>
>
>
>
> *(Potential) problem #5:*
>
> The implementation of the function ‘rename’ on Windows used by ThinLTO
> heavily depends on the function CreateFileW or, to be more exact, on its
> flag FILE_SHARE_DELETE being supported and working correctly on *all* the
> file systems that can be mounted on Windows. Is the FILE_SHARE_DELETE flag
> supported on all non-native Windows file systems that we care about? Is it
> supported on WINE? On FAT32?
>
>
>
> If the flag FILE_SHARE_DELETE is n...
2024 Mar 16
1
samba allows rename to a locked file (from linux cifs mount)
16.03.2024 20:11, Ralph Boehme wrote:
> On 3/16/24 14:18, Michael Tokarev wrote:
>> So I'm trying to go exactly the opposite route: I'm mounting a samba
>> share on linux (with cifs, see $subject).
>
> ah, missed that. Had read it as if you were acting on the Samba server directly.
>
> This smells like "strict rename" isn't enabled ? it isn't
2005 Jan 06
0
Some thoughts on win32-changenotify
...9;'t figure out how to read back out of the buffer (nor am I exactly
sure what to pass as a buffer in the first place).
Here''s the basic approach.
// Get a handle to the directory.
hDir = CreateFile(
lpPathName,
FILE_LIST_DIRECTORY,
FILE_SHARE_READ|FILE_SHARE_WRITE|FILE_SHARE_DELETE,
NULL,
OPEN_EXISTING,
FILE_FLAG_BACKUP_SEMANTICS,
NULL
);
if(hDir == INVALID_HANDLE_VALUE) {
rb_raise(cChangeNotifyError,ErrorDescription(GetLastError()));
}
if(!ReadDirectoryChangesW(
hDir,
Buf,
sizeof(Buf),
bWatchSubtree,...
2005 Jan 20
1
ChangeNotify help wanted
Hi all,
I''ve checked in some code to win32-changenotify. Unfortunately, it
doesn''t work right. I need some help. I don''t understand what,
exactly, I''m supposed to pass to ReadDirectoryChangesW() for the 2nd
argument, nor how to read the data back out.
There''s also a WCHAR issue that needs to be worked out with regards to
the FileName
2003 Sep 24
0
CreateFile for EXE images vs other files
This question isn't directly Samba related, but Samba has helped me figure out part of the problem. When I CreateFile on an existing file like so:
CreateFile(FileName, GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_DELETE, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
Samba shows that I have the file opened with this type of lock
DENY_NONE 0x20089 RDONLY
When the file is locked in this manner, I am unable to rename the file.
However, Windows launches executables over Samba shares with the lock:
DENY_W...
2018 Mar 27
2
[pre-RFC] Data races in concurrent ThinLTO processes
...to rename to the same file at the same time?
Solution:
Solutions #1, #2 and #3 for problem #3 will take care of problem #4.
(Potential) problem #5:
The implementation of the function ‘rename’ on Windows used by ThinLTO heavily depends on the function CreateFileW or, to be more exact, on its flag FILE_SHARE_DELETE being supported and working correctly on *all* the file systems that can be mounted on Windows. Is the FILE_SHARE_DELETE flag supported on all non-native Windows file systems that we care about? Is it supported on WINE? On FAT32?
If the flag FILE_SHARE_DELETE is not supported, the ‘rename’ fails,...
2020 May 09
1
Win7 clients problem after upgrading samba file server to 4.12 on Arch
Am 5/9/20 um 3:32 PM schrieb Ralph Boehme via samba:
> I have a WIP fix for master, can you give it a whirl?
here it is.
-slow
--
Ralph Boehme, Samba Team https://samba.org/
Samba Developer, SerNet GmbH https://sernet.de/en/samba/
GPG-Fingerprint FAE2C6088A24252051C559E4AA1E9B7126399E46
-------------- next part --------------
A non-text attachment was scrubbed...
Name:
2018 Mar 27
0
[pre-RFC] Data races in concurrent ThinLTO processes
...> Solutions #1, #2 and #3 for problem #3 will take care of problem #4.
>
>
>
>
>
> *(Potential) problem #5:*
>
> The implementation of the function ‘rename’ on Windows used by ThinLTO
> heavily depends on the function CreateFileW or, to be more exact, on its
> flag FILE_SHARE_DELETE being supported and working correctly on *all* the
> file systems that can be mounted on Windows. Is the FILE_SHARE_DELETE flag
> supported on all non-native Windows file systems that we care about? Is it
> supported on WINE? On FAT32?
>
>
>
> If the flag FILE_SHARE_DELETE is n...
2024 Mar 16
1
samba allows rename to a locked file (from linux cifs mount)
...names does not change anything.? Yes it prevents from
>> renaming a directory if a file is open inside.? But not renaming a plain
>> file which is locked.
>
> oh, you mean just rename a plain file that is currently opened by some client? That is possible as long as all opens pass FILE_SHARE_DELETE. What kind
> of "lock" where you referring at in your initial mail?
Exactly, just a plain file. For example, an executable (.exe) file
which is currently running by some windows client, like this
(from smbstatus):
Locked files:
Pid User(ID) DenyMode Access R/W...
2018 Mar 27
1
[pre-RFC] Data races in concurrent ThinLTO processes
...to rename to the same file at the same time?
Solution:
Solutions #1, #2 and #3 for problem #3 will take care of problem #4.
(Potential) problem #5:
The implementation of the function ‘rename’ on Windows used by ThinLTO heavily depends on the function CreateFileW or, to be more exact, on its flag FILE_SHARE_DELETE being supported and working correctly on *all* the file systems that can be mounted on Windows. Is the FILE_SHARE_DELETE flag supported on all non-native Windows file systems that we care about? Is it supported on WINE? On FAT32?
If the flag FILE_SHARE_DELETE is not supported, the ‘rename’ fails,...