openwrt/package
Hauke Mehrtens 5106f554bb 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>
(cherry picked from commit 6aad5ab099)
2023-11-08 19:04:11 +01:00
..
base-files base-files: fix wrong ucidef_set_network_device_mac network-device entry 2023-10-20 13:09:47 +02:00
boot mediatek: add CMCC RAX3000M support 2023-11-07 00:46:00 +01:00
devel perf: opt-out of lto usage 2023-08-11 12:53:34 +02:00
firmware packages: assign PKG_CPE_ID for all missing packages 2023-09-27 22:37:01 +02:00
kernel build: hide kmod-zram config unless enabled 2023-10-31 00:44:03 +01:00
libs mbedtls: Activate secp521r1 curve by default 2023-11-07 00:37:20 +01:00
network hostapd: use rtnl to set up interfaces 2023-11-08 12:47:46 +01:00
system urngd: update to version 2023-11-01 2023-11-01 22:22:45 +01:00
utils px5g-wolfssl: Fix permission of private key 2023-11-08 19:04:11 +01:00
Makefile build: add CycloneDX SBOM JSON support 2023-11-02 14:44:47 +00:00