Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Sep 2016 13:25:18 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 212728] ports-mgmt/jailaudit:  breaks when auditdistd is running
Message-ID:  <bug-212728-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D212728

            Bug ID: 212728
           Summary: ports-mgmt/jailaudit:  breaks when auditdistd is
                    running
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs@FreeBSD.org
          Reporter: xavi.garcia@gmail.com
                CC: cryx-ports@h3q.com
             Flags: maintainer-feedback?(cryx-ports@h3q.com)
                CC: cryx-ports@h3q.com

Created attachment 174831
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D174831&action=
=3Dedit
jailaudit patch

jailaudit fails when auditdistd is running in the server.

auditdistd creates several jails to isolate the processes in charge of
transmitting the audit traces generated by auditd. These jails have a setup=
 and
naming convention that is not expected by jailaudit (namely, not having base
installed), causing it to fail.

See https://wiki.freebsd.org/auditdistd for more information

Exemple of the execution in 10.3-RELEASE:

# jailaudit generate

Downloading a current audit database:
pkgng support enabled, using /usr/local/sbin/pkg version 1.8.7.

jexec: execvp: ls: No such file or directory
pkg: open(/bin/sh): No such file or directory
pkg: open(/bin/sh): No such file or directory
pkg: Unable to determine ABI
pkg: Cannot parse configuration file!
jexec: execvp: ls: No such file or directory
pkg: open(/bin/sh): No such file or directory
pkg: open(/bin/sh): No such file or directory
pkg: Unable to determine ABI
pkg: Cannot parse configuration file!
jexec: execvp: ls: No such file or directory
pkg: open(/bin/sh): No such file or directory
pkg: open(/bin/sh): No such file or directory
pkg: Unable to determine ABI
pkg: Cannot parse configuration file!
jexec: execvp: ls: No such file or directory
pkg: open(/bin/sh): No such file or directory
pkg: open(/bin/sh): No such file or directory
pkg: Unable to determine ABI
pkg: Cannot parse configuration file!


You can find attached a patch that only accesses the jails when '/var/db/pk=
g'
exists.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-212728-13>