pam_ecryptfs returns twice from fork in error conditions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
eCryptfs |
Fix Released
|
Undecided
|
Unassigned | ||
ecryptfs-utils (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
While opening or closing a PAM session, if the setgroups() or setresuid() calls fail inside pam_ecryptfs’s forked child process, pam_ecryptfs returns to its caller in both the parent and child processes. This is similar to bug 938326, but the problem was reintroduced in the subsequent fix to bug 732614.
static int private_
{
…
if ((pid = fork()) < 0) {
}
if (pid == 0) {
…
…
} else {
}
out:
return 0;
}
ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: ecryptfs-utils 104-0ubuntu1
ProcVersionSign
Uname: Linux 3.15.0-2-generic x86_64
NonfreeKernelMo
ApportVersion: 2.14.2-0ubuntu4
Architecture: amd64
CurrentDesktop: GNOME
Date: Mon May 26 17:06:09 2014
EcryptfsInUse: Yes
InstallationDate: Installed on 2010-12-05 (1268 days ago)
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha amd64 (20101202)
SourcePackage: ecryptfs-utils
UpgradeStatus: Upgraded to utopic on 2013-10-31 (207 days ago)
Related branches
- Tyler Hicks: Approve
-
Diff: 29 lines (+4/-4)1 file modifiedsrc/pam_ecryptfs/pam_ecryptfs.c (+4/-4)
Changed in ecryptfs: | |
status: | New → Fix Committed |
Changed in ecryptfs: | |
status: | Fix Committed → Fix Released |
Changed in ecryptfs-utils (Ubuntu): | |
status: | New → Fix Released |