Octopus: Add ability to set and get records by id capability.
authorRaphael Fuchs <fuchs.raphael@gmail.com>
Tue, 25 Jun 2013 20:47:50 +0000 (22:47 +0200)
committerRaphael Fuchs <fuchs.raphael@gmail.com>
Tue, 25 Jun 2013 20:47:50 +0000 (22:47 +0200)
commit1af1ade75b5837e103fd019cf7729bd996b1ea9c
tree37260fcbfb146d649c795dbada2c6a11fdad2249
parent697ff67b11f789efaee8d8503196530c79c5e709
Octopus: Add ability to set and get records by id capability.

The intent with this patch is that only someone possesing a certain id cap
can retrieve records that were stored with this id cap.

To this end, two new functions were added to the client interface of octopus:

* oct_set_with_idcap(struct capref idcap, const char *attributes, ...)
  Sets a record using the id capability as the key/name of the record.

* oct_get_with_idcap(char **data, struct capref idcap)
  Retrieves a record using the id capability as the key/name.

Note that octopus and the SKB do not support dedicated namespaces atm.
Therefore a record saved with oct_set_with_idcap() could be retrieved by
oct_get().

Moreover, format octopus.if to 80 columns.
errors/errno.fugu
if/octopus.if
include/octopus/getset.h
include/octopus_server/service.h
lib/octopus/client/getset.c
lib/octopus/server/init.c
lib/octopus/server/service.c
usr/tests/octopus/Hakefile
usr/tests/octopus/d2getset_idcap.c [new file with mode: 0644]