Changed pam_script to handle chroot, unshare and mount.

Stef Bon <[email protected]>
Newsgroups gmane.linux.pam
Message-ID <CANXojcyaA05ag+U88T3PFgz5YNs=7SUXdqRyPJpj0p5cmixkRQ@mail.gmail.com>
Hi,

I've rewritten an existing pam module pam_script. What it does:

. runs a script
. unshare the mount namespace (if configured, default yes)

if the directory to chroot to is specfied it does also:

. mount all the required directories like bin, lib, usr etcetera.
. chroot to this directory

See:

git clone git://gitorious.org/pam_script/pam_script.git pam_script
cd pam_script


Please some comments.

Stef
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.