]>
git.saurik.com Git - apple/security.git/blob - ISACLProtectedItems/KeychainItemsAclTest.sh
3 # KechainItemsAclTest.sh
6 # Created by Vratislav Kužela on 22/08/14.
14 if [[ "$i" =~
"agrp=" ]]; then
16 elif [[ "$i" =~
"svce=" ]]; then
18 elif [[ "$i" =~
"op=create" ]]; then
20 elif [[ "$i" =~
"op=delete" ]]; then
25 if [ "$OPERATION" = "create" ]; then
26 security item
-a class
=genp
,svce
=$SVCE,agrp
=$AGRP,acct
=acct1
,accc
="ak"
27 security item
-a class
=genp
,svce
=$SVCE,agrp
=$AGRP,acct
=acct2
,accc
="ak;od:true;odel:true"
28 security item
-a class
=genp
,svce
=$SVCE,agrp
=$AGRP,acct
=acct3
,accc
="ak;od:cpo(DeviceOwnerAuthentication);odel:true"
29 security item
-a class
=genp
,svce
=$SVCE,agrp
=$AGRP,acct
=acct4
,accc
="akpu"
30 security item
-a class
=genp
,svce
=$SVCE,agrp
=$AGRP,acct
=acct5
,accc
="akpu;od:true;odel:true"
31 security item
-a class
=genp
,svce
=$SVCE,agrp
=$AGRP,acct
=acct6
,accc
="akpu;od:cpo(DeviceOwnerAuthentication);odel:true"
33 security item
-a class
=inet
,agrp
=$AGRP,acct
=acct1
,accc
="ak"
34 security item
-a class
=inet
,agrp
=$AGRP,acct
=acct2
,accc
="ak;od:true;odel:true"
35 security item
-a class
=inet
,agrp
=$AGRP,acct
=acct3
,accc
="ak;od:cpo(DeviceOwnerAuthentication);odel:true"
36 security item
-a class
=inet
,agrp
=$AGRP,acct
=acct4
,accc
="akpu"
37 security item
-a class
=inet
,agrp
=$AGRP,acct
=acct5
,accc
="akpu;od:true;odel:true"
38 security item
-a class
=inet
,agrp
=$AGRP,acct
=acct6
,accc
="akpu;od:cpo(DeviceOwnerAuthentication);odel:true"
40 security item
-a class
=cert
,agrp
=$AGRP,slnr
=slnr1
,accc
="ak"
41 security item
-a class
=cert
,agrp
=$AGRP,slnr
=slnr2
,accc
="ak;od:true;odel:true"
42 security item
-a class
=cert
,agrp
=$AGRP,slnr
=slnr3
,accc
="ak;od:cpo(DeviceOwnerAuthentication);odel:true"
43 security item
-a class
=cert
,agrp
=$AGRP,slnr
=slnr4
,accc
="akpu"
44 security item
-a class
=cert
,agrp
=$AGRP,slnr
=slnr5
,accc
="akpu;od:true;odel:true"
45 security item
-a class
=cert
,agrp
=$AGRP,slnr
=slnr6
,accc
="akpu;od:cpo(DeviceOwnerAuthentication);odel:true"
47 security item
-a class
=keys
,agrp
=$AGRP,klbl
=hash1
,accc
="ak"
48 security item
-a class
=keys
,agrp
=$AGRP,klbl
=hash2
,accc
="ak;od:true;odel:true"
49 security item
-a class
=keys
,agrp
=$AGRP,klbl
=hash3
,accc
="ak;od:cpo(DeviceOwnerAuthentication);odel:true"
50 security item
-a class
=keys
,agrp
=$AGRP,klbl
=hash4
,accc
="akpu"
51 security item
-a class
=keys
,agrp
=$AGRP,klbl
=hash5
,accc
="akpu;od:true;odel:true"
52 security item
-a class
=keys
,agrp
=$AGRP,klbl
=hash6
,accc
="akpu;od:cpo(DeviceOwnerAuthentication);odel:true"
54 elif [ "$OPERATION" = "delete" ]; then
56 security item
-D class
=genp
,agrp
=$AGRP
57 security item
-D class
=inet
,agrp
=$AGRP
58 security item
-D class
=cert
,agrp
=$AGRP
59 security item
-D class
=keys
,agrp
=$AGRP