put all privileges into a mask
****************************************************************************/
put all privileges into a mask
****************************************************************************/
combine 2 uint64_t structures and store the resulting set in mew_mask
****************************************************************************/
combine 2 uint64_t structures and store the resulting set in mew_mask
****************************************************************************/
}
/***************************************************************************
invert a given uint64_t and store the set in new_mask
****************************************************************************/
}
/***************************************************************************
invert a given uint64_t and store the set in new_mask
****************************************************************************/
check if 2 uint64_t structure are equal
****************************************************************************/
check if 2 uint64_t structure are equal
****************************************************************************/
}
/***************************************************************************
check if a uint64_t has any assigned privileges
****************************************************************************/
}
/***************************************************************************
check if a uint64_t has any assigned privileges
****************************************************************************/
Lookup the uint64_t value for a privilege name
*********************************************************************/
Lookup the uint64_t value for a privilege name
*********************************************************************/
{
int i;
for ( i=0; !se_priv_equal(&privs[i].se_priv, &se_priv_end); i++ ) {
if ( strequal( privs[i].name, name ) ) {
{
int i;
for ( i=0; !se_priv_equal(&privs[i].se_priv, &se_priv_end); i++ ) {
if ( strequal( privs[i].name, name ) ) {
dump an uint64_t structure to the log files
****************************************************************************/
dump an uint64_t structure to the log files
****************************************************************************/
- DEBUGADDC( dbg_cl, dbg_lvl,("uint64_t 0x%llx\n", (unsigned long long)*mask));
+ DEBUGADDC( dbg_cl, dbg_lvl,("uint64_t 0x%llx\n", (unsigned long long)*privilege_mask));
so we are guaranteed to find it in the list.
*********************************************************************/
so we are guaranteed to find it in the list.
*********************************************************************/
/*******************************************************************
*******************************************************************/
/*******************************************************************
*******************************************************************/
/*******************************************************************
*******************************************************************/
/*******************************************************************
*******************************************************************/
{
int i;
uint32 num_privs = count_all_privileges();
for ( i=0; i<num_privs; i++ ) {
if ( luid->low == privs[i].luid ) {
{
int i;
uint32 num_privs = count_all_privileges();
for ( i=0; i<num_privs; i++ ) {
if ( luid->low == privs[i].luid ) {
/*******************************************************************
*******************************************************************/
/*******************************************************************
*******************************************************************/