summaryrefslogtreecommitdiff
path: root/source3/auth/proto.h
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-05-10 09:19:46 +1000
committerJeremy Allison <jra@samba.org>2012-08-10 14:38:47 -0700
commit1c3c5e2156d9096f60bd53a96b88c2f1001d898a (patch)
treec20e6478e94e5894a20b5598f9c0d74363b2be12 /source3/auth/proto.h
parentd7515b6a8886b282995a2ed433db92835783c393 (diff)
downloadsamba-1c3c5e2156d9096f60bd53a96b88c2f1001d898a.tar.gz
samba-1c3c5e2156d9096f60bd53a96b88c2f1001d898a.tar.bz2
samba-1c3c5e2156d9096f60bd53a96b88c2f1001d898a.zip
s3-smbd: Create a shortcut for building the token of a user by SID for posix_acls
When a user owns a file, but does not have specific permissions on that file, we need to make up the user permissions. This change ensures that the first thing that we do is to look up the SID, and confirm it is a user. Then, we avoid the getpwnam() and directly create the token via the SID. Andrew Bartlett Signed-off-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/auth/proto.h')
-rw-r--r--source3/auth/proto.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/auth/proto.h b/source3/auth/proto.h
index e2f5a5787a..5b229f9ccb 100644
--- a/source3/auth/proto.h
+++ b/source3/auth/proto.h
@@ -204,6 +204,7 @@ NTSTATUS create_token_from_username(TALLOC_CTX *mem_ctx, const char *username,
char **found_username,
struct security_token **token);
bool user_in_group_sid(const char *username, const struct dom_sid *group_sid);
+bool user_sid_in_group_sid(const struct dom_sid *sid, const struct dom_sid *group_sid);
bool user_in_group(const char *username, const char *groupname);
struct passwd;
NTSTATUS make_server_info_pw(struct auth_serversupplied_info **server_info,