mirror of
https://github.com/openwrt/packages.git
synced 2026-12-03 09:15:41 +04:00
boinc: fix can't open /proc/stat
Add procfs to boinc jail to allow access /proc/stat Add test.sh to test boinc package Signed-off-by: Hector Espert <hectorespertpardo@gmail.com>
This commit is contained in:
1 parent
fe1c7d7c89
commit
3ea39aa5d7
3 files changed
+7
-2
No files matched your search
+1
-1
@@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
|
||||
PKG_NAME:=boinc
|
||||
PKG_VERSION:=8.2.11
|
||||
PKG_VERSION_SHORT:=$(shell echo $(PKG_VERSION)| cut -f1,2 -d.)
|
||||
PKG_RELEASE:=2
|
||||
PKG_RELEASE:=3
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://github.com/BOINC/boinc
|
||||
|
||||
@@ -49,7 +49,7 @@ start_service() {
|
||||
procd_set_param stderr 1
|
||||
procd_set_param pidfile $PID_FILE
|
||||
|
||||
procd_add_jail $BOINCEXE_NAME log requirejail
|
||||
procd_add_jail $BOINCEXE_NAME log procfs requirejail
|
||||
procd_add_jail_mount /etc/TZ
|
||||
procd_add_jail_mount /proc/cpuinfo /proc/meminfo
|
||||
procd_add_jail_mount /etc/ssl/certs/ca-certificates.crt
|
||||
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
[ "$1" = "boinc" ] || exit 0
|
||||
|
||||
boinc_client --version 2>&1 | grep "$2"
|
||||
Reference in new issue
Block a user