summaryrefslogtreecommitdiff
path: root/package/system
AgeCommit message (Collapse)Author
2013-11-28ubox: fix handling of uci lists, prevent shell code injection from uci ↵jow
values (#14548) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38938 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-28Revert "ubox: the validation code has problems with the "(" char. use string ↵jow
for now" This reverts commit f7c2ac3ea9b5f2dc4ef4ce4ef195de8a4ac5546b. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38937 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-28procd: fix processing of datatype specification with spacesjow
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38935 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-26ubox: the validation code has problems with the "(" char. use string for nowblogic
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38916 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-25base-files: allow users to delect debug level during bootblogic
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38909 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-25procd: update procd.sh to make use of the new validate_data toolblogic
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38908 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-25ubox: update the validate_data toolblogic
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38907 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-25ubox: fix typo that caused log_file to not be validated properlyblogic
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38906 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-20procd: fix the running hook #38868blogic
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38885 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-20procd: add validation to the log init scriptblogic
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38879 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-19mtd: add a "mtd verify" callblogic
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38871 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-19libubox: ubox: procd: move md5.{c,h} to libuboxblogic
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38870 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-19procd: update to latest git headblogic
* fix up the order of respawn parameters for ubus * add a event broadcast function * add debug level handover between preinit and main process * make the service running trigger be queued directly after the service was startetd * Allow process respawning forever Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38868 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-19procd: emit tty events for ttyUSB* even when they come from the usb-serial ↵nbd
subsystem Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38862 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-16procd: ubox: update to latest git headblogic
move log service from procd to ubox some debloating on procd the preinit part of procd is now also a seperate binary Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38822 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-14ar71xx: Unifi AP Pro sysupgrade patchnbd
The current implementation of mtd will not append the backup file created by sysupgrade to the correct partition, as mtd will append the data to first jffs2 partition it finds. As the kernel is also stored on a jffs2 partition (which resides before the overlay partition), the data will be appended to this partition. To fix this problem, a new option -s <number> skip the first n bytes when appending data to the jffs2 partiton, defaults to "0" is added to mtd. Signed-off-by: Peter Wagner <tripolar@gmx.at> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38807 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-13zram-swap: fix dependencieshauke
swapon/swapoff are no longer provided by swap-utils; they are provided by block-mount instead. Signed-off-by: Nathan Hintz <nlhintz@hotmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38795 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-13procd: remove obselete script install referenceblogic
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38790 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-13procd: options with default values are not parsed properly in the ubus ↵blogic
register code Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38788 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-13procd: update to latest git headblogic
this includes the first wip version of the uci validation backend Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38786 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-10procd: reduce the number of unnecessary calls to /sbin/hotplug-call for tty ↵nbd
devices Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38705 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-08procd: update to latest git headblogic
make sure that automatic respawning is turned off during upgrade Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38695 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-07ubox: fix extroot/extoverlay mounting by label and support mounting by ↵jow
device name git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38680 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-07ubox: update to latest git headblogic
support for specifying swap priority from the command line Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38679 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-07ubus: update to latest git headblogic
adds support for events in the lua binding Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38678 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-05package/ubox: fix jffs2 handling on MTD devices emulated by gluebijuhosg
The jffs2_ready() function in mount_root.c checks the presence of various JFFS2 markers at the start of a given MTD device. The function works on NOR flashes because JFFS2 puts 'cleanmarker' nodes at the start of freshly erased blocks. However if jffs2 is used on a MTD device emulated by the gluebi layer, the 'cleanmarker' nodes are not present and the jffs2_ready() function fails. Update the code to handle jffs2 correctly even on MTD devices emulated by the gluebi layer. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38654 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-10-28ubox: update to latest git HEADblogic
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38554 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-10-26ubox: update to latest git headblogic
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38541 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-10-24procd: update to latest git headblogic
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38529 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-10-15[package] uci: upgrade to latest git versionluka
Fixes issues with UBIFS file system when due to unclean shutdown files would end up with size 0. Furthermore, few style fixes are included too. Signed-off-by: Luka Perkov <luka@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38410 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-10-14ubox: fix extroot after kmodloader changesjow
The kmodloader executable disregarded the global directory prefix in scan_module_folder() leading to a broken extroot for non-builtin modules. Update to current git head to fix the prefix handling again. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38392 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-10-14opkg: ignore empty fields in package listscyrus
This is to work around issues with package list generators creating empty fields in some environments. Based on a patch by Paul Selkrik <pselkrik@isc.org> Signed-off-by: Steven Barth <steven@midlink.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38390 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-10-09procd: fix command handling in procd_add_instance()nbd
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38350 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-10-04opkg: add support for SHA256 verificationcyrus
based on a patch by Evan Hunt <each@isc.org> Signed-off-by: Steven Barth <steven@midlink.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38302 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-10-02Add package signing infrastructurecyrus
Add package signing key and certificate configuration options to the "Image configuration" submenu. If enabled, the Packages.gz list will be signed as file Packages.sig. The passphrase for the signing key can be sourced from a file or entered by the user. The signing certificate is automatically added to the firmware image if opkg-smime is selected. Signed-off-by: Evan Hunt <each@isc.org> Signed-off-by: Steven Barth <steven@midlink.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38284 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-10-01procd: fix incorrect use of sizeof() in vsnprintf()jow
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38268 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-09-30procd: update to latest git headblogic
this fixes the syslog problem when using eglibc on x86. Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38267 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-09-29rpcd: fix missing option removal when merging subsequent uci set callsjow
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38254 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-09-29ubus: restrict unix domain socket permission to 0600 to disallow non-root ↵jow
connections git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38253 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-09-29ubox: support alternative spellings for modinfo and rmmodjow
After this change, "rmmod" and "modinfo" works even if the user gives the file name spelling instead of the kernel internal one, so that e.g. "rmmod nls_iso8859-1.ko" and "rmmod nls_iso8859_1" will both succeed. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38252 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-09-29uci: change uci_ptr checking order in uci_delete()jow
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38251 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-09-28ubox: fix kmod loading for modules with varying dashes & underscores in ↵jow
names (#14182, #14189) Instead of canonicalizing module names in the internal avl tree simpyl use a custom strcmp() variant for the avl tree key comparisation. The custom comperator simply treats dashes and underscores the same, so "nls_iso8859-15" is equal to "nls-iso8859-15". This allows us to simplify the code considerably and makes manual "modprobe" invocations more forgiving when looking up the given module name. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38248 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-09-26opkg: add build variant with signature supportcyrus
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38220 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-09-23[package] fix various init scriptsluka
Changes include: * removing unused variables * replacing spaces with tabs where appropriate * more consistency with variable declarations Signed-off-by: Luka Perkov <luka@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38142 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-09-19package/mtd: enable seama fixup code for ar71xxjuhosg
It will be used for the WD My Net N600. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38073 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-09-17procd: convert various packages to procd style init.d scriptsblogic
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38023 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-09-17procd: update to latest git headblogic
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38022 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-09-17ubox: make use of modprobeblogic
ubox now has modprobe support build and install the tool Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38019 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-09-13rpcd: update to git headjow
- recalculate session ACLs on reload - support negative access group expressions in /etc/config/rpcd - prevent destryoing the default session - use "ubus_rpc_session" attribute as session identifier to enforce JSON-RPC proxy security git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37961 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-09-11rpcd: update to git headjow
- introduces persistent null session to allow access to procedures without login - implements session.login procedure to support user logins via json-rpc git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37941 3c298f89-4303-0410-b956-a3cf2f4a3e73