summaryrefslogtreecommitdiffstats
path: root/source/printing
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-01-17 15:23:11 +0000
committerGerald Carter <jerry@samba.org>2005-01-17 15:23:11 +0000
commit29cfdb008e8e3fa18b23e52f4a35fe5aa9944034 (patch)
treec28c9d1a9003e72eb41d12f7029b1b7ac8823278 /source/printing
parentc5e61b0f9bbc28b8eec5673ae6db2bfd78bd4a3b (diff)
downloadsamba-29cfdb008e8e3fa18b23e52f4a35fe5aa9944034.tar.gz
samba-29cfdb008e8e3fa18b23e52f4a35fe5aa9944034.tar.xz
samba-29cfdb008e8e3fa18b23e52f4a35fe5aa9944034.zip
r4805: Last planned change to the privileges infrastructure:
* rewrote the tdb layout of privilege records in account_pol.tdb (allow for 128 bits instead of 32 bit flags) * migrated to using SE_PRIV structure instead of the PRIVILEGE_SET structure. The latter is now used for parsing routines mainly. Still need to incorporate some client support into 'net' so for setting privileges. And make use of the SeAddUserPrivilege right.
Diffstat (limited to 'source/printing')
-rw-r--r--source/printing/nt_printing.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/printing/nt_printing.c b/source/printing/nt_printing.c
index a7513030bd5..d22ec935a39 100644
--- a/source/printing/nt_printing.c
+++ b/source/printing/nt_printing.c
@@ -5049,6 +5049,7 @@ BOOL print_access_check(struct current_user *user, int snum, int access_type)
const char *pname;
TALLOC_CTX *mem_ctx = NULL;
extern struct current_user current_user;
+ SE_PRIV se_printop = SE_PRINT_OPERATOR;
/* If user is NULL then use the current_user structure */
@@ -5057,7 +5058,7 @@ BOOL print_access_check(struct current_user *user, int snum, int access_type)
/* Always allow root or SE_PRINT_OPERATROR to do anything */
- if ( user->uid == 0 || user_has_privilege(user->nt_user_token, SE_PRINT_OPERATOR) ) {
+ if ( user->uid == 0 || user_has_privileges(user->nt_user_token, &se_printop ) ) {
return True;
}