mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-05 02:35:07 -05:00
Try to simplify the code and make it more robust to potential bugs. Instead of maintaing a table mapping all commands to open/auth permissions, use a short list of open commands. Split the processing of the commands into two groups, read-write commands and read-only (monitoring) commands, where the first group is processed only with full access. Check both the socket descriptor and address type before giving full access. While moving the code, reorder the commands alphabetically.
20 KiB
20 KiB