From owner-freebsd-ports@freebsd.org Wed Feb 15 18:41:29 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 51BFACE0CF4 for ; Wed, 15 Feb 2017 18:41:29 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-ot0-x22c.google.com (mail-ot0-x22c.google.com [IPv6:2607:f8b0:4003:c0f::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 110C01DAB for ; Wed, 15 Feb 2017 18:41:29 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by mail-ot0-x22c.google.com with SMTP id 19so11746693oti.2 for ; Wed, 15 Feb 2017 10:41:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=Rz8VQoP3sHa2qZJy5Kl1lKsq2KvE8t83/Yh6N7DF3KU=; b=o2cIU1tfe3NXXliSDmpp3A2N6mn1fArFzQNayrb/MkVh4bJBSfZIu76Xgb4CoEVOfK glAkoyfHS36oVPxi6IvE2+7ZAs5T9oCl7SwL9q2xzp2m8r2tvVABijQSPT1AbebpbYdY ABp2Vk4cBy1dZazdSbmunQIHro41bMGiG7XPrqgIwtUmY8VaJLT7y8rz1XAwkV5ZxtZE rVYitqdrcvQpETypi151SSX7C8oJ/xEoMy+fYT913UDNeN7n5Nv6amYgWu6Z0IMZ0CBi jjnnwk94iwLwN5ymjHniet/wq++jPgwrEiUPqNdDPhreildO35nQE/c3SXR0/dzgI339 z85g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=Rz8VQoP3sHa2qZJy5Kl1lKsq2KvE8t83/Yh6N7DF3KU=; b=ODzYGmDDE+LbMv78ty3rW6WRWeRIGqZY1ZyMjge6bPY5HBY1lj2i0hxCwuTX6b0uVY N8OwPHk32ftUrE02qsaesBzFOOKcMxFADThmC24Jzec+4451MAfKAe/3QAcjfR1d9/d9 o2VXwrXpeb128naIWvS47d/g0wWspqHxl3I3efGSCnARLW7so4us4L+Y8l7KCgKIoK/C LgT4BTAwiULgFqxJQNMYKSy5qv33uRwhNTgFwIPsR3IjY9MceYV7zQijWRcUHjRnVUOs BUsEjuqN6Uj1n17rBexjbmyapHIc467Z6FybtiDu9zEgI8hXWNGeswhKcT0TZwXF8yNC lcZA== X-Gm-Message-State: AMke39kY7lETkYVcMz28IHb0z2P8IBJVBArmpBmX9tz+vYdcjNvHdMxe279olXxpI78MEaR70rtgf0Vt8o0pOw== X-Received: by 10.157.49.85 with SMTP id v21mr18984425otd.266.1487184088379; Wed, 15 Feb 2017 10:41:28 -0800 (PST) MIME-Version: 1.0 Sender: kob6558@gmail.com Received: by 10.74.32.79 with HTTP; Wed, 15 Feb 2017 10:41:28 -0800 (PST) In-Reply-To: <20170215125255.GX25286@e-new.0x20.net> References: <20170215125255.GX25286@e-new.0x20.net> From: Kevin Oberman Date: Wed, 15 Feb 2017 10:41:28 -0800 X-Google-Sender-Auth: G0kVz9UpbgSW2l34eLCcbpg79ek Message-ID: Subject: Re: Lynis and lsof To: Lars Engels Cc: Andrea Venturoli , FreeBSD Ports ML Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Feb 2017 18:41:29 -0000 On Wed, Feb 15, 2017 at 4:52 AM, Lars Engels 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