Skip to content

Commit e8030cb

Browse files
authored
fix: ensure /etc/openshell directory exists before chown in nemoclaw (#29)
1 parent b53684f commit e8030cb

File tree

2 files changed

+3
-13
lines changed

2 files changed

+3
-13
lines changed

sandboxes/nemoclaw/Dockerfile

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,6 @@ RUN npm install -g @grpc/grpc-js @grpc/proto-loader js-yaml
3030
# Fix @hono/node-server authorization bypass (GHSA-wc8c-qw6v-h7f6)
3131
RUN npm install -g @hono/node-server@1.19.11
3232

33-
# Allow the sandbox user to read the default policy (the startup script
34-
# copies it to a writable location; this chown covers non-Landlock envs)
35-
RUN chown -R sandbox:sandbox /etc/openshell
36-
3733
# Stage the NeMoClaw DevX extension source
3834
COPY nemoclaw-ui-extension/extension/ /opt/nemoclaw-devx/
3935

@@ -50,9 +46,9 @@ RUN set -e; \
5046
cd /opt/nemoclaw-devx && npm install --production; \
5147
UI_DIR="$(npm root -g)/openclaw/dist/control-ui"; \
5248
esbuild /opt/nemoclaw-devx/index.ts \
53-
--bundle \
54-
--format=esm \
55-
--outfile="$UI_DIR/assets/nemoclaw-devx.js"; \
49+
--bundle \
50+
--format=esm \
51+
--outfile="$UI_DIR/assets/nemoclaw-devx.js"; \
5652
HASH=$(md5sum "$UI_DIR/assets/nemoclaw-devx.js" | cut -c1-8); \
5753
sed -i "s|</head>|<link rel=\"stylesheet\" href=\"./assets/nemoclaw-devx.css?v=${HASH}\">\n</head>|" "$UI_DIR/index.html"; \
5854
sed -i "s|</head>|<script type=\"module\" src=\"./assets/nemoclaw-devx.js?v=${HASH}\"></script>\n</head>|" "$UI_DIR/index.html"; \

sandboxes/openclaw/policy.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,3 @@ network_policies:
125125
binaries:
126126
- { path: /usr/local/bin/claude }
127127
- { path: /usr/bin/gh }
128-
129-
130-
131-
inference:
132-
allowed_routes:
133-
- local

0 commit comments

Comments
 (0)