Skip to content

Improve clusterd security.2 #438

Merged
merged 26 commits into from
Jan 29, 2025
Merged

Improve clusterd security.2 #438

merged 26 commits into from
Jan 29, 2025

Commits on Jan 29, 2025

  1. clusterd: Reap children

    Currently we leave zombies after udp_rx_push2() and possibly in other
    places.
    
    Reap children in the main loop.
    donald committed Jan 29, 2025
    Configuration menu
    Copy the full SHA
    4439dad View commit details
    Browse the repository at this point in the history
  2. clusterd: close STDIN in daemon

    When in daemon mode, close stdin right away. This avoids the need to
    close stdin in various places after a fork.
    donald committed Jan 29, 2025
    Configuration menu
    Copy the full SHA
    afb4946 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3e1cff5 View commit details
    Browse the repository at this point in the history
  4. clusterd: Wait for specific pids

    Now that we accept random children to exist and exit at any time, use
    waitpid() instead of wait() when we wait for a specific child somewhere
    else in the code.
    
    This change revealed an error in udp_rx_exec2() which might have
    executed /sbin/make-automaps redundantly. Fix that. This is not tested
    or analyzed very much, but udp_rx_exec2() is obsolete and should go away
    soon anyway.
    donald committed Jan 29, 2025
    Configuration menu
    Copy the full SHA
    1264eb2 View commit details
    Browse the repository at this point in the history
  5. clusterd: Remove double-forks

    In two places we used double forks, probably so that we don't need to
    reap. Now children are reaped in the main loop, so remove the extra
    forks.
    donald committed Jan 29, 2025
    Configuration menu
    Copy the full SHA
    9a2eaf9 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    756e252 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    8cc7e8b View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    66ad71d View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    6473773 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    90c27dd View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    481951c View commit details
    Browse the repository at this point in the history
  12. clusterd: Improve usage string

    Improve usage string from really ugly to ugly, you are not a designer.
    donald committed Jan 29, 2025
    Configuration menu
    Copy the full SHA
    29bf2c6 View commit details
    Browse the repository at this point in the history
  13. clusterd: Remove push_file() and push_amd_tar()

    Remove the functions which implemented the obsolete commands `--push`
    and `--push-amd-tar`.
    donald committed Jan 29, 2025
    Configuration menu
    Copy the full SHA
    7c40515 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    7cc660e View commit details
    Browse the repository at this point in the history
  15. Remove udp handler udp_rx_exec

    donald committed Jan 29, 2025
    Configuration menu
    Copy the full SHA
    bac1702 View commit details
    Browse the repository at this point in the history
  16. Remove udp handler udp_rx_push

    donald committed Jan 29, 2025
    Configuration menu
    Copy the full SHA
    235ad3b View commit details
    Browse the repository at this point in the history
  17. Remove udp handler amdtardata

    donald committed Jan 29, 2025
    Configuration menu
    Copy the full SHA
    356679a View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    fbad65a View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    d9bc5d7 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    189ec26 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    5a6c5c3 View commit details
    Browse the repository at this point in the history
  22. clusterd: Remove dead code

    donald committed Jan 29, 2025
    Configuration menu
    Copy the full SHA
    96e3be5 View commit details
    Browse the repository at this point in the history
  23. clusterd: Remove stray comment

    donald committed Jan 29, 2025
    Configuration menu
    Copy the full SHA
    6072f02 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    eb7ecab View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    185c5ad View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    2c17224 View commit details
    Browse the repository at this point in the history