]> git.ipfire.org Git - thirdparty/systemd.git/commit
sysctl: increase log severity on failed write
authorChristian Göttsche <cgzones@googlemail.com>
Mon, 13 Jun 2022 14:01:04 +0000 (16:01 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 14 Jun 2022 00:29:37 +0000 (09:29 +0900)
commit1805fbcf064c35b13186f1f4ae6590a5cffe59f1
tree28c6bb4bc462b43f61fc1c8565f3046ccc0d16dc
parentb0367874d578ec5af387612340150a547efea8e4
sysctl: increase log severity on failed write

Increase the log severity in case of writing to a non existent sysctl
parameter as this can either be caused by a misspelling or a kernel mis-
configuration, e.g. in case YAMA does not get loaded due to a incomplete
lsm= override:

    systemd-sysctl[354]: Couldn't write '1' to 'kernel/yama/ptrace_scope', ignoring: No such file or directory
src/sysctl/sysctl.c