diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -10,11 +10,6 @@ use std::io::{ErrorKind, Write}; use std::path::Path; use std::process; -const CG_MOUNT: &str = "/sys/fs/cgroup"; - -struct PAMUserCG; -pam::pam_hooks!(PAMUserCG); - fn create_and_open_dir<P: AsRef<Path> + Copy>( d: &Dir, path: P, @@ -66,6 +61,11 @@ fn open_session(h: &mut PamHandle, mountpoint: &str) -> Result<(), SessionError> Ok(()) } +const CG_MOUNT: &str = "/sys/fs/cgroup"; + +struct PAMUserCG; +pam::pam_hooks!(PAMUserCG); + impl PamHooks for PAMUserCG { fn sm_open_session( h: &mut PamHandle, |