diff options
| author | Baptiste Daroussin <bapt@FreeBSD.org> | 2026-05-07 18:22:14 +0000 |
|---|---|---|
| committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2026-05-13 09:10:20 +0000 |
| commit | 87b18b611ec9a70347fdd239345fa23977bcb2d0 (patch) | |
| tree | cbb6cd3215745006061adfa4b59ac6452d950ab1 /sys/dev/netmap | |
| parent | 8c5cc4498499f9e3bb64cb6e8244ccd212ee514a (diff) | |
nuageinit: fix command injection and related issues
- Add shell_escape() helper to safely escape shell arguments
- Apply shell_escape to all user-controlled values in shell commands:
adduser (usershow, useradd, lock, primary_group, groups)
addgroup (groupshow, groupadd, members)
exec_change_password (usermod)
settimezone (tzsetup root and timezone)
install_package (pkg package names)
- Escape double quotes in hostname when writing rc.conf.d/hostname
- Add missing 'local' declaration for resolvconf_command in nameservers()
- Escape interface name in resolvconf -a command
- Change open_resolvconf_conf() from 'w' to 'a' mode to prevent
data loss when nameservers() is called multiple times
- Clean up stale resolvconf.conf at the start of each boot
(skip on postnet to preserve config written by first call)
MFC After: 1 day
(cherry picked from commit 8b70a203be10411c560ed303ab25713d70b316e9)
Diffstat (limited to 'sys/dev/netmap')
0 files changed, 0 insertions, 0 deletions
