Annotate session interfaces with CAP_QUOTA

The new 'CAP_QUOTA' enum value denotes the capability quota to be
transferred from the client to the server at session-creation time.

Issue #2398
This commit is contained in:
Norman Feske
2017-05-07 22:03:25 +02:00
committed by Christian Helmuth
parent bc82cce72b
commit c1b981ede4
63 changed files with 193 additions and 45 deletions

View File

@ -26,7 +26,8 @@ struct Platform::Connection : Genode::Connection<Session>, Client
*/
Connection(Genode::Env &env)
:
Genode::Connection<Session>(env, session("ram_quota=16K")),
Genode::Connection<Session>(env, session("ram_quota=16K, cap_quota=%u",
CAP_QUOTA)),
Client(cap())
{ }
@ -39,7 +40,8 @@ struct Platform::Connection : Genode::Connection<Session>, Client
*/
Connection() __attribute__((deprecated))
:
Genode::Connection<Session>(session("ram_quota=16K")),
Genode::Connection<Session>(session("ram_quota=16K, cap_quota=%u",
CAP_QUOTA)),
Client(cap())
{ }
};

View File

@ -36,6 +36,8 @@ struct Platform::Session : Genode::Session
static const char *service_name() { return "Platform"; }
enum { CAP_QUOTA = 2 };
virtual ~Session() { }
/**