Skip to content
Draft

cidbg #1421

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,8 @@ jobs:

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

- name: Make python3
Expand Down Expand Up @@ -351,10 +352,10 @@ jobs:
namei -l ${{ github.workspace }}

# Install python3 if not present
- uses: actions/setup-python@v5
with:
python-version: '3'
if: steps.metadata.outputs.module != 'wasm'
# - uses: actions/setup-python@v5
# with:
# python-version: '3'
# if: steps.metadata.outputs.module != 'wasm'

- name: Install pytest
run: |
Expand Down
3 changes: 3 additions & 0 deletions src/nxt_isolation.c
Original file line number Diff line number Diff line change
Expand Up @@ -790,6 +790,9 @@ nxt_isolation_prepare_rootfs(nxt_task_t *task, nxt_process_t *process)
if (nxt_slow_path(ret != NXT_OK)) {
goto undo;
}

printf("%s: mounted [%s] -> [%s]\n", __func__,
(const char *)mnt[i].src, (const char *)dst);
}

return NXT_OK;
Expand Down
4 changes: 4 additions & 0 deletions test/python/ns_inspect/wsgi.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import json
import os
import sys

try:
# Python 3
Expand All @@ -10,6 +11,9 @@


def application(environ, start_response):
print("pwd:", os.getcwd())
print("sys.path:\n", sys.path, file=sys.stdout)

ret = {
'FileExists': False,
}
Expand Down
Loading