From owner-freebsd-ports@FreeBSD.ORG Thu Apr 17 20:59:52 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7246F3F8 for ; Thu, 17 Apr 2014 20:59:52 +0000 (UTC) Received: from mail.h3q.com (mail.h3q.com [213.73.89.199]) by mx1.freebsd.org (Postfix) with ESMTP id C34A612B2 for ; Thu, 17 Apr 2014 20:59:51 +0000 (UTC) Received: (qmail 38039 invoked from network); 17 Apr 2014 20:53:09 -0000 Received: from mail.h3q.com (HELO mail.h3q.com) (mail.h3q.com) by mail.h3q.com with CAMELLIA256-SHA encrypted SMTP; 17 Apr 2014 20:53:09 -0000 Message-ID: <53503F32.3000400@h3q.com> Date: Thu, 17 Apr 2014 22:53:06 +0200 From: Philipp Wuensche User-Agent: Postbox 3.0.9 (Macintosh/20140129) MIME-Version: 1.0 To: Andrea Venturoli Subject: Re: jailaudit and pkg References: <53503DA3.6060202@netfence.it> In-Reply-To: <53503DA3.6060202@netfence.it> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Apr 2014 20:59:52 -0000 Andrea Venturoli wrote: > Hello. > > I'm not sure, but I might have find an unintended behaviour in jailaudit. > > I have a system which I have not yet migrated to pkgng (neither base nor > any jail). > However, pkg has been installed by the latest net-snmp upgrade (why I > don't know). > > Now this is what I get: >> # jailaudit generate >> >> Downloading a current audit database: >> pkgng support enabled, using /usr/local/sbin/pkg version 1.2.7_2. >> >> pkg: No packages installed >> pkg: No packages installed >> pkg: No packages installed jailaudit trys so get pkgng information from all jails running, this message is coming from pkg not getting any information in those jails. > AFAICT jailaudit sees the pkg port and thinks all jails have been > converted to pkgng; this renders it useless for any jail which is still > managed the old way. > Of course I could be using pkgng in some jails and/or the base system; > still it would not work for the other jails. > > Am I wrong? Is there a workaround? jailaudit still sees the old-style packages in your jail. It is always trying both package systems because (in some horrible way) they both can coexist. So nothing is wrong and no workaround is needed! Greetings, Philipp