From patchwork Mon Apr 26 12:31:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adolf Belka X-Patchwork-Id: 4221 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4FTPQN4JRsz3yBR for ; Mon, 26 Apr 2021 12:31:24 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4FTPQN14g0zZ0; Mon, 26 Apr 2021 12:31:24 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4FTPQN12dwz2yVt; Mon, 26 Apr 2021 12:31:24 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4FTPQM200Qz2xd3 for ; Mon, 26 Apr 2021 12:31:23 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4FTPQL4jyxzYY; Mon, 26 Apr 2021 12:31:22 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1619440282; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=V3Co6+uXuzlKE5Eu4fNvmzhk1nByZGb4gqegmuoXcrM=; b=uPBviqstEbBLMX9tQfCkrlsiVSL+Y72QHxYUMeTunfMpYObLyF5Jm1FTqDbyKHrGTM6Ma5 F1bi5xe6nsszDGBA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1619440282; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=V3Co6+uXuzlKE5Eu4fNvmzhk1nByZGb4gqegmuoXcrM=; b=kSdPxRTIjey1NGW4tqS/cCtuJ20GaTcQ5vDhLnZkE1K8Oho/J8SLOfwLcfYMBhQPhheqP1 msaPQxQxmmZFimm2nCwxe3ZSTLncQI/wzwcqzErkqT00aMFGAyxPbq7pAsNIotTUjAojP3 feUaQPSHgdUVyc2lTnCld4Rk/I7Wl36YPFCdT3+ApD74aN4PxcIpQR3umqIf5s9W8XW6W7 8PAxqsS+OkSGz/XBs65NbW/SCc7bxgFBPTfZJlPKppqhUYCHA03v19zdxyyuSHiWcB5IrH fT6RHldfqTloZ4W6k8XzUG1r9a+PEA+rGhPZaWl1+/PBP+3oriBjG/qqNSXPZQ== From: Adolf Belka To: development@lists.ipfire.org Subject: [PATCH] libcap-ng: Update to 0.8.2 Date: Mon, 26 Apr 2021 14:31:18 +0200 Message-Id: <20210426123118.3783294-1-adolf.belka@ipfire.org> MIME-Version: 1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 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" - Update from 0.7.9 to 0.8.2 - Update rootfile - Changelog 0.8.2 - In capng_apply, if we blew up in bounding set, allow setting capabilities - If PR_CAP_AMBIENT is not available, do not build libdrop_ambient - Improve last_cap check 0.8.1 - If procfs is not available, leave last_cap as CAP_LAST_CAP - If bounding and ambient not found in status, try prctl method - In capng_apply, move ambient caps to the end of the transaction - In capng_apply, return errors more aggressively. - In capng_apply, if the action includes the bounding set,resync with the kernel - Fix signed/unsigned warning in cap-ng.c - In capng_apply, return a unique error code to diagnose any failure - In capng_have_capability, return 0 for failure - Add the libdrop_ambient admin tool 0.8 - Add vararg support to python bindings for capng_updatev - Add support for ambient capabilities - Add support for V3 filesystem capabilities 0.7.11 - Really clear bounding set if asked in capng_change_id - Add CAP_PERFMON, CAP_BPF, & CAP_CHECKPOINT_RESTORE - Avoid malloc/free in capng_apply (Natanael Copa) - If procfs is not available, get bounding set via prctl - Cleanup some compiler warnings 0.7.10 - Update capng_change_id man page - Add capng_have_permitted_capabilities function - Update filecap to output which set the capabilities are in - Fix filecap to not output an error when a file has no capabilities - Add udplite support to netcap - Fix usage of pthread_atfork (Joe Orton) - Mark processes in child user namespaces with * (Danila Kiver) Signed-off-by: Adolf Belka --- config/rootfiles/common/libcap-ng | 17 ++++++++--------- lfs/libcap-ng | 4 ++-- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/config/rootfiles/common/libcap-ng b/config/rootfiles/common/libcap-ng index 5a02dd7d6..2571cd26a 100644 --- a/config/rootfiles/common/libcap-ng +++ b/config/rootfiles/common/libcap-ng @@ -7,23 +7,21 @@ #usr/lib/libcap-ng.so usr/lib/libcap-ng.so.0 usr/lib/libcap-ng.so.0.0.0 +#usr/lib/libdrop_ambient.la +#usr/lib/libdrop_ambient.so +usr/lib/libdrop_ambient.so.0 +usr/lib/libdrop_ambient.so.0.0.0 #usr/lib/pkgconfig/libcap-ng.pc -#usr/lib/python2.7/site-packages/_capng.la -#usr/lib/python2.7/site-packages/_capng.so -#usr/lib/python2.7/site-packages/capng.py -#usr/lib/python2.7/site-packages/capng.pyc -#usr/lib/python2.7/site-packages/capng.pyo -#usr/lib/python3.8/site-packages/_capng.la -#usr/lib/python3.8/site-packages/_capng.so -#usr/lib/python3.8/site-packages/capng.py #usr/share/aclocal/cap-ng.m4 #usr/share/man/man3/capng_apply.3 +#usr/share/man/man3/capng_apply_caps_fd.3 #usr/share/man/man3/capng_capability_to_name.3 #usr/share/man/man3/capng_change_id.3 #usr/share/man/man3/capng_clear.3 #usr/share/man/man3/capng_fill.3 #usr/share/man/man3/capng_get_caps_fd.3 #usr/share/man/man3/capng_get_caps_process.3 +#usr/share/man/man3/capng_get_rootid.3 #usr/share/man/man3/capng_have_capabilities.3 #usr/share/man/man3/capng_have_capability.3 #usr/share/man/man3/capng_lock.3 @@ -32,10 +30,11 @@ usr/lib/libcap-ng.so.0.0.0 #usr/share/man/man3/capng_print_caps_text.3 #usr/share/man/man3/capng_restore_state.3 #usr/share/man/man3/capng_save_state.3 -#usr/share/man/man3/capng_set_caps_fd.3 +#usr/share/man/man3/capng_set_rootid.3 #usr/share/man/man3/capng_setpid.3 #usr/share/man/man3/capng_update.3 #usr/share/man/man3/capng_updatev.3 +#usr/share/man/man7/libdrop_ambient.7 #usr/share/man/man8/captest.8 #usr/share/man/man8/filecap.8 #usr/share/man/man8/netcap.8 diff --git a/lfs/libcap-ng b/lfs/libcap-ng index 0cbe3e634..ef9c3e1f2 100644 --- a/lfs/libcap-ng +++ b/lfs/libcap-ng @@ -24,7 +24,7 @@ include Config -VER = 0.7.9 +VER = 0.8.2 THISAPP = libcap-ng-$(VER) DL_FILE = $(THISAPP).tar.gz @@ -40,7 +40,7 @@ objects = $(DL_FILE) $(DL_FILE) = $(DL_FROM)/$(DL_FILE) -$(DL_FILE)_MD5 = 2398d695508fab9ce33668c53a89b0e9 +$(DL_FILE)_MD5 = faf1ef766cf068ad1aba4008ced665f7 install : $(TARGET)