]> git.ipfire.org Git - thirdparty/samba.git/commit
smbd: Implement fsctl_set_reparse_point
authorVolker Lendecke <vl@samba.org>
Fri, 2 Dec 2022 10:56:08 +0000 (11:56 +0100)
committerJeremy Allison <jra@samba.org>
Mon, 6 May 2024 20:55:37 +0000 (20:55 +0000)
commit8ace45e0da9dcfc660e83e9486646723b8eaa015
tree99407d8b6a8018514a98974ab81c43e75065d80c
parent6eba4b794f0bfa9b85dc7ca754a12169d7b89bd5
smbd: Implement fsctl_set_reparse_point

Store the data in the "user.SmbReparse" xattr. Only allow this on
regular files. Windows does it for directories too, but we can not
allow this: Setting a symlink reparse point in a xattr on a directory
would go unnoticed by our openat2-optimization. If someone really
needs this, we could have a VFS module disallowing openat2 and doing
the appropriate checks on every openat-call.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/util_reparse.c