Commit ae008d1
[rqd] Ensure logdir is owned by job user (#1742)
Failing to do so causes problems if other frames from the same job were
executed on docker, which may lead to the log dir to be owned by root.
This change attempts to change the logdir ownership prior to
initializing `RqdLogger`. Handling this internally on the initialization
logic would be preferred, but is not possible as the initialization
needs to run as the job user and the chown logic needs to happen on
permissionHigh mode.
---------
Signed-off-by: Diego Tavares <[email protected]>
Co-authored-by: Ramon Figueiredo <[email protected]>1 parent bc16c8e commit ae008d1
1 file changed
+17
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1402 | 1402 | | |
1403 | 1403 | | |
1404 | 1404 | | |
| 1405 | + | |
1405 | 1406 | | |
1406 | 1407 | | |
1407 | 1408 | | |
| |||
1420 | 1421 | | |
1421 | 1422 | | |
1422 | 1423 | | |
| 1424 | + | |
| 1425 | + | |
| 1426 | + | |
| 1427 | + | |
| 1428 | + | |
| 1429 | + | |
| 1430 | + | |
| 1431 | + | |
| 1432 | + | |
| 1433 | + | |
| 1434 | + | |
| 1435 | + | |
| 1436 | + | |
| 1437 | + | |
| 1438 | + | |
| 1439 | + | |
1423 | 1440 | | |
1424 | 1441 | | |
1425 | 1442 | | |
| |||
0 commit comments