diff options
author | Andrew Bartlett <abartlet@samba.org> | 2010-08-30 14:16:36 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2010-09-11 18:46:11 +1000 |
commit | 71832a404e5028c1c3933351c608a99e4fc80e42 (patch) | |
tree | 59b12413f7f2304c74d9c9506480fd7700b4e497 | |
parent | 6d78e11e17b80bc932e5f4fb1ff6b27909f405d0 (diff) | |
download | samba-71832a404e5028c1c3933351c608a99e4fc80e42.tar.gz samba-71832a404e5028c1c3933351c608a99e4fc80e42.tar.bz2 samba-71832a404e5028c1c3933351c608a99e4fc80e42.zip |
libcli/security Expose sec_privilege_mask()
Signed-off-by: Andrew Tridgell <tridge@samba.org>
-rw-r--r-- | libcli/security/privileges.c | 2 | ||||
-rw-r--r-- | libcli/security/privileges.h | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/libcli/security/privileges.c b/libcli/security/privileges.c index b15a4ecc1a..5c33f04693 100644 --- a/libcli/security/privileges.c +++ b/libcli/security/privileges.c @@ -171,7 +171,7 @@ static const struct { /* return a privilege mask given a privilege id */ -static uint64_t sec_privilege_mask(enum sec_privilege privilege) +uint64_t sec_privilege_mask(enum sec_privilege privilege) { int i; for (i=0;i<ARRAY_SIZE(privs);i++) { diff --git a/libcli/security/privileges.h b/libcli/security/privileges.h index 8bcb5235ec..40de9ef6ec 100644 --- a/libcli/security/privileges.h +++ b/libcli/security/privileges.h @@ -63,6 +63,11 @@ typedef struct { struct lsa_LUIDAttribute *set; } PRIVILEGE_SET; +/* + return a privilege mask given a privilege id +*/ +uint64_t sec_privilege_mask(enum sec_privilege privilege); + /*************************************************************************** copy an uint64_t structure ****************************************************************************/ |