[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#671726: apt: should be able to provide hook information through a named pipe



On Sat, Mar 16, 2013 at 8:42 AM, Serafeim Zanikolas <sez@debian.org> wrote:
> The attached patch enables apt to pass Pre-Install-Pkgs hook data via a fifo,
> instead of via stdin (which remains the default, of course).
>
> Unlike the proposal in the initial bug report, the fifo filename is not
> randomised, but instead declared via the following configuration option in
> /etc/apt/apt.conf.d/10apt-listbugs:

Thanks!
Looks good to me (, but I haven't tested it yet).

Using a hook-defined fifoname rather than a random fifoname should be
okay as the later isn't more secure than the former (if an attacker has
root rights to write to it we are doomed anyway …) and in fact creating
a randomly named fifo could be hard in practice …


So, does this patch provides what you need Francesco?


I guess the apt-listbugs patch is just for testing, but I say it non-the-less:
It would be good if at least apt-listbugs/wheezy would support both so we
don't create backport problems that early in the (not even started) wheezy
release cycle. ;)


Best regards

David Kalnischkies


Reply to: