const uint64_t se_restore = SE_RESTORE;
const uint64_t se_take_ownership = SE_TAKE_OWNERSHIP;
+#define NUM_SHORT_LIST_PRIVS 8
+
PRIVS privs[] = {
#if 0 /* usrmgr will display these twice if you include them. We don't
use them but we'll keep the bitmasks reserved in privileges.h anyways */
return the number of elements in the privlege array
*******************************************************************/
-int count_all_privileges( void )
+int num_privileges_in_short_list( void )
{
- return ARRAY_SIZE(privs);
+ return NUM_SHORT_LIST_PRIVS;
}
-
/*********************************************************************
Generate the struct lsa_LUIDAttribute structure based on a bitmask
The assumption here is that the privilege has already been validated
struct lsa_info *handle;
uint32 i;
uint32 enum_context = *r->in.resume_handle;
- int num_privs = count_all_privileges();
+ int num_privs = num_privileges_in_short_list();
struct lsa_PrivEntry *entries = NULL;
struct lsa_LUIDAttribute luid;