RPM Community Forums

Mailing List Message of <rpm-devel>

Re: rpm infinite recursions using manifests

From: Jeff Johnson <n3npq@mac.com>
Date: Sun 07 Sep 2008 - 20:30:36 CEST
Message-id: <BA44B55C-8367-4C7F-B130-8A48BA323380@mac.com>

On Sep 7, 2008, at 2:19 PM, Alexey Tourbin wrote:

> On Sun, Sep 07, 2008 at 12:10:18PM -0400, Jeff Johnson wrote:
>> There's a class of infinite recursion problems with manifests used
>> on the rpm CLI that I don't know to fix.
>> A manifest is a file containing a list of paths to packages (or other
>> manifests)
> Forbid manifest files from within manifests.

Actually I think you're on to something here.

I can easily associate a recursion level with each arg, and do level++
when opening item as a manifest.

With a recursion level, the recursion can be limited.

So "Forbid manifests" becomes same is "fail if level > 0", and
forbidding manifests withing manifests is same as "fail if level > 1".

Note that URI's are also permitted in manifests, and so "cross site
scripting" needs to be avoided with URI affinity as well.

73 de Jeff
Received on Sun Sep 7 20:32:49 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.