Debian Bug report logs - #792239
sessionclean does not support tiered session directory structure

version graph

Package: php5; Maintainer for php5 is (unknown);

Reported by: Justin Pasher <justinp@distribion.com>

Date: Mon, 13 Jul 2015 03:21:02 UTC

Severity: normal

Found in version php5/5.6.9+dfsg-0+deb8u1

Fixed in version 5.6.26+dfsg-1+rm

Done: Debian FTP Masters <ftpmaster@ftp-master.debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

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


Report forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#792239; Package php5. (Mon, 13 Jul 2015 03:21:06 GMT) (full text, mbox, link).


Acknowledgement sent to Justin Pasher <justinp@distribion.com>:
New Bug report received and forwarded. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Mon, 13 Jul 2015 03:21:06 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Justin Pasher <justinp@distribion.com>
To: submit@bugs.debian.org
Subject: sessionclean does not support tiered session directory structure
Date: Sun, 12 Jul 2015 22:18:27 -0500
[Message part 1 (text/plain, inline)]
Package: php5
Version: 5.6.9+dfsg-0+deb8u1

The new session cleanup script in Jessie (/usr/lib/php5/sessionclean) 
has a few limitations in it.

1. It does not support a tiered directory structure (e.g. 
session.save_path=2;/var/lib/php5)
2. It does not support a symlinked session directory
3. (not a limitation, but parameter warning) The find command uses the 
-ignore_readdir_race option after a non-option argument

I've attached a patch to fix all of these.

1. Adjust sed to remove the "N;" or "N;MODE;" prefix from session.save_path
2. Add a / to the end of $save_path to look inside the symlinked 
directory. It should still work with regular directories.
3. Move the -ignore_readdir_race parameter

Changed lines:

14: save_path=$(echo "$session_config" | sed -ne 
's/^session\.save_path=\(.*;\)\?\(.*\)$/\2/p')
29: find -O3 "$save_path/" -depth -ignore_readdir_race -mindepth 1 -name 
'sess_*' -type f -cmin "+$gc_maxlifetime" -delete
[sessionclean_fixes.patch (text/plain, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#792239; Package php5. (Thu, 10 Sep 2015 15:51:06 GMT) (full text, mbox, link).


Acknowledgement sent to Justin Pasher <justinp@distribion.com>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Thu, 10 Sep 2015 15:51:06 GMT) (full text, mbox, link).


Message #10 received at 792239@bugs.debian.org (full text, mbox, reply):

From: Justin Pasher <justinp@distribion.com>
To: 792239@bugs.debian.org
Subject: Re: sessionclean does not support tiered session directory structure
Date: Thu, 10 Sep 2015 10:47:41 -0500
Any update on this issue? The change is very benign in the provided 
patch and it still works for the previous use cases.

--
Justin Pasher




Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#792239; Package php5. (Tue, 09 Feb 2016 22:24:03 GMT) (full text, mbox, link).


Acknowledgement sent to Justin Pasher <justinp@distribion.com>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Tue, 09 Feb 2016 22:24:03 GMT) (full text, mbox, link).


Message #15 received at 792239@bugs.debian.org (full text, mbox, reply):

From: Justin Pasher <justinp@distribion.com>
To: 792239@bugs.debian.org
Subject: Re: sessionclean does not support tiered session directory structure)
Date: Tue, 9 Feb 2016 16:21:49 -0600
Still no update?

Justin Pasher



Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#792239; Package php5. (Wed, 10 Feb 2016 20:24:03 GMT) (full text, mbox, link).


Acknowledgement sent to Ondřej Surý <ondrej@sury.org>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Wed, 10 Feb 2016 20:24:03 GMT) (full text, mbox, link).


Message #20 received at 792239@bugs.debian.org (full text, mbox, reply):

From: Ondřej Surý <ondrej@sury.org>
To: Justin Pasher <justinp@distribion.com>, 792239@bugs.debian.org
Subject: Re: [php-maint] Bug#792239: sessionclean does not support tiered session directory structure)
Date: Wed, 10 Feb 2016 21:21:02 +0100
Hi Justin,

this has been already fixed for (future) default version of PHP in
Debian stretch.

Unfortunately such a minor issue for edge case doesn't pass our Stable
Update policy that includes mostly serious bugs and security issues.

Cheers,
-- 
Ondřej Surý <ondrej@sury.org>
Knot DNS (https://www.knot-dns.cz/) – a high-performance DNS server

On Tue, Feb 9, 2016, at 23:21, Justin Pasher wrote:
> Still no update?
> 
> Justin Pasher
> 
> _______________________________________________
> pkg-php-maint mailing list
> pkg-php-maint@lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-php-maint



Reply sent to Debian FTP Masters <ftpmaster@ftp-master.debian.org>:
You have taken responsibility. (Fri, 13 Jan 2017 13:07:16 GMT) (full text, mbox, link).


Notification sent to Justin Pasher <justinp@distribion.com>:
Bug acknowledged by developer. (Fri, 13 Jan 2017 13:07:16 GMT) (full text, mbox, link).


Message #25 received at 792239-done@bugs.debian.org (full text, mbox, reply):

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 413713-done@bugs.debian.org,440775-done@bugs.debian.org,447764-done@bugs.debian.org,500087-done@bugs.debian.org,618462-done@bugs.debian.org,628079-done@bugs.debian.org,639268-done@bugs.debian.org,643282-done@bugs.debian.org,697800-done@bugs.debian.org,715264-done@bugs.debian.org,727143-done@bugs.debian.org,730067-done@bugs.debian.org,731055-done@bugs.debian.org,752100-done@bugs.debian.org,759195-done@bugs.debian.org,760454-done@bugs.debian.org,774154-done@bugs.debian.org,774975-done@bugs.debian.org,776564-done@bugs.debian.org,778596-done@bugs.debian.org,782778-done@bugs.debian.org,783246-done@bugs.debian.org,788060-done@bugs.debian.org,789442-done@bugs.debian.org,789702-done@bugs.debian.org,790472-done@bugs.debian.org,790841-done@bugs.debian.org,792239-done@bugs.debian.org,795572-done@bugs.debian.org,797799-done@bugs.debian.org,799136-done@bugs.debian.org,799851-done@bugs.debian.org,800564-done@bugs.debian.org,801831-done@bugs.debian.org,803260-done@bugs.debian.org,803305-done@bugs.debian.org,805591-done@bugs.debian.org,810244-done@bugs.debian.org,811130-done@bugs.debian.org,814907-done@bugs.debian.org,815794-done@bugs.debian.org,815797-done@bugs.debian.org,817917-done@bugs.debian.org,819139-done@bugs.debian.org,827486-done@bugs.debian.org,828498-done@bugs.debian.org,833133-done@bugs.debian.org,833543-done@bugs.debian.org,834579-done@bugs.debian.org,841618-done@bugs.debian.org,845890-done@bugs.debian.org,846244-done@bugs.debian.org,848661-done@bugs.debian.org,849767-done@bugs.debian.org,664595-done@bugs.debian.org,
Cc: php5@packages.debian.org, php5@packages.qa.debian.org
Subject: Bug#841781: Removed package(s) from unstable
Date: Fri, 13 Jan 2017 13:05:30 +0000
Version: 5.6.26+dfsg-1+rm

Dear submitter,

as the package php5 has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/841781

The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Scott Kitterman (the ftpmaster behind the curtain)



Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sat, 11 Feb 2017 07:30:24 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jul 2 02:22:34 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU 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.