Bug 259099 - [NEW PORT] sysutils/filemon: Trivial tool to log child process file access using filemon ioctl
Summary: [NEW PORT] sysutils/filemon: Trivial tool to log child process file access us...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Rodrigo Osorio
URL:
Keywords: feature, needs-qa
Depends on:
Blocks:
 
Reported: 2021-10-12 11:18 UTC by Rodrigo Osorio
Modified: 2022-05-15 13:36 UTC (History)
3 users (show)

See Also:
koobs: maintainer-feedback? (rodrigo)


Attachments
New filemon port (1.75 KB, patch)
2021-10-12 11:18 UTC, Rodrigo Osorio
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rodrigo Osorio freebsd_committer freebsd_triage 2021-10-12 11:18:43 UTC
Created attachment 228623 [details]
New filemon port

The filemon utility is a simple wrapper around the
filemon(4) kernel facility. Unlike ktrace(1) the
trace file can be a named pipe.

This tool requires filemon kernel module.
Comment 1 Li-Wen Hsu freebsd_committer freebsd_triage 2021-10-12 12:25:30 UTC
How about putting this into base?
Comment 2 Rodrigo Osorio freebsd_committer freebsd_triage 2021-10-12 13:17:40 UTC
(In reply to Li-Wen Hsu from comment #1)

As a port is probably faster but I can probably help
mane pr #251061 to land in base
Comment 3 Kubilay Kocak freebsd_committer freebsd_triage 2022-05-10 00:51:06 UTC
@Rodrigo Do you have cycles to make progress on this?
Comment 4 Rodrigo Osorio freebsd_committer freebsd_triage 2022-05-13 15:11:31 UTC
Thanks for the reminder @Koob, I fell a little asleep on this ticket
I gonna try to conclude on this one in the upcoming days
Comment 5 Rodrigo Osorio freebsd_committer freebsd_triage 2022-05-15 07:39:14 UTC
Hi Darius,

I plan to commit filemon as a port asap, so let me know if
you agree on that. I made an archive based on your submission
and found no issue with latest versions of FreeBSD.

The distfile is currently hosted in a compute I manage but I
have no problem if you prefer to host it on your own.
Just let me know.

Cheers,
-- rodrigo
Comment 6 Daniel O'Connor 2022-05-15 08:06:07 UTC
Sure thing, a port sounds fine. Thanks.
Comment 7 commit-hook freebsd_committer freebsd_triage 2022-05-15 13:33:44 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b59ab55b92871c132a56a70ff7a0a303fc4908a3

commit b59ab55b92871c132a56a70ff7a0a303fc4908a3
Author:     Rodrigo Osorio <rodrigo@FreeBSD.org>
AuthorDate: 2022-05-15 13:12:31 +0000
Commit:     Rodrigo Osorio <rodrigo@FreeBSD.org>
CommitDate: 2022-05-15 13:21:15 +0000

    sysutils/filemon: Adds filemon(1), a trivial wrapper around filemon(4)

    Filemon is a simple application who log child process file access
    using filemon iocl.

    PR:             259099
    Reported by:    Daniel O'Connor <darius@dons.net.au>

 sysutils/Makefile                |  1 +
 sysutils/filemon/Makefile (new)  | 22 ++++++++++++++++++++++
 sysutils/filemon/distinfo (new)  |  3 +++
 sysutils/filemon/pkg-descr (new) |  5 +++++
 4 files changed, 31 insertions(+)
Comment 8 Rodrigo Osorio freebsd_committer freebsd_triage 2022-05-15 13:36:18 UTC
Thanks Danie, filemon is now officially part fo the ports tree.

Thanks koobs for keeping an eye on my duties :)