diff options
author | 2016-05-31 14:05:46 -0400 | |
---|---|---|
committer | 2016-06-01 19:21:58 +0000 | |
commit | db0cf7963b971ebb393d105a0a29fa7bd926521c (patch) | |
tree | 054988a44b4a68ad0e1b4470dfc566dc3e6dfd8a /vlib-api/vlibapi/api.h | |
parent | 8d9e80583fbb8ffb30e63153ef5b2b21c6b336fa (diff) |
VPP-83 Allow non-privileged clients to use the vpp binary API.
Use the command line argument "api-segment { uid <nnn> gid <nnn> }" to
configure shared memory segment file ownership. Defaults to uid = gid
= 0. Shared-memory segments are explicitly set to 0770 mode, aka
"rwxrwx---".
Change-Id: Ic5d596b68139add61e7de6ace035c57dfd030111
Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'vlib-api/vlibapi/api.h')
-rw-r--r-- | vlib-api/vlibapi/api.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vlib-api/vlibapi/api.h b/vlib-api/vlibapi/api.h index 1f45a05738c..419210f7056 100644 --- a/vlib-api/vlibapi/api.h +++ b/vlib-api/vlibapi/api.h @@ -134,6 +134,10 @@ typedef struct { /* vector of message ranges */ vl_api_msg_range_t *msg_ranges; + /* gid for the api shared memory region */ + int api_gid; + int api_uid; + /* Client-only data structures */ unix_shared_memory_queue_t *vl_input_queue; |