summaryrefslogtreecommitdiffstats
path: root/source4/libcli/security/privilege.c
Commit message (Collapse)AuthorAgeFilesLines
* libcli/security Move source4/ privileges code into the common libcli/securityAndrew Bartlett2010-09-111-309/+0
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-privs Add a lookup by index of privilagesAndrew Bartlett2010-09-111-0/+11
| | | | | | | | | Now that privileges are no longer given luid values sequentially, we need another way to look them up for enumeration. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* privs Add my CopyrightAndrew Bartlett2010-09-111-0/+1
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-privs Remove link between enum sec_privilege and the privilege bitmapAndrew Bartlett2010-09-111-17/+69
| | | | | | | | | | | This allows us to set the enum sec_privilege constants to the LUID values that are seen from windows, which we need to match, in order to preserve the support for the NT Print Migrator tool after a merge with the source3/ privileges code. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* Change uint_t to unsigned int in source4Matt Kraai2010-02-021-1/+1
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4: try to fix privileges implementation in order to pass the ↵Günther Deschner2009-05-201-1/+5
| | | | | | RPC-SAMR-USERS-PRIVILEGES test. Guenther
* r25554: Convert last instances of BOOL, True and False to the standard types.Jelmer Vernooij2007-10-101-5/+5
| | | | (This used to be commit 566aa14139510788548a874e9213d91317f83ca9)
* r25027: Fix more warnings.Jelmer Vernooij2007-10-101-0/+1
| | | | (This used to be commit 5085c53fcfade614e83d21fc2c1a5bc43bb2a729)
* r23792: convert Samba4 to GPLv3Andrew Tridgell2007-10-101-3/+2
| | | | | | There are still a few tidyups of old FSF addresses to come (in both s3 and s4). More commits soon. (This used to be commit fcf38a38ac691abd0fa51b89dc951a08e89fdafa)
* r14894: - add some 'const'Stefan Metzmacher2007-10-101-3/+3
| | | | | | | | - remove sid_active_in_token() was the same as security_token_has_sid() - rename some functions metze (This used to be commit 81390dcda50f53d61e70059fb33014de0d283dc5)
* r14891: fix a bug found by the ibm checkerStefan Metzmacher2007-10-101-8/+45
| | | | | | | | | | | | the problem was that we shift with <<= (privilege-1) and we called the function with privilege=0 add some checks to catch invalid privilege values and hide the mask representation in privilege.c metze (This used to be commit a69f000324764bcd4cf420f2ecba1aca788258e4)
* r14542: Remove librpc, libndr and libnbt from includes.hJelmer Vernooij2007-10-101-0/+1
| | | | (This used to be commit 51b4270513752d2eafbe77f9de598de16ef84a1f)
* r12608: Remove some unused #include lines.Jelmer Vernooij2007-10-101-1/+0
| | | | (This used to be commit 70e7449318aa0e9d2639c76730a7d1683b2f4981)
* r9240: - move struct security_token to the idl file, with this we canStefan Metzmacher2007-10-101-1/+1
| | | | | | | | | the ndr_pull/push/print functions for it in the ntacl-lsm module - fix compiler warnings in the ldap_encode_ndr_* code metze (This used to be commit 83d65d0d7ed9c240ad44aa2c881c1f07212bfda4)
* r4419: move security_token stuff to the libcli/security/Stefan Metzmacher2007-10-101-1/+1
| | | | | | | and debug privileges metze (This used to be commit c981808ed4cfa63c7ba7c4f9190b6b14f74bab40)
* r4196: - added server side code for lsa_LookupPrivDisplayNameAndrew Tridgell2007-10-101-24/+112
| | | | | | - added english descriptions of privileges. We should add other languages in the future. (This used to be commit 3eee8b7c13de3ffe7c5a87d6f1ebdcc66ff391eb)
* r4151: added privilege attribute handling on samdb.Andrew Tridgell2007-10-101-5/+13
| | | | | | | pvfs will now honor some privileges on ACLs, and it will be quite easy to add the checks for more privileges in the necessary places, by making calls to sec_privilege_check(). (This used to be commit 3549039d0fbc54f87ae679e7288b82b28713e487)
* r4150: - add fns for manipulating the privilege_mask in a security_tokenAndrew Tridgell2007-10-101-0/+24
| | | | | | - add the hooks in access_check that check the privilege bitmasks for SEC_STD_DELETE and SEC_FLAG_SYSTEM_SECURITY (This used to be commit 0fa3764edcabffe8f7d5e40f0097f97d0c4519c4)
* r4147: converted from NT_USER_TOKEN to struct security_tokenAndrew Tridgell2007-10-101-0/+84
this is mostly just a tidyup, but also adds the privilege_mask, which I will be using shortly in ACL checking. note that I had to move the definition of struct security_token out of security.idl as pidl doesn't yet handle arrays of pointers, and the usual workaround (to use a intermediate structure) would make things too cumbersome for this structure, especially given we never encode it to NDR. (This used to be commit 7b446af09b8050746bfc2c50e9d56aa94397cc1a)