1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

libcli/security Remove 'always true' return from se_priv_put_all_privileges

Andrew Bartlett

Signed-off-by: Andrew Tridgell <tridge@samba.org>
This commit is contained in:
Andrew Bartlett 2010-09-04 09:16:23 +10:00
parent aefe60da8c
commit 6d2b1ef71d
3 changed files with 3 additions and 6 deletions

View File

@ -187,7 +187,7 @@ uint64_t sec_privilege_mask(enum sec_privilege privilege)
put all valid privileges into a mask
****************************************************************************/
bool se_priv_put_all_privileges(uint64_t *privilege_mask)
void se_priv_put_all_privileges(uint64_t *privilege_mask)
{
int i;
uint32_t num_privs = ARRAY_SIZE(privs);
@ -196,7 +196,6 @@ bool se_priv_put_all_privileges(uint64_t *privilege_mask)
for ( i=0; i<num_privs; i++ ) {
*privilege_mask |= privs[i].privilege_mask;
}
return true;
}
/*********************************************************************

View File

@ -54,7 +54,7 @@ uint64_t sec_privilege_mask(enum sec_privilege privilege);
put all privileges into a mask
****************************************************************************/
bool se_priv_put_all_privileges(uint64_t *privilege_mask);
void se_priv_put_all_privileges(uint64_t *privilege_mask);
/*********************************************************************
Lookup the uint64_t value for a privilege name

View File

@ -488,9 +488,7 @@ bool grant_all_privileges( const struct dom_sid *sid )
{
uint64_t mask;
if (!se_priv_put_all_privileges(&mask)) {
return False;
}
se_priv_put_all_privileges(&mask);
return grant_privilege_bitmap( sid, mask );
}