diff options
author | Andrew Bartlett <abartlet@samba.org> | 2010-08-30 13:04:27 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2010-09-11 18:46:09 +1000 |
commit | 3bb77516b841def60e08e50bafc37517dd9d3ae0 (patch) | |
tree | 6e2731a3ec26268648c42c09387c180b778f5cda /source3/registry | |
parent | b057867de3fbb423ef6afb9b7038ab99c83124d8 (diff) | |
download | samba-3bb77516b841def60e08e50bafc37517dd9d3ae0.tar.gz samba-3bb77516b841def60e08e50bafc37517dd9d3ae0.tar.bz2 samba-3bb77516b841def60e08e50bafc37517dd9d3ae0.zip |
s3-privs Convert from user_has_privileges() -> security_token_has_privilege()
This new call is available in the merged privileges code, and
takes an enum as the parameter, rather than a bitmask.
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'source3/registry')
-rw-r--r-- | source3/registry/reg_backend_smbconf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/registry/reg_backend_smbconf.c b/source3/registry/reg_backend_smbconf.c index a2bf506e52..b96c73b47b 100644 --- a/source3/registry/reg_backend_smbconf.c +++ b/source3/registry/reg_backend_smbconf.c @@ -60,7 +60,7 @@ static bool smbconf_reg_access_check(const char *keyname, uint32 requested, uint32 *granted, const struct security_token *token) { - if (!(user_has_privileges(token, &se_disk_operators))) { + if (!security_token_has_privilege(token, SEC_PRIV_DISK_OPERATOR)) { return False; } |