diff options
author | Jeremy Allison <jra@samba.org> | 2010-10-20 16:31:18 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2010-10-21 00:15:57 +0000 |
commit | e00c2b3cdf6faa03b6ffcf87dc677fdbdd381fe3 (patch) | |
tree | 4a4995eb0b7398bac357927efb5b84a9c0869c72 /libcli | |
parent | c0b9526aaf29442f85f62232e22aecfb484b1576 (diff) | |
download | samba-e00c2b3cdf6faa03b6ffcf87dc677fdbdd381fe3.tar.gz samba-e00c2b3cdf6faa03b6ffcf87dc677fdbdd381fe3.tar.bz2 samba-e00c2b3cdf6faa03b6ffcf87dc677fdbdd381fe3.zip |
Add code to implement SeSecurityPrivilege in net rpc rights, and in the
open and get/set NT security descriptor code.
Jeremy.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu Oct 21 00:15:57 UTC 2010 on sn-devel-104
Diffstat (limited to 'libcli')
-rw-r--r-- | libcli/security/privileges.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/libcli/security/privileges.c b/libcli/security/privileges.c index 5d4cf77490..57c485dbe6 100644 --- a/libcli/security/privileges.c +++ b/libcli/security/privileges.c @@ -40,7 +40,7 @@ /* The use of strcasecmp here is safe, all the comparison strings are ASCII */ #undef strcasecmp -#define NUM_SHORT_LIST_PRIVS 8 +#define NUM_SHORT_LIST_PRIVS 9 static const struct { enum sec_privilege luid; @@ -58,16 +58,13 @@ static const struct { {SEC_PRIV_PRINT_OPERATOR, SEC_PRIV_PRINT_OPERATOR_BIT, "SePrintOperatorPrivilege", "Manage printers"}, {SEC_PRIV_ADD_USERS, SEC_PRIV_ADD_USERS_BIT, "SeAddUsersPrivilege", "Add users and groups to the domain"}, {SEC_PRIV_DISK_OPERATOR, SEC_PRIV_DISK_OPERATOR_BIT, "SeDiskOperatorPrivilege", "Manage disk shares"}, + {SEC_PRIV_SECURITY, SEC_PRIV_SECURITY_BIT, "SeSecurityPrivilege", "System security"}, + /* The list from here on is not displayed in the code from * source3, and is after index NUM_SHORT_LIST_PRIVS for that * reason */ - {SEC_PRIV_SECURITY, - SEC_PRIV_SECURITY_BIT, - "SeSecurityPrivilege", - "System security"}, - {SEC_PRIV_SYSTEMTIME, SEC_PRIV_SYSTEMTIME_BIT, "SeSystemtimePrivilege", |