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
Created attachment 209373 [details] new .shar (mainstream fix)
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
Committed. Thanks.