diff options
author | Jeremy Allison <jra@samba.org> | 2001-10-10 19:36:53 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-10-10 19:36:53 +0000 |
commit | 3b56239c51da3bb24d9ac1ee1442717f597c682a (patch) | |
tree | 000c4323fc54c7efbd71d53e0d9fb0626aeb50a7 | |
parent | c76bf8ed3275e217d1b691879153fe9137bcbe38 (diff) | |
download | samba-3b56239c51da3bb24d9ac1ee1442717f597c682a.tar.gz samba-3b56239c51da3bb24d9ac1ee1442717f597c682a.tar.xz samba-3b56239c51da3bb24d9ac1ee1442717f597c682a.zip |
Back-out the share acl fix. Not needed (Gerald has been telling porkies
again :-) :-).
Jeremy.
-rw-r--r-- | source/rpc_server/srv_srvsvc_nt.c | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/source/rpc_server/srv_srvsvc_nt.c b/source/rpc_server/srv_srvsvc_nt.c index f1dabd64a90..2ae4a738740 100644 --- a/source/rpc_server/srv_srvsvc_nt.c +++ b/source/rpc_server/srv_srvsvc_nt.c @@ -310,7 +310,6 @@ BOOL share_access_check(connection_struct *conn, int snum, uint16 vuid, uint32 d NT_USER_TOKEN *token = NULL; user_struct *vuser = get_valid_user_struct(vuid); BOOL ret = True; - BOOL is_root = False; mem_ctx = talloc_init(); if (mem_ctx == NULL) @@ -321,24 +320,12 @@ BOOL share_access_check(connection_struct *conn, int snum, uint16 vuid, uint32 d if (!psd) goto out; - if (vuser) { + if (vuser) token = vuser->nt_user_token; - if (vuser->uid == (uid_t)0) - is_root = True; - } else { + else token = conn->nt_user_token; - if (conn->uid == (uid_t)0) - is_root = True; - } - /* - * Root gets a free pass. - */ - - if (is_root) - ret = True; - else - ret = se_access_check(psd, token, desired_access, &granted, &status); + ret = se_access_check(psd, token, desired_access, &granted, &status); out: |