Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cidbg #1421

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
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