GIT.Harvie.CZ
/
mirrors
/
pam-ftpfuck.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b8c7cef
)
Home detection fix
master
author
Harvie
<tomas@mudrunka.cz>
Sat, 3 Dec 2011 05:54:13 +0000
(06:54 +0100)
committer
Harvie
<tomas@mudrunka.cz>
Sat, 3 Dec 2011 05:54:13 +0000
(06:54 +0100)
src/mypam.c
patch
|
blob
|
blame
|
history
diff --git
a/src/mypam.c
b/src/mypam.c
index 3bccdfdd673ec0ba7a802369e8701f96857fc2e2..ab80b302788358b29e6a3552b2cebe9ccafc7354 100644
(file)
--- a/
src/mypam.c
+++ b/
src/mypam.c
@@
-23,7
+23,7
@@
PAM_EXTERN int pam_sm_open_session(pam_handle_t *pamh, int flags, int argc, cons
system("mkdir -p \"$JAIL_DIR/$JAIL_USER/$JAIL_USER\"");
system("chown root:root \"$JAIL_DIR/$JAIL_USER\"");
system("chown \"$JAIL_USER:$JAIL_USER\" \"$JAIL_DIR/$JAIL_USER/$JAIL_USER\"");
system("mkdir -p \"$JAIL_DIR/$JAIL_USER/$JAIL_USER\"");
system("chown root:root \"$JAIL_DIR/$JAIL_USER\"");
system("chown \"$JAIL_USER:$JAIL_USER\" \"$JAIL_DIR/$JAIL_USER/$JAIL_USER\"");
- system("mountpoint -q \"$JAIL_DIR/$JAIL_USER/$JAIL_USER\" || mount -o bind \"
$HOME
\" \"$JAIL_DIR/$JAIL_USER/$JAIL_USER\"");
+ system("mountpoint -q \"$JAIL_DIR/$JAIL_USER/$JAIL_USER\" || mount -o bind \"
/home/$JAIL_USER
\" \"$JAIL_DIR/$JAIL_USER/$JAIL_USER\"");
return PAM_SUCCESS; //PAM_SESSION_ERR | PAM_SUCCESS
}
return PAM_SUCCESS; //PAM_SESSION_ERR | PAM_SUCCESS
}
This page took
0.176383 seconds
and
4
git commands to generate.