CT 114: Audit nutzt ltc-readonly statt sudo -u litecoin
Die sudoers-Regel ist (root)-beschränkt: 'sudo -u litecoin' braucht ein Passwort. Der Wrapper ltc-readonly läuft als root via NOPASSWD und macht intern runuser -u litecoin — Audit testet jetzt genau diesen Pfad. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
@@ -134,10 +134,10 @@
|
||||
that:
|
||||
- litecoin_audit_tor_config.rc == 0
|
||||
|
||||
- name: Read the litecoind network state via the read-only wrapper path
|
||||
- name: Read the litecoind network state via the read-only wrapper
|
||||
become: false
|
||||
ansible.builtin.command:
|
||||
argv: [/usr/bin/sudo, -n, -u, litecoin, /opt/litecoin/bin/litecoin-cli, -conf=/etc/litecoin/litecoin.conf, getnetworkinfo]
|
||||
argv: [/usr/bin/sudo, -n, /usr/local/bin/ltc-readonly, getnetworkinfo]
|
||||
check_mode: false
|
||||
changed_when: false
|
||||
register: litecoin_audit_networkinfo
|
||||
|
||||
Reference in New Issue
Block a user