Re: [PATCH] smb/server: check destination is open when renaming

Ralph Boehme <[email protected]>
Newsgroups org.kernel.vger.linux-cifs
Message-ID <[email protected]>
Hi!

On 8/4/26 11:05 AM, ChenXiaoSong wrote:
> This seems to be the rule for determining whether there are any open 
> child files or subdirectories under the old directory of rename operation.

ah, crap, that was actually for POSIX deletion semantics, sorry for the 
confusion! :)

> For checking whether the new file of rename operation is open, there 
> does not seem to be a POSIX-specific rule.
hm, it seems this one is indeed missing. Good catch, thanks!

The behaviour should be:

- if there are one or more non-POSIX opens on the destination, MUST fail 
with STATUS_ACCESS_DENIED
- if there are only POSIX opens, the operation can proceed
OpenPGP_signature.asc (application/pgp-signature, 840 B)
-----BEGIN PGP SIGNATURE-----

wsF5BAABCAAjFiEE+uLGCIokJSBRxVnkqh6bcSY5nkYFAmpxtc4FAwAAAAAACgkQqh6bcSY5nkbQ
+A//crI5XlQ02c4z4sK/9HwTd7VaPYGKkn03MeWwbmSHkXToRzyVv7RL0J8lB9eJG1fuTDLXZbjY
LAFIgVY1u98BYRdh8Q+OEQoxu6hLNKFR11Z9WGF+A3s/0PpLVMNavixz3LvXKVNvRemjH+YZM9M3
4foqlAV5XQNA96bxI5/4aodPx4CFAbFroSpJ52zcrM881gbAnLa+wH6P0fiLGTjO8C0j5LoAENvn
LDh5lOAx8ggfvOxKtQQnISwMehvG3WUzdCMNbK+wd5bf3TU/OzZxH3yqbNt0x5wlbXpJK1NX8Hm3
Rt5tq3y9Sg0OKqB4XHUHVlnIiaHwEh+yRe91WA31jh20rYsuN6V7ULgvvcZFjd8CWQmzNQziJ/30
B56nk0d6+wNqylt/c5nTN3tAQEgXfT3hoakgv0krn/XwSiBn/N8SovnV2jDW6PRpuf0ckVgl8lr7
PB5GE2AczXcCIhvFVvzh441hgSGQMpVrIawquouCZic5pTxXjZWsW9oQE1JG7OmORpIyIF6Oj9Js
bja6iz6iGrwdlEQvsTeNIJeKx3NO4E7pzIvkW5b8hl/QEYJAycb5aM/KyXFR4YE+kvIltpUgg99u
Bbq9QQqx/jFO/Kw569rgn3lRCwOeLtDHzy14Ms4s57DwCkndmqeKUd1rL+pTarVBjmxnfkY+g1i5
+6I=
=UPSL
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.