Questions about smbd option "strict rename"

Ralph Boehme rb at sernet.de
Sun Nov 22 13:56:34 UTC 2015


Hi Brian,

On Sat, Nov 21, 2015 at 12:16:40PM -0500, Brian Campbell wrote:
> On Fri, Nov 20, 2015 at 4:45 PM, Jeremy Allison <jra at samba.org> wrote:
> > How about we standardize on the:
> >
> >         if (!lp_posix_pathnames() &&
> >             lp_strict_rename(SNUM(conn)) &&
> >             have_file_open_below(fsp->conn, fsp->fsp_name))
> >         {
> >                 return NT_STATUS_ACCESS_DENIED;
> >         }
> >
> > behavior which does the traverse, and ignore
> > the half-assed per-process check (which means
> > we can remove the function file_find_subpath()) ?
> 
> Is the CIFS_UNIX_POSIX_PATHNAMES_CAP that enables lp_posix_pathnames
> set by the OS X client?

For SMB1: iirc yes.

> Are UNIX extensions supported in SMB2/3 yet?

No. There are plans and we had a meeting recently, next step is to
flesh out the protocol definition and maybe someone to work on a full
prototype. Richard played around with it, I have his patch here:

<https://git.samba.org/?p=slow/samba.git;a=log;h=refs/heads/smb2_unix_ext>

-Ralph

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de,mailto:kontakt@sernet.de



More information about the samba-technical mailing list