Add "uint32_t access_granted" to policy handles
commit35e6a0e618db99287d12092cd8048276ffdb2356
authorVolker Lendecke <vl@samba.org>
Sat, 18 Apr 2009 14:46:53 +0000 (18 16:46 +0200)
committerVolker Lendecke <vl@samba.org>
Sun, 19 Apr 2009 07:27:15 +0000 (19 09:27 +0200)
tree338ea009134ef536912b6ed4e43a59ad4266593a
parent9b3f2e69f772a12c661879109e0edcda6c365be4
Add "uint32_t access_granted" to policy handles

All policy handles have a mask of allowed operations attached that were
calculated at creation time, so they should carry this mask. This is the basis
for consolidating all our policy handle access checks.

If you want to do your own more complicated access checks further down, just
pass "0" to policy_handle_find.
source3/include/proto.h
source3/rpc_server/srv_lsa_hnd.c
source3/rpc_server/srv_samr_nt.c