aboutsummaryrefslogtreecommitdiffstats
path: root/src/svm
diff options
context:
space:
mode:
Diffstat (limited to 'src/svm')
-rw-r--r--src/svm/svm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/svm/svm.c b/src/svm/svm.c
index afba54e74fc..7d98fbe936d 100644
--- a/src/svm/svm.c
+++ b/src/svm/svm.c
@@ -652,6 +652,10 @@ svm_map_region (svm_map_region_args_t * a)
return (0);
}
+ /* Reset ownership in case the client started first */
+ if (fchown (svm_fd, a->uid, a->gid) < 0)
+ clib_unix_warning ("segment chown [ok if client starts first]");
+
time_left = 20;
while (1)
{