** Attachment added: "/etc/pam.d/login"
   http://launchpadlibrarian.net/15925705/login

** Description changed:

  Binary package hint: libpam-modules
  
  I'm trying to setup pam_namespace.so to get per-session (per-user?)
  mount points.  I thought I had it working for a couple of logins and
  then it stopped.  I had debug mode enabled, and it appears to stop right
  after parsing the /etc/security/namespace.conf file, then it segfaults.
  I've tried using this module for both "login" and "sshd" with the same
  results for both.
  
  The pam module line I'm adding (I've tried a bunch of variations, but here is 
an example):
      session    required pam_namespace.so debug ignore_config_error 
ignore_instance_parent_mode
  
  The auth log looks like this:
      sshd[10826]: pam_unix(sshd:session): session opened for user lowell by 
(uid=0)
      sshd[10826]: pam_namespace(sshd:session): open_session - start
      sshd[10826]: pam_namespace(sshd:session): Parsing config file 
/etc/security/namespace.conf
  
  Each log in attempt just fails silently for "login", and reports "Connection 
reset by peer" with ssh.  The "dmesg" command reports a line like this for each 
login attempt:
      [34321.503759] login[8000]: segfault at 00000008 eip b7eee78d esp 
bfe9e480 error 4
      [35952.573257] sshd[10808]: segfault at 00000008 eip b793778d esp 
bfc42540 error 4
  
  My /etc/security/namespace.conf file contains the following:
      tmp     /tmp-inst/         both      root,adm
  
  I've double check my directory permissions for the instance directories
- in namespaces.conf, so I don't think that is the issue.  I found out
- that if I comment everything out in namespace.conf, then logins will
- work; but then it doesn't actually do anything either.  I am using
+ in namespace.conf, so I don't think that is the issue.  I found out that
+ if I comment everything out in namespace.conf, then logins will work;
+ but then it doesn't actually do anything either.  I am using
  pam_encfs.so in my common-auth file, but don't think thats the issue
  since I have the same problem when I comment it out and use just the
  standard "auth required pam_unix.so" line.
  
  
  Linux lowellport 2.6.24-19-generic #1 SMP Wed Jun 18 14:43:41 UTC 2008 i686 
GNU/Linux
  Description:    Ubuntu 8.04.1
  Release:        8.04
  libpam-modules 0.99.7.1-5ubuntu6.1

-- 
Segfault with pam_namespace
https://bugs.launchpad.net/bugs/247125
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to