summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-09-26 00:05:03 +0000
committerJeremy Allison <jra@samba.org>2001-09-26 00:05:03 +0000
commit0f4281b9b4a4056e9e087deb15e60ea482af7a74 (patch)
tree209555a82bbba203434a9818785f780bdca15890 /source3/printing
parent6ddcd8a3bcef32694d9d753ff91cced71f5ca3a8 (diff)
downloadsamba-0f4281b9b4a4056e9e087deb15e60ea482af7a74.tar.gz
samba-0f4281b9b4a4056e9e087deb15e60ea482af7a74.tar.bz2
samba-0f4281b9b4a4056e9e087deb15e60ea482af7a74.zip
Added Elrond patch to make se_access_check use NT datastructures, not Samba.
Jeremy. (This used to be commit bca6419447e926e51aeecf3e484228f640cecb84)
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/nt_printing.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c
index 1a1c71fe39..58fc7e25ae 100644
--- a/source3/printing/nt_printing.c
+++ b/source3/printing/nt_printing.c
@@ -3691,7 +3691,8 @@ BOOL print_access_check(struct current_user *user, int snum, int access_type)
/* If user is NULL then use the current_user structure */
- if (!user) user = &current_user;
+ if (!user)
+ user = &current_user;
/* Always allow root or printer admins to do anything */
@@ -3740,7 +3741,7 @@ BOOL print_access_check(struct current_user *user, int snum, int access_type)
map_printer_permissions(secdesc->sec);
- result = se_access_check(secdesc->sec, user, access_type,
+ result = se_access_check(secdesc->sec, user->nt_user_token, access_type,
&access_granted, &status);
DEBUG(4, ("access check was %s\n", result ? "SUCCESS" : "FAILURE"));