Skip to content

Commit af02a23

Browse files
committed
cidbg
1 parent 75b7231 commit af02a23

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

.github/workflows/ci.yml

+6-5
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,8 @@ jobs:
266266

267267
- name: Configure python3
268268
run: |
269-
sudo ./configure python --config=python3-config
269+
sudo ./configure python --config=${Python_ROOT_DIR}/bin/python3-config --lib-path=$LD_LIBRARY_PATH
270+
cat build/include/nxt_python3_mounts.h
270271
if: steps.metadata.outputs.module == 'python'
271272

272273
- name: Make python3
@@ -351,10 +352,10 @@ jobs:
351352
namei -l ${{ github.workspace }}
352353
353354
# Install python3 if not present
354-
- uses: actions/setup-python@v5
355-
with:
356-
python-version: '3'
357-
if: steps.metadata.outputs.module != 'wasm'
355+
# - uses: actions/setup-python@v5
356+
# with:
357+
# python-version: '3'
358+
# if: steps.metadata.outputs.module != 'wasm'
358359

359360
- name: Install pytest
360361
run: |

src/nxt_isolation.c

+3
Original file line numberDiff line numberDiff line change
@@ -790,6 +790,9 @@ nxt_isolation_prepare_rootfs(nxt_task_t *task, nxt_process_t *process)
790790
if (nxt_slow_path(ret != NXT_OK)) {
791791
goto undo;
792792
}
793+
794+
printf("%s: mounted [%s] -> [%s]\n", __func__,
795+
(const char *)mnt[i].src, (const char *)dst);
793796
}
794797

795798
return NXT_OK;

test/python/ns_inspect/wsgi.py

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import json
22
import os
3+
import sys
34

45
try:
56
# Python 3
@@ -10,6 +11,9 @@
1011

1112

1213
def application(environ, start_response):
14+
print("pwd:", os.getcwd())
15+
print("sys.path:\n", sys.path, file=sys.stdout)
16+
1317
ret = {
1418
'FileExists': False,
1519
}

0 commit comments

Comments
 (0)