| 1 | #!/bin/sh |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | case "$1" in |
| 6 | configure|reconfigure) |
| 7 | chown root:netdata /usr/libexec/netdata/plugins.d/debugfs.plugin |
| 8 | chmod 0750 /usr/libexec/netdata/plugins.d/debugfs.plugin |
| 9 | if ! setcap "cap_dac_read_search,cap_audit_control=eip" /usr/libexec/netdata/plugins.d/debugfs.plugin; then |
| 10 | chmod -f 4750 /usr/libexec/netdata/plugins.d/debugfs.plugin |
| 11 | fi |
| 12 | ;; |
| 13 | esac |
| 14 | |
| 15 | exit 0 |