initial commit: WIP debugging PAM module

This commit is contained in:
2026-03-16 11:59:16 +11:00
commit 1d3eaff622
20 changed files with 699 additions and 0 deletions

21
docker/Dockerfile Normal file
View File

@@ -0,0 +1,21 @@
FROM rust:1.94-trixie AS builder
WORKDIR /app
COPY . .
SHELL [ "/bin/bash", "-o", "pipefail", "-c" ]
RUN apt update && apt install -y cmake build-essential libpam-dev && \
mkdir build && \
pushd build && \
cmake .. && \
cmake --build . && \
popd
FROM debian:trixie
WORKDIR /app
COPY --from=builder --chmod=644 /app/build/pam-module/pam_usercontainer.so /lib/x86_64-linux-gnu/security/pam_usercontainer.so
COPY --from=builder /app/tests/config/pam.d/mytestservice /etc/pam.d/mytestservice
COPY --from=builder /app/build/tests/app/pam_test_app /usr/local/bin/pam_test_app