Date: Wed, 15 Feb 2017 10:41:28 -0800 From: Kevin Oberman <rkoberman@gmail.com> To: Lars Engels <lars.engels@0x20.net> Cc: Andrea Venturoli <ml@netfence.it>, FreeBSD Ports ML <freebsd-ports@freebsd.org> Subject: Re: Lynis and lsof Message-ID: <CAN6yY1sVfx3dXq_%2BGjKfeiL-MU1XykoqA9JbTa19GWiPDJcSmg@mail.gmail.com> In-Reply-To: <20170215125255.GX25286@e-new.0x20.net> References: <fbb4e48c-3821-28d2-567f-2eee59dd9029@netfence.it> <20170215125255.GX25286@e-new.0x20.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Feb 15, 2017 at 4:52 AM, Lars Engels <lars.engels@0x20.net> wrote: > On Wed, Feb 15, 2017 at 11:33:09AM +0100, Andrea Venturoli wrote: > > Hello. > > > > security/lynis seems to like having lsof available. > > However sysutils/lsof isn't listed as a dependency (whether optional or > > not). > > > > Would it be possible to add it, as a convenience? > > > > I can provide the patch and/or file a bug report if you'll agree. > > > > bye & Thanks > > av. > > Andrea, > > thanks for making me aware of this! > I just updated the port to 2.4.1 and added a runtime dependency on lsof. > In that case, a note that lsof should be added to PORTS_MODULES on /etc/src.conf. lsof uses several undocumented kernel interfaces that are not stable (as they are not intended for external use). As a result, things can break if the kernel is updated without lsof also being updated. PORTS_MODULES will take case of this for those who build the kernel from source. Things get rather messy if you use freebsd-update or packages though, as the packaging system sees no reason to make a new lsof package. I have no idea how to properly handle this. I simply always build lsof from source and lock it so 'pkg upgrade' won't touch it. -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkoberman@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAN6yY1sVfx3dXq_%2BGjKfeiL-MU1XykoqA9JbTa19GWiPDJcSmg>