Debian Bug report logs - #1060461
libpam-zfs: fails to unload and unmount homedir on exit from graphical session

version graph

Package: libpam-zfs; Maintainer for libpam-zfs is Debian ZFS on Linux maintainers <[email protected]>; Source for libpam-zfs is src:zfs-linux (PTS, buildd, popcon).

Reported by: наб <[email protected]>

Date: Thu, 11 Jan 2024 20:09:02 UTC

Severity: normal

Tags: upstream

Merged with 1028613

Found in versions zfs-linux/2.1.7-1~bpo11+1, zfs-linux/2.2.2-3

Forwarded to https://github.com/openzfs/zfs/issues/12430

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], Debian ZFS on Linux maintainers <[email protected]>:
Bug#1060461; Package libpam-zfs. (Thu, 11 Jan 2024 20:09:03 GMT) (full text, mbox, link).


Acknowledgement sent to наб <[email protected]>:
New Bug report received and forwarded. Copy sent to Debian ZFS on Linux maintainers <[email protected]>. (Thu, 11 Jan 2024 20:09:03 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: наб <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Subject: libpam-zfs: fails to unload and unmount homedir on exit from graphical session
Date: Thu, 11 Jan 2024 21:06:21 +0100
[Message part 1 (text/plain, inline)]
Package: libpam-zfs
Version: 2.2.2-3
Severity: normal

Dear Maintainer,

After logging out (as testuser), /home/testuser was still mounted.
Before logging in, it was unloaded and unmounted.

Journal says
  Jan 11 20:59:41 chrust systemd[1]: Started session-33.scope - Session 33 of User testuser.
  Jan 11 20:59:55 chrust lightdm[13290]: pam_unix(lightdm:session): session closed for user testuser
  Jan 11 20:59:55 chrust lightdm[13290]: pam_zfs_key(lightdm:session): zfs_unmount failed with: -1
  Jan 11 21:00:01 chrust lightdm[13484]: pam_zfs_key(lightdm:auth): pbkdf failed
  Jan 11 21:00:12 chrust (sd-pam)[13299]: pam_unix(systemd-user:session): session closed for user testuser

I'm in as default a configuration as I could be (sans setting homes=chrust-zoot/home),
using lightdm as the greeter and i3 as the WM. None of testuser's processes persisted.

Best,
наб

-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.6.9-amd64 (SMP w/2 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libpam-zfs depends on:
ii  libc6            2.37-13
ii  libnvpair3linux  2.2.2-3
ii  libpam-runtime   1.5.2-9.1
ii  libpam0g         1.5.2-9.1+b1
ii  libssl3          3.1.4-2
ii  libzfs4linux     2.2.2-3

libpam-zfs recommends no packages.

libpam-zfs suggests no packages.

-- no debconf information
[signature.asc (application/pgp-signature, inline)]

Information forwarded to [email protected], Debian ZFS on Linux maintainers <[email protected]>:
Bug#1060461; Package libpam-zfs. (Fri, 12 Jan 2024 02:54:02 GMT) (full text, mbox, link).


Acknowledgement sent to 陈 晟祺 <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian ZFS on Linux maintainers <[email protected]>. (Fri, 12 Jan 2024 02:54:02 GMT) (full text, mbox, link).


Message #10 received at [email protected] (full text, mbox, reply):

From: 陈 晟祺 <[email protected]>
To: наб <[email protected]>, "[email protected]" <[email protected]>
Subject: Re: [Pkg-zfsonlinux-devel] Bug#1060461: libpam-zfs: fails to unload and unmount homedir on exit from graphical session
Date: Fri, 12 Jan 2024 02:50:06 +0000
Hi,

Thanks for reporting.

> 2024年1月12日 04:06,наб <[email protected]> 写道:
> 
> Package: libpam-zfs
> Version: 2.2.2-3
> Severity: normal
> 
> Dear Maintainer,
> 
> After logging out (as testuser), /home/testuser was still mounted.
> Before logging in, it was unloaded and unmounted.
> 
> Journal says
>  Jan 11 20:59:41 chrust systemd[1]: Started session-33.scope - Session 33 of User testuser.
>  Jan 11 20:59:55 chrust lightdm[13290]: pam_unix(lightdm:session): session closed for user testuser
>  Jan 11 20:59:55 chrust lightdm[13290]: pam_zfs_key(lightdm:session): zfs_unmount failed with: -1
>  Jan 11 21:00:01 chrust lightdm[13484]: pam_zfs_key(lightdm:auth): pbkdf failed
>  Jan 11 21:00:12 chrust (sd-pam)[13299]: pam_unix(systemd-user:session): session closed for user testuser
> 

-1 is EPERM. So I suspect this is the same problem as #1028613.
Maybe you can check that out and, if indeed, merge the two bugs?

Thanks,
Shengqi Chen


Set Bug forwarded-to-address to 'https://github.com/openzfs/zfs/issues/12430'. Request was from наб <[email protected]> to [email protected]. (Fri, 12 Jan 2024 17:27:03 GMT) (full text, mbox, link).


Marked as found in versions zfs-linux/2.1.7-1~bpo11+1. Request was from наб <[email protected]> to [email protected]. (Fri, 12 Jan 2024 17:27:03 GMT) (full text, mbox, link).


Added tag(s) upstream. Request was from наб <[email protected]> to [email protected]. (Fri, 12 Jan 2024 17:27:04 GMT) (full text, mbox, link).


Merged 1028613 1060461 Request was from наб <[email protected]> to [email protected]. (Fri, 12 Jan 2024 17:27:05 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 09:01:25 2025; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.