Bug 242068

Summary: [NEW PORT] sysutils/sysctlbyname-improved-kmod: sysctl node to implement an improved sysctlbyname(3) clone
Product: Ports & Packages Reporter: Alfonso S. Siciliano <asiciliano>
Component: Individual Port(s)Assignee: Tobias C. Berner <tcberner>
Status: Closed FIXED    
Severity: Affects Only Me CC: tcberner
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
URL: https://gitlab.com/alfix/sysctlbyname-improved/
Bug Depends on:    
Bug Blocks: 242237    
Attachments:
Description Flags
.shar
none
new .shar (mainstream fix) asiciliano: maintainer-approval+

Description Alfonso S. Siciliano freebsd_committer freebsd_triage 2019-11-19 05:04:38 UTC
Created attachment 209242 [details]
.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
Comment 1 Alfonso S. Siciliano freebsd_committer freebsd_triage 2019-11-24 02:50:12 UTC
Created attachment 209373 [details]
new .shar (mainstream fix)
Comment 2 commit-hook freebsd_committer freebsd_triage 2019-12-14 11:06:56 UTC
A commit references this bug:

Author: tcberner
Date: Sat Dec 14 11:06:44 UTC 2019
New revision: 520107
URL: https://svnweb.freebsd.org/changeset/ports/520107

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

  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/

  PR:		242068
  Submitted by:	Alfonso S. Siciliano <alfix86@gmail.com>

Changes:
  head/sysutils/Makefile
  head/sysutils/sysctlbyname-improved-kmod/
  head/sysutils/sysctlbyname-improved-kmod/Makefile
  head/sysutils/sysctlbyname-improved-kmod/distinfo
  head/sysutils/sysctlbyname-improved-kmod/pkg-descr
  head/sysutils/sysctlbyname-improved-kmod/pkg-message
Comment 3 Tobias C. Berner freebsd_committer freebsd_triage 2019-12-14 11:07:10 UTC
Committed. Thanks.