sysctl: do report EACCES errors on write
authorDenys Vlasenko <vda.linux@googlemail.com>
Tue, 9 Jun 2020 13:58:32 +0000 (15:58 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 9 Jun 2020 13:58:32 +0000 (15:58 +0200)
commit002be6e821eedfa190c5b060e7b61acb306c2a92
tree3eb0d206c179a42807947060b666f816cee7cca6
parentb2ab920716f640cbaaf486512ba177f4e0b597c5
sysctl: do report EACCES errors on write

function                                             old     new   delta
sysctl_act_recursive                                 165     179     +14
sysctl_act_on_setting                                467     471      +4
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/0 up/down: 18/0)               Total: 18 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
procps/sysctl.c
testsuite/unexpand.tests