[Bug 242068] [NEW PORT] sysutils/sysctlbyname-improved-kmod: sysctl node to implement an improved sysctlbyname(3) clone

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Nov 19 05:04:38 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242068

            Bug ID: 242068
           Summary: [NEW PORT] sysutils/sysctlbyname-improved-kmod: sysctl
                    node to implement an improved sysctlbyname(3) clone
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs at FreeBSD.org
          Reporter: alfix86 at gmail.com
 Attachment #209242 text/plain
         mime type:

Created attachment 209242
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=209242&action=edit
.shar

Kernel module to add the sysctl.entryidinputbyname sysctl node
to allow to implement an improved sysctlbyname(3) clone to handle:

 * a node without a level name, e.g., "security.jail.param.allow.mount."
 * a CTLTYPE_NODE with a no-NULL handler, e.g., "kern.proc.pid.<pid>"

The sysctlbyname_improved() function and an example are provided, too.

WWW: https://gitlab.com/alfix/sysctlbyname-improved/

testing

 * poudriere testport -j 130Camd64 -p default -i -o
sysutils/sysctlbyname-improved-kmod
 * poudriere testport -j 120Ramd64 -p default -i -o
sysutils/sysctlbyname-improved-kmod
 * poudriere testport -j 113Ramd64 -p default -i -o
sysutils/sysctlbyname-improved-kmod

Thanks,
Alfonso

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


More information about the freebsd-ports-bugs mailing list