aboutsummaryrefslogtreecommitdiff
path: root/helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'helper.c')
-rw-r--r--helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/helper.c b/helper.c
index e72d39f..7f2abd7 100644
--- a/helper.c
+++ b/helper.c
@@ -106,7 +106,7 @@ struct tm_request req_filecreate(const struct trusted_module *tm,
req.counter = 0;
/* construct ACL with a single element (the user, with full access) */
- struct iomt_node acl_node = (struct iomt_node) { 1, 1, u64_to_hash(3) };
+ struct iomt_node acl_node = (struct iomt_node) { user_id, user_id, u64_to_hash(3) };
req.val = merkle_compute(hash_node(&acl_node), NULL, NULL, 0);
hash_t one = u64_to_hash(1);