From patchwork Tue Jun 11 05:02:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Peter_M=C3=BCller?= X-Patchwork-Id: 2296 Return-Path: Received: from mail01.ipfire.org (mail01.i.ipfire.org [172.28.1.200]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail01.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by web07.i.ipfire.org (Postfix) with ESMTPS id 723AC887A4C for ; Mon, 10 Jun 2019 20:02:46 +0100 (BST) Received: from mail01.i.ipfire.org (localhost [IPv6:::1]) by mail01.ipfire.org (Postfix) with ESMTP id 45N2ZY4hgjz52535; Mon, 10 Jun 2019 20:02:45 +0100 (BST) Received: from [127.0.0.1] (114.ip-51-38-69.eu [51.38.69.114]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPSA id 45N2ZT43LBz52532 for ; Mon, 10 Jun 2019 20:02:41 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=201904rsa; t=1560193362; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ehfT9DAIX++26udCZ9lPkdsKUDrvVHWWfoyyszq3rlY=; b=cYmFQ8q62NoyE0qWd5Th1o4vgA8rhLYpevtnfZFwbyqmsMM90tkVfv+QET7BLzpuspV4ob b82UiBDYd8iq75Nmkt+mayqBCWuTaqjzIuFwB7XVtZTSei5F7jpOrO1gToHt9gQ3Jh87vS 8KfVeT5GC7jSSGzAq5nK38FRzjFSvUgBDuszAjWa2P60HZUQusO4ejDXDvZDlP9SLrMTwa x1Xktho3lBLBWzDxpeLIY9jsXc3WIMbyhZiVIpi5coH33stgfax71kK0f/guQPwbxyBheY tvu96cuqXUoe6i8lP1u9A3/OrgEqEv05hsTwCvdFHxTSGJMAAN32G57GtP3l2w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=201904ed25519; t=1560193362; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ehfT9DAIX++26udCZ9lPkdsKUDrvVHWWfoyyszq3rlY=; b=l0hSIT6PAXSV0cM1BkLK7ElkgiYPN9NCUkO0NKZFgZgh+5p36Cb+h3EQ9wDnfMreEnoz/z mNW5FoCvlad4OnAQ== Subject: [PATCH] Tor: fix permissions after updating, too References: <20190610113652.11536-1-ummeegge@ipfire.org> <16323d1c-c9d0-4675-136c-cdd075e3a0e0@ipfire.org> <4e444646-a57f-1998-56ca-83c350d4b8ca@gmail.com> <45B7E08D-B308-46DD-9C85-1CCC8E55B173@ipfire.org> To: "IPFire: Development-List" From: =?utf-8?q?Peter_M=C3=BCller?= Organization: IPFire.org Message-ID: <699c9e88-49ae-17e2-6610-af83de23b581@ipfire.org> Date: Mon, 10 Jun 2019 19:02:00 +0000 MIME-Version: 1.0 In-Reply-To: <45B7E08D-B308-46DD-9C85-1CCC8E55B173@ipfire.org> Content-Language: en-US Authentication-Results: mail01.ipfire.org; auth=pass smtp.auth=pmueller smtp.mailfrom=peter.mueller@ipfire.org X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" Fixes #12088 Signed-off-by: Peter Müller Reported-by: Erik Kapfer --- lfs/tor | 2 +- src/paks/tor/install.sh | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lfs/tor b/lfs/tor index 1e8c3889d..d918910d4 100644 --- a/lfs/tor +++ b/lfs/tor @@ -32,7 +32,7 @@ DL_FROM = $(URL_IPFIRE) DIR_APP = $(DIR_SRC)/$(THISAPP) TARGET = $(DIR_INFO)/$(THISAPP) PROG = tor -PAK_VER = 39 +PAK_VER = 40 DEPS = "libseccomp" diff --git a/src/paks/tor/install.sh b/src/paks/tor/install.sh index 268bccecd..1659871b6 100644 --- a/src/paks/tor/install.sh +++ b/src/paks/tor/install.sh @@ -32,9 +32,10 @@ if ! getent passwd tor; then useradd -u 119 -g tor -c "Tor daemon user" -d /var/empty -s /bin/false tor fi +extract_files +restore_backup ${NAME} + # Adjust some folder permission for new UID/GID chown -R tor:tor /var/lib/tor /var/ipfire/tor -extract_files -restore_backup ${NAME} start_service --background ${NAME}