From 16c75df7976003305f57885639cbc4df4a6a12cf Mon Sep 17 00:00:00 2001 From: Dave Barach Date: Tue, 31 May 2016 14:05:46 -0400 Subject: VPP-83 Allow non-privileged clients to use the vpp binary API. Use the command line argument "api-segment { uid gid }" 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 --- vlib-api/vlibapi/api.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'vlib-api/vlibapi/api.h') diff --git a/vlib-api/vlibapi/api.h b/vlib-api/vlibapi/api.h index fc2c30cfa0a..3c4b68dc006 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; -- cgit 1.2.3-korg