initial commit: WIP debugging PAM module
This commit is contained in:
21
docker/Dockerfile
Normal file
21
docker/Dockerfile
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user