diff options
author | Volker Lendecke <vl@samba.org> | 2022-12-02 10:06:31 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2022-12-05 15:06:32 +0000 |
commit | 7239d756290292f5056ea0235630e8413ef5960f (patch) | |
tree | d17855e80104eca1a57868871ddac0683b2388af /libcli | |
parent | f10f259eaebdb98f5e0827482e98f5abeb65e55c (diff) | |
download | samba-7239d756290292f5056ea0235630e8413ef5960f.tar.gz |
lib: Add symlink trust flags from dochelp
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: David Mulder <dmulder@samba.org>
Diffstat (limited to 'libcli')
-rw-r--r-- | libcli/smb/smb_constants.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libcli/smb/smb_constants.h b/libcli/smb/smb_constants.h index 876ea63f2b9..a08b1931277 100644 --- a/libcli/smb/smb_constants.h +++ b/libcli/smb/smb_constants.h @@ -624,4 +624,15 @@ enum csc_policy { */ #define SYMLINK_ERROR_TAG 0x4C4D5953 +/* + * Flags according to answer from Dochelp: + * https://lists.samba.org/archive/cifs-protocol/2022-November/003909.html + */ +#define SYMLINK_ADMIN 0x20000000 /* The symlink creator is an admin */ +#define SYMLINK_UNTRUSTED 0x10000000 /* The symlink creator is untrusted */ +#define SYMLINK_TRUST_UNKNOWN 0x00000000 /* The symlink creator is unknown/legacy */ + +#define SYMLINK_TRUST_MASK 0x30000000 /* Encodes the redirection trust level (maps to REDIRECTION_TRUST_LEVEL) */ +#define SYMLINK_TRUST_SHIFT 28 /* Bits to shift to convert to/from REDIRECTION_TRUST_LEVEL */ + #endif /* _SMB_CONSTANTS_H */ |