BSD Ports

sysutils/sysctlbyname-improved-kmod 20221211.1405500 FreeBSD

Internal sysctl object to implement an improved sysctlbyname(3)

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
2f2eb0c89a
License
BSD2CLAUSE
Categories
sysutils, kld
Package size
7.2 KiB, 15.5 KiB installed

Description

Kernel module to add the sysctl.objidextended_byname sysctl object to implement an improved sysctlbyname(3) clone to handle: * a name without a level, e.g., "security.jail.param.allow.mount." * a CTLTYPE_NODE with a defined handler, e.g., "kern.proc.pid.<pid>" The sysctlbyname_improved() function and an example are provided, too.

In the other systems

SystemPortVersion
FreeBSDsysutils/sysctlbyname-improved-kmod20221211.1405500
MidnightBSDsysutils/sysctlbyname-improved-kmod20221211

Install

Binary package:

pkg install sysctlbyname-improved-kmod

From the ports tree:

cd /usr/ports/sysutils/sysctlbyname-improved-kmod/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	sysctlbyname-improved-kmod>0:sysutils/sysctlbyname-improved-kmod

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest20221211.140400020221211.14040002022121120221211.140200020221211.1404000
FreeBSD:14:quarterly20221211.140400020221211.1404000n/a20221211.140200020221211.1404000
FreeBSD:15:latest20221211.150100020221211.1501000n/a20221211.150006320221211.1500063
FreeBSD:15:quarterly20221211.150100020221211.1501000n/an/an/a
FreeBSD:16:latest20221211.160002620221211.1600028n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Configuration

Options name: sysutils_sysctlbyname-improved-kmod

OptionDefaultDescription
EXAMPLESonBuild and/or install examples
USES
kmod
Service scripts
none

Message after installing

To use the sysctl.entryidinputbyname sysctl node and the sysctlbyname_improved
function, make sure that you have loaded the sysctlbyname_improved kernel 
module, by doing

	# kldload sysctlbyname_improved

or adding

	sysctlbyname_improved_load="YES"

to your /boot/loader.conf.

Files

distinfo 1
FileSizeSHA256
alfix-sysctlbyname-improved-22bdff50867ff927edd098091608e871503291b6_GL0.tar.gz908921fb84aaa8737d0712f1b21cd0ee0680da4741fff32eed7c99a49958c29df192

Commit history 1

DateCommitCreditsLog message
2f2eb0c89a Alfonso S. Siciliano */*: Update maintainer mail for asiciliano@
Move to FreeBSD.org address PR: 296976