openwrt-6.x/package/utils
Hauke Mehrtens 6aad5ab099 px5g-wolfssl: Fix permission of private key
Store the private key with read and write permission for the user only
and not with read permissions for everyone. This converts the
write_file() function from fopen() to open() because open allows to
specify the permission mask of the newly created file. It also adds and
fixes some existing error handling.

OpenSSL does this in the same way already.

With this change it looks like this:
root@OpenWrt:/# ls -al /etc/uhttpd.*
-rw-r--r--    1 root     root           749 Nov  6 23:14 /etc/uhttpd.crt
-rw-------    1 root     root           121 Nov  6 23:14 /etc/uhttpd.key

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2023-11-07 21:55:55 +01:00
..
adb packages: assign PKG_CPE_ID for all missing packages 2023-09-19 20:21:13 +02:00
bcm27xx-userland
bcm4908img
bsdiff bsdiff: Add patches for CVEs 2023-10-09 23:42:37 +02:00
busybox
bzip2
checkpolicy
ct-bugcheck
dtc packages: assign PKG_CPE_ID for all missing packages 2023-09-19 20:21:13 +02:00
e2fsprogs
f2fs-tools
fbtest
firmware-utils
fritz-tools
jboot-tools
jsonfilter
lua lua: opt-out of lto usage 2023-10-29 19:42:32 +01:00
lua5.3 packages: assign PKG_CPE_ID for all missing packages 2023-09-19 20:21:13 +02:00
mdadm
mtd-utils mtd-utils: update to 2.1.6 2023-10-25 16:16:42 +02:00
nvram bcm53xx: Linksys EA9200 nvram and 02_network fixes 2023-10-22 11:11:43 +02:00
osafeloader
policycoreutils
px5g-mbedtls px5g-mbedtls: Fix permission of private key 2023-11-07 21:55:55 +01:00
px5g-wolfssl px5g-wolfssl: Fix permission of private key 2023-11-07 21:55:55 +01:00
ravpower-mcu
secilc
spidev_test
ucode ucode: update to latest Git HEAD 2023-11-02 10:52:36 +01:00
ucode-mod-bpf
uencrypt
ugps
usbmode
util-linux util-linux: update to 2.39.2 2023-10-11 08:08:36 +02:00
yafut yafut: add missing PKG_MIRROR_HASH 2023-10-02 22:13:10 +02:00
zyxel-bootconfig