mei_rt2mei_rt2_fix_1
Last change
on this file since 20eaefe was
da73657,
checked in by Mei <mei@…>, 12 years ago
|
1) example for partial proof
|
-
Property mode set to
100755
|
File size:
430 bytes
|
Line | |
---|
1 | #!/usr/bin/env python |
---|
2 | |
---|
3 | """ |
---|
4 | cmd2: env ABAC_CN=1 keystore=`pwd` ./dump_db.py |
---|
5 | |
---|
6 | """ |
---|
7 | |
---|
8 | import os |
---|
9 | import ABAC |
---|
10 | |
---|
11 | ctxt = ABAC.Context() |
---|
12 | |
---|
13 | # Keystore is the directory containing the principal credentials. |
---|
14 | # Load existing principals and/or policy credentials |
---|
15 | if (os.environ.has_key("keystore")) : |
---|
16 | keystore=os.environ["keystore"] |
---|
17 | ctxt.load_directory(keystore) |
---|
18 | else: |
---|
19 | print("keystore is not set...") |
---|
20 | exit(1) |
---|
21 | |
---|
22 | ctxt.dump_yap_db() |
---|
23 | |
---|
24 | |
---|
Note: See
TracBrowser
for help on using the repository browser.