/proc/self/exe is not necessarily correct on overlayfs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
logwatch (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
perl (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Perl should check the value from /proc/self/exe for correctness. I'll open a bug in logwatch also, however there are likely many more applications that make use of this and depend on it's correctness. Bug number 1007089 tracks the overlayfs bug.
/etc/cron.
sh: 1: /bin/perl: not found
sh: 1: /bin/perl: not found
system 'cat '/var/log/mail.log' '/var/log/
run-parts: /etc/cron.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: perl 5.14.2-6ubuntu2
ProcVersionSign
Uname: Linux 3.2.0-23-
ApportVersion: 2.0.1-0ubuntu8
Architecture: i386
Date: Sun Jul 29 09:06:20 2012
SourcePackage: perl
UpgradeStatus: Upgraded to precise on 2012-01-03 (208 days ago)
Posted in a duplicate:
Thank you for taking the time to report this bug and helping to make Ubuntu better.
It seems to me that /proc/self/exe being broken in overlayfs is a bug in overlayfs, not in perl or logwatch. But I am interested to hear what the kernel team decide on this.
Presumably this either needs to be fixed in overlayfs, or in every package that uses /proc/self/exe. It would make sense to make an Ubuntu-wide decision on the appropriate course of action here.
Launchpad's bug tracking allows for a single issue to be tracked across multiple packages. I think this is an appropriate issue to track this way, since it will stop discussion and appropriate decisions on the same issue being scattered across many bugs.
So I'm marking this bug as a dupe of bug 1030519, renaming bug 1030519 appropriately, and will add a logwatch task to bug 1030519 to track it there. Please continue discussion in bug 1030519.
I also think that this issue should probably be marked Invalid in both perl and logwatch, since it is reasonable to expect /proc/self/exe to work. But I would like to hear the kernel team's opinion on this first. I'm not marking this as a dupe of the kernel bug 1007089 pending feedback from the kernel team.
Mike, have you tried contacting the kernel team on this? The ubuntu-devel or kernel-team lists would probably be appropriate here. Also, this mailing list post seems relevant: https:/ /lists. ubuntu. com/archives/ ubuntu- devel/2012- February/ 034850. html