News draft: kea >= 1:3.0.3-2 update requires manual intervention
Hi everyone, Our Kea (ISC's DHCP server) package is moving to a non-root setup to run services for improved security. This implies a manual intervention for users upgrading from an existing installation. See the news draft below (pad available at https://md.archlinux.org/1TykcWc0TPaz3MAuwfm9Fw). --- Starting with `kea 1:3.0.3-2`, all kea services now run as a dedicated non-privileged `kea` user (instead of `root`) for improved security. This change requires a manual intervention for users upgrading from `kea` <= `1:3.0.3-1` to >= `1:3.0.3-2`, in order to update the permissions and ownership of the kea files and directories accordingly. After upgrading, run the following commands to update permissions and ownership of kea files and directories, then restart the affected services (if they are running): ```bash chmod 755 /etc/kea/{,radius} /usr/include/kea/{,asiodns,asiolink,cc,config,config_backend,cryptolink,d2srv,database,dhcp,dhcp_ddns,dhcpsrv,dhcpsrv/parsers,dns,eval,exceptions,hooks,http,log,log/interprocess,mysql,pgsql,process,process/cfgrpt,stats,tcp,util,util/encode,util/io} /usr/lib/kea/{,hooks} /usr/lib/python3.14/site-packages/kea/{,__pycache__/} /usr/share/kea/{,api,meson-info,scripts,scripts/mysql,scripts/pgsql} chmod 644 /etc/kea/*.conf /etc/kea/radius/* chown kea: /var/lib/kea/* /var/log/kea/* /run/lock/kea/logger_lockfile systemctl try-restart kea-ctrl-agent.service kea-dhcp{4,6,-ddns}.service ``` If necessary, you can run `pacman -Qkk kea` to find any other permission deviations and adjust as needed. --- -- Regards, Robin Candau / Antiz
On 4/5/26 10:14 AM, Robin Candau wrote:
Hi everyone,
Our Kea (ISC's DHCP server) package is moving to a non-root setup to run services for improved security. This implies a manual intervention for users upgrading from an existing installation.
See the news draft below (pad available at https:// md.archlinux.org/1TykcWc0TPaz3MAuwfm9Fw).
[...]
Based on inputs I got (thanks grawity and Foxboron), I further modified the package to automate parts of the required change during the upgrade and make the announcement text and manual commands more concise. New draft below. --- # kea >= 1:3.0.3-3 update requires manual intervention The `kea` package has moved all services to run as a dedicated `kea` user (instead of `root`) for improved security. This change requires permission updates to the runtime files created by the `kea` services. Users upgrading from an existing `kea` installation should therefore run the following commands after the upgrade: ```bash chown kea: /var/lib/kea/* /var/log/kea/* /run/lock/kea/logger_lockfile systemctl try-restart kea-ctrl-agent.service kea-dhcp{4,6,-ddns}.service ``` Accounts that need to interact with `kea` services files (e.g. lease files under `/var/lib/kea`, log files under `/var/log/kea` or configuration files under `/etc/kea`) should be added to the `kea` group. --- -- Regards, Robin Candau / Antiz
participants (1)
-
Robin Candau