laforge submitted this change.

View Change


Approvals: laforge: Looks good to me, approved Jenkins Builder: Verified
ara_m: Permit encoding of empty AID (--aid '') in ARA-M rules

Encoding an empty AID-REF-DO (4F) is neccessary to achieve the meaning
described in "Secure Element Access Control - Public Release v1.0"
Table 6-1: "Empty: Indicates that the rules to be stored or retrieved
are associated with all SE applications not covered by a specific rule".

Change-Id: Iac6c3d78bc9ce36bac47589e5f7a0cc78e2efc38
---
M pySim/ara_m.py
1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/pySim/ara_m.py b/pySim/ara_m.py
index 68244d1..f05109b 100644
--- a/pySim/ara_m.py
+++ b/pySim/ara_m.py
@@ -348,7 +348,7 @@
"""Perform STORE DATA [Command-Store-REF-AR-DO] to store a (new) access rule."""
# REF
ref_do_content = []
- if opts.aid:
+ if opts.aid != None:
ref_do_content += [{'aid_ref_do': opts.aid}]
elif opts.aid_empty:
ref_do_content += [{'aid_ref_empty_do': None}]

To view, visit change 35721. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: Iac6c3d78bc9ce36bac47589e5f7a0cc78e2efc38
Gerrit-Change-Number: 35721
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge@osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge@osmocom.org>
Gerrit-MessageType: merged