openwrt/package/utils
Hauke Mehrtens 929c9a58c9 px5g-mbedtls: 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.crt /etc/uhttpd.key
-rw-r--r--    1 root     root           519 Nov  6 22:58 /etc/uhttpd.crt
-rw-------    1 root     root           121 Nov  6 22:58 /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 treewide: replace AUTORELEASE with real PKG_RELEASE 2023-05-18 11:35:29 +02:00
bcm4908img bcm4908img: detect Linksys images 2021-10-02 20:26:42 +02:00
bsdiff bsdiff: Add patches for CVEs 2023-10-09 23:42:37 +02:00
busybox busybox: update to 1.36.1 2023-05-22 20:55:33 +02:00
bzip2 bzip2: add linker option LDFLAGS 2019-10-19 12:49:11 +02:00
checkpolicy checkpolicy: update to 3.5 2023-05-18 10:14:13 +02:00
ct-bugcheck ct-bugcheck: report to https://openwrt.org by default 2019-08-18 15:23:25 +00:00
dtc packages: assign PKG_CPE_ID for all missing packages 2023-09-19 20:21:13 +02:00
e2fsprogs e2fsprogs: do not symlink tune2fs to findfs 2023-07-08 16:51:17 +02:00
f2fs-tools f2fs-tools: update to 1.16.0 2023-05-19 12:07:14 +02:00
fbtest packages/utils: fbtest fix Makefile 2020-05-28 11:22:22 +02:00
firmware-utils firmware-utils: add missing build dependencies 2023-06-01 23:54:20 +02:00
fritz-tools fritz-tools: fix segfault in caldata-extract 2023-03-02 17:04:28 +01:00
jboot-tools firmware: add JBOOT based devices config extractor 2018-03-18 22:22:38 +01:00
jsonfilter jsonfilter: update makefile url 2022-02-26 13:36:30 +01:00
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 mdadm: fix compilation with musl 1.2.4 2023-05-16 22:54:29 +02:00
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 packages: mark packages depending on a target as nonshared 2017-01-24 09:45:05 +01:00
policycoreutils policycoreutils: update to 3.5 2023-05-18 10:14:13 +02:00
px5g-mbedtls px5g-mbedtls: Fix permission of private key 2023-11-07 21:55:55 +01:00
px5g-wolfssl px5g-wolfssl: replace COMMITCOUNT with real PKG_RELEASE 2023-05-18 11:35:29 +02:00
ravpower-mcu ravpower-mcu: bump PKG_RELEASE 2020-07-15 09:56:23 +02:00
secilc secilc: update to 3.5 2023-05-18 10:14:13 +02:00
spidev_test sdk: add spidev-test to the bundle of userspace sources 2022-07-17 14:19:21 +02:00
ucode ucode: update to latest Git HEAD 2023-11-02 10:52:36 +01:00
ucode-mod-bpf ucode-mod-bpf: add new package for a ucode libbpf binding 2023-01-09 11:35:20 +01:00
uencrypt uencrypt: split common and library-specific code 2023-03-17 17:22:54 -03:00
ugps ugps: update to latest HEAD, introduce baudrate 2023-07-26 14:28:09 +02:00
usbmode usbmode: update to version 2022-02-24 2022-02-26 13:36:30 +01:00
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 mediatek: add support for ZyXEL NWA50AX Pro 2023-07-21 20:28:13 +02:00