API: client does not set root permissions on shm segment
@@ -515,7 +515,7 @@ vl_map_shmem (const char *region_name, int is_vlib)
svm_map_region_args_t _a, *a = &_a;
svm_region_t *vlib_rp, *root_rp;
api_main_t *am = &api_main;
- int i, rv;
+ int i;
struct timespec ts, tsrem;
char *vpe_api_region_suffix = "-vpe-api";
@@ -562,9 +562,7 @@ vl_map_shmem (const char *region_name, int is_vlib)
return -2;
}
close (tfd);
- rv = svm_region_init_chroot (am->root_path);
- if (rv)
- return rv;
+ svm_region_init_chroot_uid_gid (am->root_path, getuid (), getgid ());
}
if (a->root_path != NULL)
