Merge pull request #950 from mssola/raw-exec-user

client: added the "user" option to tasks
This commit is contained in:
Alex Dadgar
2016-03-24 08:57:13 -07:00
20 changed files with 274 additions and 8 deletions

View File

@@ -176,7 +176,7 @@ func (d *JavaDriver) Start(ctx *ExecContext, task *structs.Task) (DriverHandle,
Args: args,
FSIsolation: true,
ResourceLimits: true,
User: cstructs.DefaultUnpriviledgedUser,
User: getExecutorUser(task),
}, executorCtx)
if err != nil {
pluginClient.Kill()