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

@ -29,7 +29,8 @@ struct Genode::Rm_connection : Connection<Rm_session>, Rm_session_client
*/
Rm_connection(Env &env)
:
Connection<Rm_session>(env, session(env.parent(), "ram_quota=%u", RAM_QUOTA)),
Connection<Rm_session>(env, session(env.parent(), "ram_quota=%u, cap_quota=%u",
RAM_QUOTA, CAP_QUOTA)),
Rm_session_client(cap())
{ }
@ -42,7 +43,7 @@ struct Genode::Rm_connection : Connection<Rm_session>, Rm_session_client
*/
Rm_connection() __attribute__((deprecated))
:
Connection<Rm_session>(session("ram_quota=%u", RAM_QUOTA)),
Connection<Rm_session>(session("ram_quota=%u, cap_quota=%u", RAM_QUOTA, CAP_QUOTA)),
Rm_session_client(cap())
{ }
};