check group and world permissions of iked psk files
authorjrick <jrick@openbsd.org>
Sat, 13 Apr 2024 15:58:10 +0000 (15:58 +0000)
committerjrick <jrick@openbsd.org>
Sat, 13 Apr 2024 15:58:10 +0000 (15:58 +0000)
commit38100d85fbfe7fb3efed4f57fdcf9283c9a3ecc0
treefb04052c7d82720a93f4705208ff0fbcc73ce240
parentcb1c46410a03437dbc7158308257c9df248fc910
check group and world permissions of iked psk files

Similar to the permission checks performed on iked.conf(5) due to the
possibility of it containing inline psk strings, require psk files to not be
group writable or world read-writable.

ok tobhe@
sbin/iked/parse.y