mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-23 17:17:38 +00:00
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:
committed by
Christian Helmuth
parent
bc82cce72b
commit
c1b981ede4
@ -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())
|
||||
{ }
|
||||
};
|
||||
|
@ -36,6 +36,8 @@ struct Platform::Session : Genode::Session
|
||||
|
||||
static const char *service_name() { return "Platform"; }
|
||||
|
||||
enum { CAP_QUOTA = 2 };
|
||||
|
||||
virtual ~Session() { }
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user