3
#include "common/ceph_context.h"
4
#include "include/types.h"
5
#include "rgw/rgw_acl.h"
10
#define dout_subsys ceph_subsys_rgw
12
int main(int argc, char **argv) {
13
RGWACLXMLParser parser;
24
len = fread(buf, 1, sizeof(buf), stdin);
26
fprintf(stderr, "Read error\n");
31
parser.parse(buf, len, done);
37
RGWAccessControlPolicy *policy = (RGWAccessControlPolicy *)parser.find_first("AccessControlPolicy");
40
string id="79a59df900b949e55d96a1e698fbacedfd6e09d98eacf8f8d5218e7cd47ef2be";
41
dout(10) << hex << policy->get_perm(g_ceph_context, id, RGW_PERM_ALL) << dec << dendl;
45
cout << parser.get_xml() << endl;
50
RGWAccessControlPolicy newpol;
51
bufferlist::iterator iter = bl.begin();