cgerhard
(Chris Gerhard)
1
After updating my raspberry pi software the webthing service no longer starts:
cjg@ios:~ $ sudo systemctl status webthings-gateway.service
● webthings-gateway.service - WebThings Gateway
Loaded: loaded (/lib/systemd/system/webthings-gateway.service; enabled; vendo
Active: activating (auto-restart) (Result: exit-code) since Wed 2021-07-21 11
Process: 1132 ExecStart=/usr/bin/webthings-gateway (code=exited, status=127)
Main PID: 1132 (code=exited, status=127)
cjg@ios:~ $
Any ideas?
cgerhard
(Chris Gerhard)
2
I suspect this:
cjg@ios:/ $ sudo /usr/bin/webthings-gateway
setpriv: libcap-ng is too old for “all” caps
cjg@ios:/ $
but can’t see from google which bit needs updating.
cgerhard
(Chris Gerhard)
3
I replaced the --inh-caps=all entry in /usr/bin/webthings-gateway with:
--inh-caps=-chown,-dac_override,-dac_read_search,-fowner,-fsetid,-kill,-setgid,-setuid,-setpcap,-linux_immutable,-net_bind_service,-net_broadcast,-net_admin,-net_raw,-ipc_lock,-ipc_owner,-sys_module,-sys_rawio,-sys_chroot,-sys_ptrace,-sys_pacct,-sys_admin,-sys_boot,-sys_nice,-sys_resource,-sys_time,-sys_tty_config,-mknod,-lease,-audit_write,-audit_control,-mac_override,-mac_admin,-syslog,-wake_alarm,-block_suspend,-audit_read,-cap_38,-cap_39 \
and now all is fine