Commit Graph

76 Commits

Author SHA1 Message Date
coolsnowwolf
af0d19fcde Revert "procd: update to git HEAD (#7676)"
This reverts commit 0469fc1c98.
2021-08-26 16:46:06 +08:00
coolsnowwolf
cac757ce9e Revert "procd: update to git HEAD (#7738)"
This reverts commit 55360f9eb0.
2021-08-26 16:42:27 +08:00
Beginner
55360f9eb0
procd: update to git HEAD (#7738)
8a8306d uxc.c: fix coverity resource leak warning
 7f2398e jail: devices: create parent folder when creating devices
 0603c8d jail: return to hook callback instead of just calling it
 3edb7eb jail: check return value when opening console
 af048a3 jail: use portable sizeof(void *)
 6010bd3 utils: make sure read() string is 0 terminated
 f6daca3 uxc: free string returned by blobmsg_format_json_indent()
 51f1cd2 trace: free string returned by blobmsg_format_json_indent()
 d716cb5 trace: handle open() return value and make sure string is terminated
 b824a89 jail: preload: avoid NULL-dereference in case things go wrong
 167dc24 jail: protect against strcat buffer overflows

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

Co-authored-by: Daniel Golle <daniel@makrotopia.org>
2021-08-26 11:41:53 +08:00
Beginner
c112db31f0
selinux-policy: update to version 0.9 (#7712)
592ac0f add a note
 4bacd14 sslcertfile: list /etc/ssl
 7bdefa4 example: indicate that skip is an option
 d1e9a85 wifi: sys pipe usage
 eb903e1 README: add note about policycoreutils-setfiles weak dependency
 762e011 ttyd: signull all subjects
 fbfc079 acme: add basic support for acme_cleanup.sh and acme_setup.sh
 9ac7592 acme: transition to sys.subj on generic initscript execution
 f3dd1ba acme: missing rules related to sys.subj trans on file.initscriptfile
 ae273fa odhcp6c/netifd: support drop-in directories
 5fa9b41 subj: do not encourage misconfiguration
 44722b6 blockd, logd, odhcpc6, ubiutil, mtdstordev
 a775d93 21.02 related
 a473691 rcboot runs rcuhttpd which creates /tmp/etc for /tmp/etc/uhttpd
 290e9fb rcuhttpd: related to rcboot and uci-defaults
 3fc0d8b rcuhttpd: lists /etc/uci-defaults
 1f5ef48 removes ubvol.lock policy and adds move mtd/ubi partitions

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

Co-authored-by: Daniel Golle <daniel@makrotopia.org>
2021-08-23 15:09:33 +08:00
Beginner
0469fc1c98
procd: update to git HEAD (#7676)
* procd: update to git HEAD

 48638ad hotplug-dispatch: yet another rare memory leak disovered by Coverity
 459b3e8 jail: fix several issues discovered by Coverity
 2562e2b ujail-console: add missing error handling discovered by coverity

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

* procd: update to git HEAD

 040fecc system: fix issues reported by Coverity
 48f481b service: make sure string read is null terminated
 16dbc2a uxc: fix a bunch of issues discovered by Coverity
 ff9002f uxc: fix help output
 104b49d uxc: support config in uvol

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

* procd: add missing dependency and fix empty mount triggers

procd.sh:
 Instead of triggering on every mount.add event, there should be no
 mount trigger at all in case none of the directories passed to
 procd_add_*_mount_trigger() are located on a mountpoint configured in
 /etc/config/fstab.

uxc:
 add missing dependency on rpcd.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

Co-authored-by: Daniel Golle <daniel@makrotopia.org>
2021-08-17 18:46:22 +08:00
Beginner
0dc87d287d
fstools: update to git HEAD (#7677)
629726d blockd: fix resource leak discovered by coverity scan
 68ae639 libubi: fix several issues discovered by Coverity
 a77c4fa ubi: fix resource leak in legacy codepath
 2e3aca2 block: fix two resources leaks discovered by Coverity

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

Co-authored-by: Daniel Golle <daniel@makrotopia.org>
2021-08-16 16:59:06 +08:00
coolsnowwolf
11533a87cc Merge branch 'master' of https://github.com/coolsnowwolf/lede 2021-08-13 23:32:08 +08:00
coolsnowwolf
8a4db76249 fstools: enable any device with non-MTD rootfs_data volume 2021-08-13 23:31:58 +08:00
Beginner
f575350b7d
procd: update to git HEAD (#7670)
* procd: update to git HEAD

 2dcefbd jail: add support for cgroup devices as in OCI run-time spec

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

* procd: update to git HEAD

 0ee73b2 uxc: implement support for rootfs overlay in containers
 b0a8ea1 jail: do not hack /etc/resolv.conf on container rootfs
 92aba53 jail: increase max additional env records to 64
 15997e6 jail: allow rootfs to be a symbolic link
 0114c6f jail: open() extroot folder before mounting
 ed96eda uxc: check for required blockd mounts

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

* procd: update to git HEAD

 0545905 jail: make use of realpath() for rootfs and overlaydir

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

* procd: update to git HEAD

 9bd1b7f jail: refactor directory handling for rootfs and overlaydir

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

* procd: update to git HEAD

 772292e uxc: don't restart containers when mount shows up
 3a9d910 uxc: resolve volume UUIDs by name of UCI fstab section

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

* procd: update to git HEAD

 f26233e watchdog: Add an info message if the watchdog reset the system

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

* procd: update to git HEAD

Fix build on glibc targets and address a bunch of compiler warnings.

 93fc089 jail: cgroups-bpf: don't use sys/reg.h when building with glibc
 548d057 jail: don't ignore return value of seteuid()
 220b716 jail: ignore return value when creating default /dev symlinks
 78d5baa hotplug-dispatch: don't ignore asprintf() return value
 736aee5 uxc: always handle asprintf() return value
 2b20456 hotplug-dispatch: replace wrongly used assert()
 bfc86a2 jail: cgroups: replace wrongly used assert()
 516bdf2 jail: don't ignore return value of write()

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

* procd: update to git HEAD and add new script helpers

 e10de28 jail: cgroups-bpf: fix compile with musl 1.2
 f5d9b14 hotplug-dispatch: fix rare memory leaks in error paths

Add new init script helpers:
 procd_add_start_mount_trigger
 procd_add_reload_mount_trigger
 procd_get_mountpoints

Both trigger helpers expect a list of paths which are checked against
the mount targets configured in /etc/config/fstab and a trigger for all
mountpoints covered by the list of paths is setup.

procd_get_mountpoints is useful to find out if and which mountpoints
are covered by a list of paths.

Example:
  DATADIRS="/mnt/data/foo /mnt/data/bar /etc/foo/baz /var/lib/doe"

  start_service() {
    [ "$_BOOT" = "1" ] &&
      [ "$(procd_get_mountpoints $DATADIRS)" ] && return 0

    procd_open_instance
    # ...
    procd_close_instance
  }

  boot() {
    _BOOT=1 start
  }

  service_triggers() {
    procd_add_start_mount_trigger $DATADIRS
  }

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

* procd: change procd_add_start_mount_trigger to do restart

Change procd_add_start_mount_trigger to procd_add_restart_mount_trigger
and make it call 'restart' instead of 'start'.
This is more useful as it allows to handle both cases, intial start of
a services as well as restarting services. Calling 'restart' on a
service which has not yet been started has the same result as calling
'start'.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

* procd: update to git HEAD

 9f233f5 system: make rootfs type accessible through board call

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

Co-authored-by: Daniel Golle <daniel@makrotopia.org>
Co-authored-by: Hauke Mehrtens <hauke@hauke-m.de>
2021-08-13 23:17:18 +08:00
Beginner
a0a93fb2e0
rpcd: update to latest Git HEAD (#7655)
1fa3576 session: unload rpcd configuration before checking login

Signed-off-by: Jo-Philipp Wich <jo@mein.io>

Co-authored-by: Jo-Philipp Wich <jo@mein.io>
2021-08-12 10:38:01 +08:00
coolsnowwolf
5d861ddb20 fstools: disable ubifs extroot functionality 2021-08-07 23:22:05 +08:00
coolsnowwolf
f96fa52426 block-mount: fix nand ecc booting delay 2021-08-06 15:16:56 +08:00
dansir
d7bef8a8f4
packages: use old extra_command wrapper (#7259)
* dnsforwarder: use old extra_command wrapper

* zram-swap: use old extra_command wrapper

* ltq-adsl-app: use old extra_command wrapper

* ltq-vdsl-app: use old extra_command wrapper
2021-07-03 14:44:24 +08:00
lean
e3b1fa5ef0 urngd: fix busy loop in case of ioctl cause high cpu usage 2021-06-21 11:52:55 +08:00
lean
13ed5020f3 fstools: enable any device with non-MTD rootfs_data volume to support extroot 2021-06-19 19:26:22 +08:00
lean
b3855f2f18 procd: disable flock 2021-06-16 16:04:30 +08:00
lean
a3f1e837fd x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
lean
7a50383ab6 add kernel 5.10 support and sync with upstream 2021-06-14 18:30:08 +08:00
AmadeusGhost
eb1e8ce8f8
zram-swap: sync upstream source (#6930) 2021-06-05 10:32:05 +08:00
lean
9ae00955cc Revert "rpcd: iwinfo add 802.11ax HE support"
This reverts commit 6d496145ed.
2021-06-03 21:20:27 +08:00
lean
6d496145ed rpcd: iwinfo add 802.11ax HE support 2021-06-03 21:15:18 +08:00
Saxon
3dcb5a5c8a
ca-certicficates: Update to version 20210119 (#6456) 2021-03-03 23:09:55 +08:00
eSir
cdc722a4bb
Revert back to May 12th Version (#5803) 2020-11-17 19:18:31 +08:00
eSir
f1a52ec517
fstools bump version to 2020-10-16 (#5717) 2020-10-26 15:36:08 +08:00
eSir
48b8c58de7
fstools-support-extroot-for-non-MTD-rootfs (#5472) 2020-09-16 20:04:13 +08:00
AmadeusGhost
404209f6c4
kernel: bump to 4.14.193, 4.19.138, 5.4.59 (#5350)
kernel: bump to 4.14.193, 4.19.138, 5.4.59 (#5350)
  431fb8c mac80211: add AQL improvements
  6bdd4c9 mac80211: add missing backports for building with 4.14 kernels
  0106820 mac80211: add missing return code checks in AQL improvements
  e7f7101 mac80211: rework encapsulation offload support

[package]
  base-files: add function for generating random MAC
  dnsmasq: abort dhcp_check on interface state
  boot: sync upstream source code
  ath10k-ct-firmware/mt76/sch_cake: update to latest git HEAD

[script]
  download: add China Mirror Station

[target]
  Sync: arc770, ath79, bcm63xx, kirkwood, lantiq, layerscape,
        mediatek, mvebu, octeon, oxnas, pistachio, uml
  Sync most of the target patches.

Run-compiled-on: ipq40xx (4.19 & 5.4), ramips
2020-08-26 11:31:50 +08:00
coolsnowwolf
351441834c uci: add uci_add_list method 2020-07-06 14:30:34 +08:00
coolsnowwolf
eb2bf74ff5 uci: fix luci firewall rules display error 2020-07-05 13:01:05 +08:00
coolsnowwolf
df073244ab ramips:improve R6850 support 2020-07-04 00:13:20 +08:00
coolsnowwolf
0c95d8abf1 ipq40xx: rework with new v5.4 essedma eth setting 2020-07-03 12:17:04 +08:00
coolsnowwolf
33abeff31c Sync to snapshot kernel 5.4 version 2020-07-02 23:30:56 +08:00
coolsnowwolf
0f7ae686e5 fix uci bug which involed in 0326b4 2020-06-23 10:16:52 +08:00
BoBppy
f317ed5b5d
Add files via upload 2020-06-19 17:19:49 +08:00
BoBppy
3ace77ac4f
Add files via upload 2020-06-19 17:19:16 +08:00
BoBppy
c1cd85e1b4
Add files via upload 2020-06-19 17:18:42 +08:00
BoBppy
98ac6365ae
Add files via upload 2020-06-19 17:17:11 +08:00
AmadeusGhost
6105915786
Wireless: rollback with mac80211 (#4683)
mt76: fix build
ath10k-ct: rollback to 4.19
Revert "iw/iwinfo/mwlwifi: bump version"
Revert "mac80211/5.4: fix build on kernel 4.9"
Revert "mac80211: switch to upstream owl-loader driver"
2020-05-27 11:45:56 +08:00
NivalXer
5ae70efb04
ramips: add support for Linksys EA7500 v2 (#4646)
* ramips: add support for Linksys EA7500 v2

* fix build

* fix build

* update build config
2020-05-22 10:53:12 +08:00
lean
1f040092ce procd: update to latest git HEAD 2020-03-25 22:23:34 +08:00
lean
5ee7b8ac82 Revert "libubox:fix array out of bounds GCC 10 warning"
This reverts commit 2c95a9f5e6.
2020-03-25 20:13:16 +08:00
lean
334f365c2b rpcd: activate PIE ASLR by default 2020-03-25 12:59:53 +08:00
lean
2c95a9f5e6 libubox:fix array out of bounds GCC 10 warning 2020-03-25 12:17:48 +08:00
lean
a6c59c9fb3 procd: actually wire-up netns support 2020-03-22 17:38:19 +08:00
coolsnowwolf
9f8000a6d6 sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
CN_SZTL
951a74ad69
opkg: bump to latest git HEAD (#2914)
* opkg: bump to latest git HEAD

Signed-off-by: CN_SZTL <cnsztl@gmail.com>

* config: add option for opkg
2020-02-03 12:00:39 +08:00
coolsnowwolf
bffe4e4f82 import urandom-seed and urngd for v19.07 2020-02-01 18:35:27 +08:00
AmadeusGhost
5e942cf804 update some packages to latest version (#2760) 2020-01-13 09:47:13 +08:00
Texot
db9b77a624 fstools: make extroot mount preparation more robust (#2675) 2020-01-04 22:20:11 +08:00
LEAN-ESX
7655ad367f fstool: mount/umount fs without reboot 2019-12-08 09:30:10 -08:00
LEAN-ESX
79e84f7ef8 usign: bump version 2019-10-27 01:42:48 -07:00