sysctl: Support systemd glob patterns

systemd-sysctl handles glob patterns along with overrides and
exceptions. Now the procps sysctl does it too.

The return value for sysctl is consistently either 0 or 1.

Added tests to check sysctl functions.

References:
 procps-ng/procps#191

Signed-off-by: Craig Small <csmall@dropbear.xyz>
This commit is contained in:
Craig Small
2021-09-13 22:07:37 +10:00
parent 8c23dfdcd4
commit 6389deca5b
5 changed files with 389 additions and 175 deletions

1
NEWS
View File

@@ -11,6 +11,7 @@ procps-ng-NEXT
* ps: Add PSS and USS fields issue #112
* ps: Add two new autogroup fields
* slabtop: Don't combine d and o options issue #160
* sysctl: Add support for systemd glob patterns issue #191
* sysctl: Check resolved path to be under /proc/sys issue #179
* top: added LOGID similar to 3.3.13 ps LUID
* top: added EXE identical to 3.3.17 ps EXE