diff options
| author | Felix Fietkau | 2025-05-31 14:20:29 +0000 |
|---|---|---|
| committer | Felix Fietkau | 2025-05-31 14:20:31 +0000 |
| commit | 59d22013f9dd38f60b0f953534601532dd429c28 (patch) | |
| tree | 5a6a4a5fc0e994f8ab601efc851e852abc1baee4 | |
| parent | a3d6f1f59ff73cdb384ffde14049f841384968c9 (diff) | |
jail: make udebug socket optional
Do not fail the jail mount if it does not exist, since udebugd is
optional.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
| -rw-r--r-- | jail/fs.c | 3 | ||||
| -rw-r--r-- | jail/jail.c | 2 |
2 files changed, 3 insertions, 2 deletions
@@ -70,7 +70,8 @@ static int do_mount(const char *root, const char *orig_source, const char *targe assert(!(inner && !orig_source)); if (source && is_bind && stat(source, &s)) { - ERROR("stat(%s) failed: %m\n", source); + if (error) + ERROR("stat(%s) failed: %m\n", source); return error; } diff --git a/jail/jail.c b/jail/jail.c index bd15b47..2326ce7 100644 --- a/jail/jail.c +++ b/jail/jail.c @@ -2708,7 +2708,7 @@ int main(int argc, char **argv) break; case 'D': opts.namespace |= CLONE_NEWNS; - add_mount_bind(udebug, 0, -1); + add_mount_bind(udebug, 0, 0); break; case 'l': opts.namespace |= CLONE_NEWNS; |