nsjail: update to 3.0
This commit is contained in:
parent
4d82f4c511
commit
2a2c02a372
2 changed files with 5 additions and 49 deletions
|
@ -1,44 +0,0 @@
|
|||
From 9f064737de83ee0fa39bac5c6671a8251fec437e Mon Sep 17 00:00:00 2001
|
||||
From: Robert Swiecki <robert@swiecki.net>
|
||||
Date: Thu, 12 Sep 2019 22:21:49 +0200
|
||||
Subject: [PATCH] user: better formatting directives for printf'like functions
|
||||
|
||||
---
|
||||
user.cc | 10 +++++-----
|
||||
1 file changed, 5 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git user.cc user.cc
|
||||
index d2342aa..e7050dc 100644
|
||||
--- user.cc
|
||||
+++ user.cc
|
||||
@@ -257,22 +257,22 @@ bool initNsFromChild(nsjconf_t* nsjconf) {
|
||||
groupsString += "]";
|
||||
|
||||
if (!setResGid(nsjconf->gids[0].inside_id)) {
|
||||
- PLOG_E("setresgid(%u)", nsjconf->gids[0].inside_id);
|
||||
+ PLOG_E("setresgid(%lu)", (unsigned long)nsjconf->gids[0].inside_id);
|
||||
return false;
|
||||
}
|
||||
|
||||
- LOG_D("setgroups(%lu, %s)", groups.size(), groupsString.c_str());
|
||||
+ LOG_D("setgroups(%zu, %s)", groups.size(), groupsString.c_str());
|
||||
if (setgroups(groups.size(), groups.data()) == -1) {
|
||||
/* Indicate error if specific groups were requested */
|
||||
if (groups.size() > 0) {
|
||||
- PLOG_E("setgroups(%lu, %s) failed", groups.size(), groupsString.c_str());
|
||||
+ PLOG_E("setgroups(%zu, %s) failed", groups.size(), groupsString.c_str());
|
||||
return false;
|
||||
}
|
||||
- PLOG_D("setgroups(%lu, %s) failed", groups.size(), groupsString.c_str());
|
||||
+ PLOG_D("setgroups(%zu, %s) failed", groups.size(), groupsString.c_str());
|
||||
}
|
||||
|
||||
if (!setResUid(nsjconf->uids[0].inside_id)) {
|
||||
- PLOG_E("setresuid(%u)", nsjconf->uids[0].inside_id);
|
||||
+ PLOG_E("setresuid(%lu)", (unsigned long)nsjconf->uids[0].inside_id);
|
||||
return false;
|
||||
}
|
||||
|
||||
--
|
||||
2.24.0
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'nsjail'
|
||||
pkgname=nsjail
|
||||
version=2.9
|
||||
revision=4
|
||||
version=3.0
|
||||
revision=1
|
||||
build_style=gnu-makefile
|
||||
hostmakedepends="bison flex pkg-config protobuf which"
|
||||
makedepends="libnl3-devel protobuf-devel"
|
||||
|
@ -10,9 +10,9 @@ maintainer="Orphaned <orphan@voidlinux.org>"
|
|||
license="Apache-2.0"
|
||||
homepage="http://nsjail.com"
|
||||
distfiles="https://github.com/google/nsjail/archive/${version}.tar.gz
|
||||
https://github.com/google/kafel/archive/722b93a630e53ca472a4c69f61cb3dfc44ea5041.tar.gz"
|
||||
checksum="f8578a48330d3d089c9234a2b562be08043f8fe77453c322724acdf403d0afc3
|
||||
49d2327c794c90aca50a9933c00d453705534b16e5f42d8c8e19c3d274f5e5f8"
|
||||
https://github.com/google/kafel/archive/8e69b8efae415cde3debffbb1e379d9e7a16835a.tar.gz"
|
||||
checksum="cfa66d3ed136b2e221752287b95e544915e8a6760aa866f023b604d14a374919
|
||||
4a6c9a1a70ed99bbed767adc106081b017a3090307ea88cc7e329b82daa1373b"
|
||||
|
||||
archs="aarch64* armv5tel* armv6l* armv7l* x86_64*"
|
||||
|
||||
|
|
Loading…
Reference in a new issue