Commit Graph
18 Commits
Author SHA1 Message Date
Josh Patterson 1e86be11b2 FIX: install /usr/sbin management scripts as root
Salt installed the so-* scripts into /usr/sbin owned by unprivileged service
UIDs (939/socore, plus 930-960 per service) at mode 755, while root executes
those same files from cron, systemd and state cmd.run. Any file-write
primitive as one of those UIDs was therefore root.

Two mechanisms behind this are not visible in the diff:

file.recurse also manages the destination directory, so /usr/sbin itself was
chowned to whichever service UID ran last. A directory's owner may always
chmod it, so that UID could replace even the scripts already declared
user: root -- so-config-backup, so-suricata-eve-clean, so-nsm-mount-nvme.
usr_sbin_perms now pins the directory to root:root 555, the mode the
filesystem RPM ships.

Omitting user:/group: is a no-op on files that already exist, because
check_perms only chowns when a user is named. Explicit user: root is what
lets upgraded grids self-heal on the next highstate, and what makes a
revert chown back rather than silently do nothing.
2026-09-16 10:34:20 -04:00
Doug Burks 930985b770 update helpLink references for new documentation 2026-03-18 09:46:45 -04:00
Mike Reeves 19362fe5e5 Update so-combine-bond 2025-08-29 11:06:25 -04:00
Josh Patterson a7a81e9825 always manage script, only run it if bond0 exists 2025-08-29 11:05:42 -04:00
Josh Patterson f51cd008f2 only manage bond script if bond0 exists 2025-08-29 10:04:56 -04:00
Josh Patterson 0858160be2 support for modifying nic channels 2025-08-27 14:51:57 -04:00
Mike Reeves ccd79c814d Add script for bond0 channels 2025-08-27 09:53:37 -04:00
Josh Patterson 480e248131 ensure bond and interfaces only added once 2025-06-20 16:24:54 -04:00
Josh Patterson 445afca6ee use vrt 2025-04-03 13:44:13 -04:00
m0duspwnens 010c205eec configure bond and monitor nics 2025-02-07 14:45:06 -05:00
m0duspwnens f6a8a21f94 remove space 2024-06-05 08:58:46 -04:00
m0duspwnens ff5773c837 move so-tcpreplay back to common. return empty string if no sensor.interface pillar 2024-06-05 08:56:32 -04:00
m0duspwnens a2467d0418 move so-tcpreplay to sensor state 2024-06-05 08:24:57 -04:00
Doug Burks 3fa0a98830 Update verbiage and links in soc_sensor.yaml 2023-08-01 12:45:09 -04:00
Mike Reeves 87a5d20ac9 Sensor NIC offload 2023-08-01 10:03:59 -04:00
Mike Reeves 2875a7a2e5 Sensor NIC offload 2023-08-01 09:48:44 -04:00
Mike Reeves 1c42d70d30 Update soc_sensor.yaml 2023-07-31 10:36:00 -04:00
Mike Reeves eb61b0c98f Adjust sensor annotations 2023-03-20 17:10:36 -04:00