From patchwork Thu Jul 16 10:18:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Michael Kerrisk (man-pages)" X-Patchwork-Id: 11667095 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 49967618 for ; Thu, 16 Jul 2020 10:18:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 294E220775 for ; Thu, 16 Jul 2020 10:18:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="WZqgH0CS" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726202AbgGPKSd (ORCPT ); Thu, 16 Jul 2020 06:18:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726190AbgGPKSc (ORCPT ); Thu, 16 Jul 2020 06:18:32 -0400 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6CCC1C061755 for ; Thu, 16 Jul 2020 03:18:32 -0700 (PDT) Received: by mail-wm1-x333.google.com with SMTP id q15so9788086wmj.2 for ; Thu, 16 Jul 2020 03:18:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=6AOzZ14SVUOE16zA82Tvkg9B3ZamwJzL6LbuYN6274w=; b=WZqgH0CSof1WY3MvFmOjIbq3CI/rc+xs9HCYf05cDVBVnoR4SVZH7QfnbscYLyHLs1 zMYLSPhM7/JuvXGKFpjYXlQ/SNHZx/WQDf2S68W5hs6cI9+um0UnHNPPJBeAVZDhpmlq KiQyzZ0iObZOIdJDV8PJ4emu7j87M9jIZkAtrRmRg3xrl9JeMUpS58NNpV1mCSUppIDk 4bFCZ8lNcqf4TKyRmU1IUdtIkupzkS9+XL8dx4b/fKhK7EjHabhlUQgjATSopKLmDh5+ JipA5PHR2lnEov4nHl4nVwAoTi9/dkD9Re8DbduUWnlEbBh6sQp/ZJ5Jvt+luaH9dxsA NlOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=6AOzZ14SVUOE16zA82Tvkg9B3ZamwJzL6LbuYN6274w=; b=Dh+d79NwoWcAD/11guKdUKxYGN6MamAB/XqU6dgeObezzcrVJKzuji49uop4XuTvw2 gO1+BcAk45Ur47aPHGQL9HfgVtgkauRs5PUfhx1Pzy497qsNu3+6DwCRi9U1qqUTfa5z amZbgFrx8phziUOOWvJXAfY8dhDtTznrbQ4G4CcaDuF6q/wTgK103Jcf18K32FEGzwVD FBpZlzmdGg/e/OoppQtZA0HY24hNkaCOZ90RqZeQZVr6v+OeqpK8bt6kr9BKjD4idRz/ sW7S0V4O9/UVvr30bwHOqQuZrjWcxOkxO1DsLDSUgdnndNrAHJhz2WDUzs8QeHPY3I7u SI3Q== X-Gm-Message-State: AOAM533cgmTOCKWF1Hww+ImBwOzzZEAa5MhY+WSG+Err+DSHygsRM7VA 8plBhNppBe3EgEBma+1npxM= X-Google-Smtp-Source: ABdhPJyGO6azkkiFYiS0BDRJ3dOdpAJUq+o/ObZeIDMp6dGK2wzSClDLgXFlwQhq8/1A+D3n5DSVeg== X-Received: by 2002:a1c:408b:: with SMTP id n133mr3722218wma.88.1594894710708; Thu, 16 Jul 2020 03:18:30 -0700 (PDT) Received: from bienne.fritz.box ([2001:a61:3adb:8201:9649:88f:51f8:6a21]) by smtp.gmail.com with ESMTPSA id 33sm8935059wri.16.2020.07.16.03.18.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2020 03:18:30 -0700 (PDT) From: "Michael Kerrisk (man-pages)" To: mtk.manpages@gmail.com, "Andrew G . Morgan" Cc: linux-security-module@vger.kernel.org Subject: [PATCH 01/16] Manual pages: getcap.8, getpcaps.8, setcap.8: SEE ALSO: add capabilities(7) Date: Thu, 16 Jul 2020 12:18:12 +0200 Message-Id: <20200716101827.162793-1-mtk.manpages@gmail.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Sender: owner-linux-security-module@vger.kernel.org Precedence: bulk List-ID: Signed-off-by: Michael Kerrisk (man-pages) --- doc/getcap.8 | 1 + doc/getpcaps.8 | 1 + doc/setcap.8 | 1 + 3 files changed, 3 insertions(+) diff --git a/doc/getcap.8 b/doc/getcap.8 index 05ee9bb..0547ff9 100644 --- a/doc/getcap.8 +++ b/doc/getcap.8 @@ -31,4 +31,5 @@ https://bugzilla.kernel.org/buglist.cgi?component=libcap&list_id=1047723&product .SH "SEE ALSO" .BR cap_get_file (3), .BR cap_to_text (3), +.BR capabilities (7), .BR setcap (8) diff --git a/doc/getpcaps.8 b/doc/getpcaps.8 index b070a3c..53d342e 100644 --- a/doc/getpcaps.8 +++ b/doc/getpcaps.8 @@ -34,6 +34,7 @@ Displays output in a somewhat ugly legacy format. Displays usage in a legacy-like format but not quite so ugly in modern default terminal fonts. .SH SEE ALSO +.BR capabilities (7), .BR capsh "(8), " setcap "(8) and " getcap (8). .br .SH AUTHOR diff --git a/doc/setcap.8 b/doc/setcap.8 index 445ed03..da95afb 100644 --- a/doc/setcap.8 +++ b/doc/setcap.8 @@ -58,4 +58,5 @@ https://bugzilla.kernel.org/buglist.cgi?component=libcap&list_id=1047723&product .SH "SEE ALSO" .BR cap_from_text (3), .BR cap_get_file (3), +.BR capabilities (7), .BR getcap (8) From patchwork Thu Jul 16 10:18:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Michael Kerrisk (man-pages)" X-Patchwork-Id: 11667097 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 35B6660D for ; Thu, 16 Jul 2020 10:18:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1B4BE2074B for ; Thu, 16 Jul 2020 10:18:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="CnULQ+Jx" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726239AbgGPKSh (ORCPT ); Thu, 16 Jul 2020 06:18:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726190AbgGPKSg (ORCPT ); Thu, 16 Jul 2020 06:18:36 -0400 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A211C061755 for ; Thu, 16 Jul 2020 03:18:36 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id z13so6478677wrw.5 for ; Thu, 16 Jul 2020 03:18:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=NDt2xal84TATsstOSphmaodG2nGyovL6j06R7GLtHSQ=; b=CnULQ+JxnvrBvP3CVEPqy+kflvLtkvTcHvw62fEqw+JJZapNqIX7/WLn2seql+rAvA Iycsnv4mqumdBCDxPGe7ttG6p4V7Dxt9hEKM9SMek+nPofwPtU1LaFSUa7SrRIu84W+V c+jhvhVFhJbSCM5WMiabsJCPauOPYOWtIwifZZnutbIpVj0SZpygjwbFVmm6UnXrCkr8 qATyNQfZ4aaVxpB7jJvzzE4l5C3u7dJI34k7BaeGfrWOw4qHieAI4ifhoEnMu4M8i91U KV7PGkYOERwKbDzuvHW2jqPDXxTvc+WsXCO47+6ue4PB2c3YnF8Jmvw17BEaZ6584JZJ j+Lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=NDt2xal84TATsstOSphmaodG2nGyovL6j06R7GLtHSQ=; b=lTglh9jz9CJ6yWTQTEd+WQ4NQeSj06/gnoabIKZoMdp0dAvWdGtp5ajrTp7ChzK2v+ LupLKaHqONoqOVbopg3hh3pJGCA/dpZ4UG6J10CV7Ukmy17gU7ksS1nfpD/IQIg1gJ22 xK+q2ZEJIGlzwaTNZU/kCBkPzUmj3CwQfF6b7dSdVzUFKLyu1KA4qseUHeUiqYXcEkal m7WKBZ4g9/ACTEcgyMTrksodTqgmK3onD3wTs74Fq/ukVOwPLZXGN/Dl2C9KX3/RZBw7 HsWgoe5MyPjKTUEEaubYT3PW4syG2kCtHY4xFDrSzW4d3oz2PzTd+aRI1ZJoNDztwEQI 0JXA== X-Gm-Message-State: AOAM5306DxQNGFNTUVRlrXw/nE9sh4J/xvFZko2ApJSA2FsCQFbxG4Ai MjpX+Pwvzo+ti7ppKl24+mw= X-Google-Smtp-Source: ABdhPJzSaQaS21LlMBeMl3T7Hr2RMN7lGH5fZ16XRMd/vMzCv1fyRQ4F9dB262v1kwLi4RSPyNSL0Q== X-Received: by 2002:a5d:444e:: with SMTP id x14mr4126071wrr.279.1594894715292; Thu, 16 Jul 2020 03:18:35 -0700 (PDT) Received: from bienne.fritz.box ([2001:a61:3adb:8201:9649:88f:51f8:6a21]) by smtp.gmail.com with ESMTPSA id k126sm8562152wme.17.2020.07.16.03.18.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2020 03:18:34 -0700 (PDT) From: "Michael Kerrisk (man-pages)" To: mtk.manpages@gmail.com, "Andrew G . Morgan" Cc: linux-security-module@vger.kernel.org Subject: [PATCH 02/16] Manual pages: cap_get_file.3, getcap.8, setcap.8: SEE ALSO: add user_namespaces(7) Date: Thu, 16 Jul 2020 12:18:13 +0200 Message-Id: <20200716101827.162793-2-mtk.manpages@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200716101827.162793-1-mtk.manpages@gmail.com> References: <20200716101827.162793-1-mtk.manpages@gmail.com> MIME-Version: 1.0 Sender: owner-linux-security-module@vger.kernel.org Precedence: bulk List-ID: Since namespaces are mentioned in this page, it's wise also to have a reference to the relevant page that explains the concept. Signed-off-by: Michael Kerrisk (man-pages) --- doc/cap_get_file.3 | 3 ++- doc/getcap.8 | 1 + doc/setcap.8 | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/cap_get_file.3 b/doc/cap_get_file.3 index a99ab40..9c115a6 100644 --- a/doc/cap_get_file.3 +++ b/doc/cap_get_file.3 @@ -136,4 +136,5 @@ Permitted or Inheritable flag enabled. .BR cap_from_text (3), .BR cap_get_proc (3), .BR cap_init (3), -.BR capabilities (7) +.BR capabilities (7), +.BR user_namespaces (7) diff --git a/doc/getcap.8 b/doc/getcap.8 index 0547ff9..497699c 100644 --- a/doc/getcap.8 +++ b/doc/getcap.8 @@ -32,4 +32,5 @@ https://bugzilla.kernel.org/buglist.cgi?component=libcap&list_id=1047723&product .BR cap_get_file (3), .BR cap_to_text (3), .BR capabilities (7), +.BR user_namespaces (7), .BR setcap (8) diff --git a/doc/setcap.8 b/doc/setcap.8 index da95afb..99e3c36 100644 --- a/doc/setcap.8 +++ b/doc/setcap.8 @@ -59,4 +59,5 @@ https://bugzilla.kernel.org/buglist.cgi?component=libcap&list_id=1047723&product .BR cap_from_text (3), .BR cap_get_file (3), .BR capabilities (7), +.BR user_namespaces (7), .BR getcap (8) From patchwork Thu Jul 16 10:18:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Michael Kerrisk (man-pages)" X-Patchwork-Id: 11667099 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2FC58618 for ; Thu, 16 Jul 2020 10:18:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0CB5D207F9 for ; Thu, 16 Jul 2020 10:18:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="j8IbH/UL" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726350AbgGPKSl (ORCPT ); Thu, 16 Jul 2020 06:18:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726190AbgGPKSl (ORCPT ); Thu, 16 Jul 2020 06:18:41 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3CF1C061755 for ; Thu, 16 Jul 2020 03:18:40 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id a6so6484498wrm.4 for ; Thu, 16 Jul 2020 03:18:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=hwYJlQJTWFv4AtMgV7te7t46Z+LFjZ2qJ2kbUgXrFfQ=; b=j8IbH/ULwIZTPJXhcYDZMdz0HN6uEzebxxHQS3cZ6hcopG7/wXmpMnARPAl8eaptK+ EbL1eBiGVRg6V2clwzzlHyM4qYhkCjqSJSP/4bkDhGAITnCZsobZ50f/u+UW1bFLSpcM 3KFTg3I0tnKRjxNY5V5mS4SXPeTXHdDp0tL8wkfTgXYCjJNOH+SORlO6dg5g0AuRa0zA IWRfAfebgSUGEKh3UMPEPrs7CYZB6cDtHbFThEtoROSiaAsB5ulQat5ge0gXa1pw/rl/ jtDZ31Nz21U6mzi/HrJyncFobYYJb9USn94o5w0fnEYqT1RKjw5V8+wI6yqYXPXdP8v8 G+AQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=hwYJlQJTWFv4AtMgV7te7t46Z+LFjZ2qJ2kbUgXrFfQ=; b=fVfomDcinzNTYJ3E5x3gWTU4a3YQxJokkuK7jAST7OerVUvlYPLxzQQD4qOWi+f89m OXwnXN6ztFEbqbY010/L4mmQTEXC5KvKi7AY0wIyqTqgRfSIymr6h7Y/P3VCfNwV6jdT GKr45xCdIeWCnZvAKrzQsB77mtP4aQRr5CDRtC9YWDTCWiAEmFW4kT6P9y5yYJjEKMG6 zsU31P7FoBtobrFqcLf07eP03Qaa0sDW/ybJkfesxRBkV8RzumCrw+KwiIoCJQmzXSmT eiUAZX5KCyXYNnypt+/mzNjwpBGnZuMnavoLZu5ZXP2sgz2tyRhs3ZZd0VqqVIXZJDax 3jsQ== X-Gm-Message-State: AOAM533KaY+nB8wNCUTobguyxQNOrD0UWu8HYauC79RNGJ4F0ioM3nG+ XS/x8M30xAQtwmpF1ZnuB7k= X-Google-Smtp-Source: ABdhPJxp33ubWQsiFvTON9qoQiQBtIMwqGIaF9ZAcOvmKNnBIbaapCyGp3O6IxMBdAf4XHkoHeTCUw== X-Received: by 2002:a5d:4a84:: with SMTP id o4mr4493277wrq.104.1594894719644; Thu, 16 Jul 2020 03:18:39 -0700 (PDT) Received: from bienne.fritz.box ([2001:a61:3adb:8201:9649:88f:51f8:6a21]) by smtp.gmail.com with ESMTPSA id w7sm7503996wmc.32.2020.07.16.03.18.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2020 03:18:39 -0700 (PDT) From: "Michael Kerrisk (man-pages)" To: mtk.manpages@gmail.com, "Andrew G . Morgan" Cc: linux-security-module@vger.kernel.org Subject: [PATCH 03/16] Manual pages: setcap.8: Formatting fix: use bold for function name Date: Thu, 16 Jul 2020 12:18:14 +0200 Message-Id: <20200716101827.162793-3-mtk.manpages@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200716101827.162793-1-mtk.manpages@gmail.com> References: <20200716101827.162793-1-mtk.manpages@gmail.com> MIME-Version: 1.0 Sender: owner-linux-security-module@vger.kernel.org Precedence: bulk List-ID: Signed-off-by: Michael Kerrisk (man-pages) --- doc/setcap.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/setcap.8 b/doc/setcap.8 index 99e3c36..90aa13f 100644 --- a/doc/setcap.8 +++ b/doc/setcap.8 @@ -25,7 +25,7 @@ argument is also verified. The .I capabilities are specified in the form described in -.IR cap_from_text (3). +.BR cap_from_text (3). .PP The special capability string, .BR '\-' , From patchwork Thu Jul 16 10:18:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Michael Kerrisk (man-pages)" X-Patchwork-Id: 11667101 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1AF9760D for ; Thu, 16 Jul 2020 10:18:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id ECC0820775 for ; Thu, 16 Jul 2020 10:18:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="H7lVPDZX" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726383AbgGPKSq (ORCPT ); Thu, 16 Jul 2020 06:18:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726190AbgGPKSp (ORCPT ); Thu, 16 Jul 2020 06:18:45 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 491D7C061755 for ; Thu, 16 Jul 2020 03:18:45 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id z13so6479092wrw.5 for ; Thu, 16 Jul 2020 03:18:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=0MKnmfFInl1OgZTiFvBgHkHHCTJlDGqRuJxICpPlVC0=; b=H7lVPDZXkR0YksJ4bvHBmYMBpf40Kcm+Gz7+jOlUQMSJ2kifQMz7LMk+URuoRKQCvz mvdZv7yyKX5qfU25fn4zeTBtNbBTLQxsG+Ti+85o7LnUn0vQER8HJaqZWOEATrxfmW1f ByeEedcyOQR7X3NZ+0tNPUhqK2bQdRlOGreXM9oZPiS1PY5AFb28u6msR3J+7qAu58Vx MxMdI28sMWECTHiVikw2gwnuf8OtE+SiLiAGHums+n4pFQovtRoBecs08TC28l4Va1+p MuA2o+NcnU5/G8vgzkB6F8jfNWM+fn2prmP1hiuZoB02JdIQf78nJoDAsBxIJeYkPi7o cs8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=0MKnmfFInl1OgZTiFvBgHkHHCTJlDGqRuJxICpPlVC0=; b=bHA80HkPOOeGypjpPVqRs0NpoLSXmTvTVoQzFWiF0ltMosJmjdpd2816s52wFyLhGT gjdPl8QA1tQCZuf1XENc8vS3W75eNkUeXUYajLeZ9PHav/+XOmaVtUNyBAcUM94RWTlp H1sxDpcjAZI64OMvvXSZ4/kTrpVV8wzQryE++MxPKHCL9PyqkdneFpVSnz3mh7niKF2y uTHSNYjpF93mDmGCHV+lqNXS8U3AxnE1XM6AQRc/W8xV2I2tVYErGYDJwH8LEd/mKOPh pQAsVLNMfzYTgYZfDu40sesWC5GS5MGInPMet+yYp70YeTglWEYjLDypOc4Z2D3jDS4O Q2wQ== X-Gm-Message-State: AOAM533CZ4gB/h2QvdmGGLMwkdlqKtyor7KssEi+nSkS2Rzizt8FTeH0 JXBaE/kFRD//ctXNsMQ6mIw= X-Google-Smtp-Source: ABdhPJwt/UbZ7ei8vCjHp/NXp23SDFB2HMr6bvM/DBQ32daplUQ3823yRF/YbOCF12ZbMNlTQFdTaQ== X-Received: by 2002:adf:b608:: with SMTP id f8mr4653530wre.363.1594894724047; Thu, 16 Jul 2020 03:18:44 -0700 (PDT) Received: from bienne.fritz.box ([2001:a61:3adb:8201:9649:88f:51f8:6a21]) by smtp.gmail.com with ESMTPSA id v3sm8292584wrq.57.2020.07.16.03.18.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2020 03:18:43 -0700 (PDT) From: "Michael Kerrisk (man-pages)" To: mtk.manpages@gmail.com, "Andrew G . Morgan" Cc: linux-security-module@vger.kernel.org Subject: [PATCH 04/16] Manual pages: cap_from_text.3: typo fix Date: Thu, 16 Jul 2020 12:18:15 +0200 Message-Id: <20200716101827.162793-4-mtk.manpages@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200716101827.162793-1-mtk.manpages@gmail.com> References: <20200716101827.162793-1-mtk.manpages@gmail.com> MIME-Version: 1.0 Sender: owner-linux-security-module@vger.kernel.org Precedence: bulk List-ID: Signed-off-by: Michael Kerrisk (man-pages) --- doc/cap_from_text.3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/cap_from_text.3 b/doc/cap_from_text.3 index 455a52d..e59ca59 100644 --- a/doc/cap_from_text.3 +++ b/doc/cap_from_text.3 @@ -172,7 +172,7 @@ The example program below demonstrates the use of .BR cap_from_text () and .BR cap_to_text (). -The following shell session shows a some example runs: +The following shell session shows some example runs: .nf $ ./a.out "cap_chown=p cap_chown+e" From patchwork Thu Jul 16 10:18:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Michael Kerrisk (man-pages)" X-Patchwork-Id: 11667103 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0CED260D for ; Thu, 16 Jul 2020 10:18:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E7E3020775 for ; Thu, 16 Jul 2020 10:18:50 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="eEqqPMRm" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726537AbgGPKSu (ORCPT ); Thu, 16 Jul 2020 06:18:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726075AbgGPKSt (ORCPT ); Thu, 16 Jul 2020 06:18:49 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6549C061755 for ; Thu, 16 Jul 2020 03:18:49 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id f2so6457814wrp.7 for ; Thu, 16 Jul 2020 03:18:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=9Jymf/fV1v9U0nn13ckikvGFoC4Q4Gd26Q+zfmxDfgc=; b=eEqqPMRm4J7rNT+sDZvgURAWCOdHLDUMke7xBWRA031+dGM/Mmlh7QhoegLHaAEFTZ kwTGLnbDDRG/WGerYDXyolOuHntOeJXBaBH7O/GcbmQ9lLxP9fSVZZJo2d1r83RwIjVE oV5Rfd6M98v/YH4EsM+OAS+iT+15VLTHBwDp/SXRpGkl4qdjDYUfyYjIiv3edoDUPL/T hPzQ6/7S+FEuCXPlxDPorf2UMmJNJkQQn2IP0y0CBGvjmJmPwiaLa91AECeyZPnp+Iks 502OyErFMwQidbZj0itA6islmnbx3NJ5heoQTdCashCvrfY2RYJg4tBwy5SMOjSB3p5V 43oA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=9Jymf/fV1v9U0nn13ckikvGFoC4Q4Gd26Q+zfmxDfgc=; b=tpHkHBVw+nCCKwULOR16za9VYl1YfrNvVgUdjf8uvz34xN+Vh80coitF9PJYmTkvh8 eGYHkfwaUu3N9TdEUBg2rKJzxjvB8T5PuHa1Q9mxtwLBhi2NAQIe3seL5R3y+U4OYwsu PwMv7QRSaM19dCZlcHicOSWNRRDFls+AH21k8R9M5GZlC8tLCa3xMhtkI4NI3Wf6DsX5 lg0RsZoI5M7mWRd8ZmpoAmPMKPMcQj8b7D9QSglw4jigSV77dHlN6GV5eFlLDFMfRhos Y6iy2Vx+78ye2lc8FuW11/8ZYePYw2TFR/7s2Xa0odghLCefAimjGAHz5d34b4v6eRC+ kQYg== X-Gm-Message-State: AOAM531afCN85B0nZGkVu6BIpihvPZguhP/LWtIc0goRxkkuWywTr+dP 1RAZsA7DEaASCU3rEoVyOsM= X-Google-Smtp-Source: ABdhPJwlKxeJ9rAEQtyvwxrXflFJYJfKfcxzjafJYXpKPYBgsZsWMENmbD9hLh+U366SETAtJqzrQA== X-Received: by 2002:a5d:43d2:: with SMTP id v18mr4342546wrr.196.1594894728455; Thu, 16 Jul 2020 03:18:48 -0700 (PDT) Received: from bienne.fritz.box ([2001:a61:3adb:8201:9649:88f:51f8:6a21]) by smtp.gmail.com with ESMTPSA id f12sm8418673wrw.53.2020.07.16.03.18.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2020 03:18:48 -0700 (PDT) From: "Michael Kerrisk (man-pages)" To: mtk.manpages@gmail.com, "Andrew G . Morgan" Cc: linux-security-module@vger.kernel.org Subject: [PATCH 05/16] Manual pages: cap_get_file.3, getcap.8, setcap.8: clarify "namespace" Date: Thu, 16 Jul 2020 12:18:16 +0200 Message-Id: <20200716101827.162793-5-mtk.manpages@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200716101827.162793-1-mtk.manpages@gmail.com> References: <20200716101827.162793-1-mtk.manpages@gmail.com> MIME-Version: 1.0 Sender: owner-linux-security-module@vger.kernel.org Precedence: bulk List-ID: In these pages, the "namespace" that is being mentioned is the "user namespace". Make this clearer by adding the word "user". Signed-off-by: Michael Kerrisk (man-pages) --- doc/cap_get_file.3 | 2 +- doc/getcap.8 | 2 +- doc/setcap.8 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/cap_get_file.3 b/doc/cap_get_file.3 index 9c115a6..42255ee 100644 --- a/doc/cap_get_file.3 +++ b/doc/cap_get_file.3 @@ -69,7 +69,7 @@ capability state to any file type other than a regular file are undefined. .PP A capability set held in memory can be associated with the rootid in -use in a specific namespace. It is possible to get and set this value +use in a specific user namespace. It is possible to get and set this value (in the memory copy) with .BR cap_get_nsowner () and diff --git a/doc/getcap.8 b/doc/getcap.8 index 497699c..d867203 100644 --- a/doc/getcap.8 +++ b/doc/getcap.8 @@ -13,7 +13,7 @@ displays the name and capabilities of each specified prints quick usage. .TP 4 .B \-n -prints any non-zero namespace rootid value found to be associated with +prints any non-zero user namespace rootid value found to be associated with a file's capabilities. .TP 4 .B \-r diff --git a/doc/setcap.8 b/doc/setcap.8 index 90aa13f..ae044aa 100644 --- a/doc/setcap.8 +++ b/doc/setcap.8 @@ -15,7 +15,7 @@ to the specified. The optional .B \-n argument can be used to set the file capability for use only in a -namespace with this rootid owner. The +user namespace with this rootid owner. The .B \-v option is used to verify that the specified capabilities are currently associated with the file. If \-v and \-n are supplied, the From patchwork Thu Jul 16 10:18:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Michael Kerrisk (man-pages)" X-Patchwork-Id: 11667105 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CCA7C618 for ; Thu, 16 Jul 2020 10:18:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A8C4E2074B for ; Thu, 16 Jul 2020 10:18:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="du/YJfgs" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726190AbgGPKS4 (ORCPT ); Thu, 16 Jul 2020 06:18:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726075AbgGPKSz (ORCPT ); Thu, 16 Jul 2020 06:18:55 -0400 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6A0DC061755 for ; Thu, 16 Jul 2020 03:18:54 -0700 (PDT) Received: by mail-wr1-x432.google.com with SMTP id k6so6493737wrn.3 for ; Thu, 16 Jul 2020 03:18:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=tYLFK9MQZoeCsCBrEsDxeXYg5eoqikO7agT9zmA5iGo=; b=du/YJfgsgNK8OcMXijZiALrc1JcULNiUHq1xNF+AAKjVy+QyuNoOVLIH3loEKUFCN1 3xxjOeC5315pFA+FL0rAHI3mQJ2XPtde0Ew++Mwbn+3B5UkLarI2Wx6IUeIGE8ieqz3A Afslo7cjqHzYGRT6vtBX0xqXdhZrE+OIqbOFwwGqPqAPawGJVnQLDcMed5B9yL6Cm7I0 4QwJnJuZoypbNXb6tcWpxF7Rk8z7wXHFJM0RHjnIOB3SBEg6D2pBmyIEdvxyndBPD4Uo Z5ca83HEYyktq32tV0qh6GP+Vpt3bavwr6D3nT740hYq3kBTu2c7PWl4mB0gCI59phuN 0Nig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=tYLFK9MQZoeCsCBrEsDxeXYg5eoqikO7agT9zmA5iGo=; b=Chw+HiNK/q6wz30Lja4j1iI3Zyca8WJnrHsA+jHDauaetS9+V6iH7gjr83c5yYmVCC tckGf1yLSAqdSI2n2x01d/KXHIZXWBrPLaEILJu+0DRcx/f/985djraI/u3FhwzFLZGA BQRGVQ1jjR/fHgU5EiCXwwCG3n4iXfE6gXJtEAHoQ30+lpWGwSaN7NCLa1zYpjjMeQgo r/GfH4y6LU2PZpbadWqyZ4oPJ86CyC2X6cRsiA4F5oMCjRu9CAOsi8op3WkI3J6w5sZO MWeyqz4DajRd7muN4JdjM6TV0N1ru6qWv88rn8iA6U11225uxLWeLmZRJCFlVRIdykCz 2awQ== X-Gm-Message-State: AOAM533Cwarqk0Neflx3GkYeZFlMdVg7xtPugjsBNGF61726UoAADjxn 36BRtTdM0uBV2tJhuFJfnHg= X-Google-Smtp-Source: ABdhPJw547dM2c50d8Kr50B+XXMI/Dw+vfXDBpacFtpZlmzQ08FXXOLc1TJ8eoEaZ4E0duiBSvGzfA== X-Received: by 2002:adf:ec88:: with SMTP id z8mr4329877wrn.395.1594894732751; Thu, 16 Jul 2020 03:18:52 -0700 (PDT) Received: from bienne.fritz.box ([2001:a61:3adb:8201:9649:88f:51f8:6a21]) by smtp.gmail.com with ESMTPSA id j75sm9036150wrj.22.2020.07.16.03.18.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2020 03:18:52 -0700 (PDT) From: "Michael Kerrisk (man-pages)" To: mtk.manpages@gmail.com, "Andrew G . Morgan" Cc: linux-security-module@vger.kernel.org Subject: [PATCH 06/16] Manual pages: cap_get_file.3: Remove stray macros that have no effect Date: Thu, 16 Jul 2020 12:18:17 +0200 Message-Id: <20200716101827.162793-6-mtk.manpages@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200716101827.162793-1-mtk.manpages@gmail.com> References: <20200716101827.162793-1-mtk.manpages@gmail.com> MIME-Version: 1.0 Sender: owner-linux-security-module@vger.kernel.org Precedence: bulk List-ID: These macros give warnings from 'mandoc -T lint'. Signed-off-by: Michael Kerrisk (man-pages) --- doc/cap_get_file.3 | 2 -- 1 file changed, 2 deletions(-) diff --git a/doc/cap_get_file.3 b/doc/cap_get_file.3 index 42255ee..c028148 100644 --- a/doc/cap_get_file.3 +++ b/doc/cap_get_file.3 @@ -6,8 +6,6 @@ cap_get_file, cap_set_file, cap_get_fd, cap_set_fd \- capability manipulation on files .SH SYNOPSIS -.B -.sp .B #include .sp .BI "cap_t cap_get_file(const char *" path_p ); From patchwork Thu Jul 16 10:18:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Michael Kerrisk (man-pages)" X-Patchwork-Id: 11667107 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1DC0E60D for ; Thu, 16 Jul 2020 10:19:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EEA472074B for ; Thu, 16 Jul 2020 10:19:00 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="iO9eReih" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726812AbgGPKTA (ORCPT ); Thu, 16 Jul 2020 06:19:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726075AbgGPKS7 (ORCPT ); Thu, 16 Jul 2020 06:18:59 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A24FC061755 for ; Thu, 16 Jul 2020 03:18:59 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id z13so6479744wrw.5 for ; Thu, 16 Jul 2020 03:18:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=CQc5oYthyIHgrA0b+wGSIPuxi+870IhMLwsMYznbmq8=; b=iO9eReihmr0Vz8A6cWVI3bxL6d0Uc7G6BuA0+hJvm+gKXgWeHecVpjDkq9n+SE5RjU /28b8ub5d7TRZIc/QHZVpy+NBxs23EVP7DRIpnTHA1mG38J/nTqCjh1Xk0l4vJpoTEh9 YJzhqaytJpMdYTbhdNY7Lnpqefn7IxzG7jOmqj8DR48f/i6KxHD6cEHWCpHnYEcXTKnA nLDJrlY+LQHmz4JYze5/OY/jyVzvzha0dV4rfetUJBY4MU4ITbuNpMJb2jiclYfw+bjh MJPaCA8GEFlOhq66YAtJnUcqpW4xPfsWWwNX6seO1Nce3PLcmfYd0iC8jiquY2oXnUb8 qCag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=CQc5oYthyIHgrA0b+wGSIPuxi+870IhMLwsMYznbmq8=; b=Db8Pqd7KeIO6BRdcXpBFri52TAHqHc2XQH9Ko952S049OcHW1nOPjKuxEhN6AaxFay Kkf4eU2gND+QUtMJjkaKfMIOn0pDg3pHjwnQpoNlFUdsY+2tTfSWqtnupqku0WtEkKJK KpKYNOdOOtpm9Q7DjPcSfEduHE3ucnM488f1Y/ceeyrEcwbCaY1H2b6RbN/aLn0zDoiQ 7e/yQg6xi8a1CYKpaYj0st+dLh7J8DUsb9F/9RLZxPf9ZY8/wADQRjKlXIjwhZwoopLT zQqxsfE4tmg0i3Q3Qn2c+s3M67IqDTCTuKgKFhvOKFG12sGyP28AXTUHzQH5xmFyUf1X UuGQ== X-Gm-Message-State: AOAM5307PK9x+BBHiBRNAS6yK7l9eaxg8hUaQYs9usGRtziup7cZ9q74 Nf74f3ah2btmkueaw6WTjNzqpR9f X-Google-Smtp-Source: ABdhPJzGHDKwFRtA+//gDaNgPPqZT4FL7Jra49snIMTYTZP9vobti3jf5nPBBZTHJQihHlab9a6D8w== X-Received: by 2002:a5d:5647:: with SMTP id j7mr4254917wrw.242.1594894738240; Thu, 16 Jul 2020 03:18:58 -0700 (PDT) Received: from bienne.fritz.box ([2001:a61:3adb:8201:9649:88f:51f8:6a21]) by smtp.gmail.com with ESMTPSA id b23sm8598210wmd.37.2020.07.16.03.18.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2020 03:18:57 -0700 (PDT) From: "Michael Kerrisk (man-pages)" To: mtk.manpages@gmail.com, "Andrew G . Morgan" Cc: linux-security-module@vger.kernel.org Subject: [PATCH 07/16] Manual pages: cap_get_proc.3: s/UNCERTAIN/CAP_MODE_UNCERTAIN/ Date: Thu, 16 Jul 2020 12:18:18 +0200 Message-Id: <20200716101827.162793-7-mtk.manpages@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200716101827.162793-1-mtk.manpages@gmail.com> References: <20200716101827.162793-1-mtk.manpages@gmail.com> MIME-Version: 1.0 Sender: owner-linux-security-module@vger.kernel.org Precedence: bulk List-ID: Use the proper name of the constant in DESCRIPTION. Signed-off-by: Michael Kerrisk (man-pages) --- doc/cap_get_proc.3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/cap_get_proc.3 b/doc/cap_get_proc.3 index b0a61d1..ded1491 100644 --- a/doc/cap_get_proc.3 +++ b/doc/cap_get_proc.3 @@ -168,7 +168,7 @@ returns which .BR cap_get_name () declares as -.IR "UNCERTAIN" . +.BR CAP_MODE_UNCERTAIN . Supported modes are: .BR CAP_MODE_NOPRIV ", " CAP_MODE_PURE1E_INIT " and " CAP_MODE_PURE1E . .PP From patchwork Thu Jul 16 10:18:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Michael Kerrisk (man-pages)" X-Patchwork-Id: 11667109 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 92228618 for ; Thu, 16 Jul 2020 10:19:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 68A9320775 for ; Thu, 16 Jul 2020 10:19:05 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="pBuz8bBx" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726894AbgGPKTE (ORCPT ); Thu, 16 Jul 2020 06:19:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726075AbgGPKTE (ORCPT ); Thu, 16 Jul 2020 06:19:04 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1F67C061755 for ; Thu, 16 Jul 2020 03:19:03 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id b6so6430898wrs.11 for ; Thu, 16 Jul 2020 03:19:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Q2LrDzr98NUf9gsquNLZVCZZ6MwxCoD1rH1sNrjWwhs=; b=pBuz8bBx7MtHGpOUuyRejd32SfcXYvHv4p9SjOq1ayo2zYlU7qt6DF1pHOnjHTewMw onN9oIPiU3DywYKETjiSm5TfLe+eGq9XMEJJAH++uC/xT1bGKmxE1R2x5fzqBjidXpL9 696qjfSUA5IEktl0AGxuqb+bgzUaFdmTc0Nar8HtUm2XFVFu3r64rVkTWtihn+gCHIlt VcVQI7zVcWtrMRQsa4U+3IzwpUcXyyyP2+w6iyqAqLBlIqCUhCcgqcgMbXNS7A83hScK mP7h5h2wDHR/fU61BVL3zHLi+DmXcdnpLIbE+x2pA6wn3j8k746O69ENsLaBxSa8mBNL GNHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Q2LrDzr98NUf9gsquNLZVCZZ6MwxCoD1rH1sNrjWwhs=; b=cszVOlsLYlA9ix8KxAR+PKYyR9tm85cYcOnPvAJqOTwu3LOnD8c30FQwUXhmtxCOhA KtOqs94MWcblb9WME89HjMx5+oplfwahechweMAcsDJDOuZ66on47VES4DJqDmYCoRQH iMWoyu71hckQbmJwDIuiUFWqiIUKnQhcH9jGFepJrxzk6WkzEwjLpMDQHxKVeKPQ/0VP 61Q4B8q98jPyg8LGJ+pv1kcdR5VPD3H9tyQnIQd6j7++XLC7R+eSN5UNTUSZOyZsIlab 5zWahIZ2wMYk1PvNr8ZTxkyZWQOID/Xd38G2KSsYamoY7CJAYti75fBnsLrCdycdUsXF Q1LA== X-Gm-Message-State: AOAM532KXIKZ5pCrhSUfzkotlO9yY0KQMolOBDEX3TkKNQoNZ2j5rdXJ bNBGH22LcXVWBidHI5I9+tk= X-Google-Smtp-Source: ABdhPJxTEGV5mgT5xJmiKVTVhJ9yv1CnBZNyF8gTlP7svkAt6rWBfS+JL1iUouA51U4Nka99SgHW+Q== X-Received: by 2002:a5d:458a:: with SMTP id p10mr4332817wrq.184.1594894742713; Thu, 16 Jul 2020 03:19:02 -0700 (PDT) Received: from bienne.fritz.box ([2001:a61:3adb:8201:9649:88f:51f8:6a21]) by smtp.gmail.com with ESMTPSA id w16sm9963329wrg.95.2020.07.16.03.19.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2020 03:19:02 -0700 (PDT) From: "Michael Kerrisk (man-pages)" To: mtk.manpages@gmail.com, "Andrew G . Morgan" Cc: linux-security-module@vger.kernel.org Subject: [PATCH 08/16] Manual pages: cap_get_proc.3: formatting fix Date: Thu, 16 Jul 2020 12:18:19 +0200 Message-Id: <20200716101827.162793-8-mtk.manpages@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200716101827.162793-1-mtk.manpages@gmail.com> References: <20200716101827.162793-1-mtk.manpages@gmail.com> MIME-Version: 1.0 Sender: owner-linux-security-module@vger.kernel.org Precedence: bulk List-ID: Signed-off-by: Michael Kerrisk (man-pages) --- doc/cap_get_proc.3 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/cap_get_proc.3 b/doc/cap_get_proc.3 index ded1491..f90c4f5 100644 --- a/doc/cap_get_proc.3 +++ b/doc/cap_get_proc.3 @@ -261,7 +261,8 @@ The library also supports the deprecated functions: .BR capgetp () attempts to obtain the capabilities of some other process; storing the capabilities in a pre-allocated -.IR cap_d . See +.IR cap_d . +See .BR cap_init () for information on allocating an empty capability set. This function, .BR capgetp (), From patchwork Thu Jul 16 10:18:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Michael Kerrisk (man-pages)" X-Patchwork-Id: 11667111 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DD3D5618 for ; Thu, 16 Jul 2020 10:19:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C4E3220775 for ; Thu, 16 Jul 2020 10:19:09 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="TdQD+F5d" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726898AbgGPKTJ (ORCPT ); Thu, 16 Jul 2020 06:19:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726075AbgGPKTI (ORCPT ); Thu, 16 Jul 2020 06:19:08 -0400 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9613DC061755 for ; Thu, 16 Jul 2020 03:19:08 -0700 (PDT) Received: by mail-wr1-x433.google.com with SMTP id z13so6480303wrw.5 for ; Thu, 16 Jul 2020 03:19:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=3XnL7iqGjxKA17qRzoDq/KQ6FTyi5sd0zk5glsQAWco=; b=TdQD+F5dHTF1qo9dlUeGThMW665msNyKquNB7yzjZo2YoH8jnc/+84/hOwwp29d/us 3ELcdrW5fHpQxnAl62bac8QbYdnyJar8hBh9g88w5tOuMpXvIxslaK+srdyp3NWTFW+U xtI6XoW3qwDGr+LPkZiMBzCURrdxdyT6UxXZPwtK0HFw2o6nV/Sob6VG0IfE5lksLt2f MFC0VjOMz+7qO3ofixoidolPvP4hY5DxBfkdNw+2aG3Gyi4dACc4+gSzqijlSkSVNj44 JKVQmHbGj6mUkC+O1KLxgKBWNIsODcniXj4wgyPRw/Ok4Yt4k7YaqwxT3pM42fZpn8ft 9ygQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=3XnL7iqGjxKA17qRzoDq/KQ6FTyi5sd0zk5glsQAWco=; b=BgjeJ7iDF1nb3b0CWbljB4hZsANNL533tl7hpOpDU4iIfu6eQblH/mhkH7nOuGk5W/ fC25wqZ/VgDGf4Y5iK9DrvQUKM3oEWKthqrPikByN2ESLvdxwOGh/PB0Px0Sq0iAisqT ZHxmjjggk67ERV1YJIqeAUzbTWxGuhAyuCZhQqyoj+AkO8kSerDXCgbT3uGNcUmsOM+X awqUpfEQkUrV3Nd8riyVYA8zkqEaAof//lohnM+V9JgDikGAqeKghExcSk8GBT0/5Qks EUH2ac3NAF4Nhpvq6U7moKXyzukhZyofW7qpc02IeVdAGLqHd/IgZH8OoEiEjnju3ez5 fbHw== X-Gm-Message-State: AOAM5315OkMKVOM3T9iqwCe5IxFouRkVHvL8LaDScS0kMBXkcjt2XbWB dMWhnb4q1LAEGHi3skHhGOU= X-Google-Smtp-Source: ABdhPJxaK3VKQAM0vy+YaW3u7UUd+6z7zAT++aIRHrbYEzB6xeW9FqMfrA/Q70q4honmY9GO92eg2g== X-Received: by 2002:a5d:4710:: with SMTP id y16mr4471323wrq.189.1594894747269; Thu, 16 Jul 2020 03:19:07 -0700 (PDT) Received: from bienne.fritz.box ([2001:a61:3adb:8201:9649:88f:51f8:6a21]) by smtp.gmail.com with ESMTPSA id f12sm8200777wrj.48.2020.07.16.03.19.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2020 03:19:06 -0700 (PDT) From: "Michael Kerrisk (man-pages)" To: mtk.manpages@gmail.com, "Andrew G . Morgan" Cc: linux-security-module@vger.kernel.org Subject: [PATCH 09/16] Manual pages: capsh.1: spelling fixes Date: Thu, 16 Jul 2020 12:18:20 +0200 Message-Id: <20200716101827.162793-9-mtk.manpages@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200716101827.162793-1-mtk.manpages@gmail.com> References: <20200716101827.162793-1-mtk.manpages@gmail.com> MIME-Version: 1.0 Sender: owner-linux-security-module@vger.kernel.org Precedence: bulk List-ID: Signed-off-by: Michael Kerrisk (man-pages) --- doc/capsh.1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/capsh.1 b/doc/capsh.1 index cd30dc3..24e80b7 100644 --- a/doc/capsh.1 +++ b/doc/capsh.1 @@ -103,7 +103,7 @@ effective set. use the .BR cap_setuid (3) function to set the uid of the current process. This performs all -prepations for setting the uid without dropping capabilities in the +preparations for setting the uid without dropping capabilities in the process. Following this command the prevailing effective capabilities will be lowered. .TP @@ -242,7 +242,7 @@ vector has capability raised. .TP .BI \-\-addamb= xxx -Adds the specificed ambient capability to the running process. +Adds the specified ambient capability to the running process. .TP .BI \-\-delamb= xxx Removes the specified ambient capability from the running process. From patchwork Thu Jul 16 10:18:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Michael Kerrisk (man-pages)" X-Patchwork-Id: 11667113 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8D4CB618 for ; Thu, 16 Jul 2020 10:19:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 69CFA20775 for ; Thu, 16 Jul 2020 10:19:14 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="eRsuF5Yy" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726515AbgGPKTO (ORCPT ); Thu, 16 Jul 2020 06:19:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726075AbgGPKTN (ORCPT ); Thu, 16 Jul 2020 06:19:13 -0400 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2DCAAC061755 for ; Thu, 16 Jul 2020 03:19:13 -0700 (PDT) Received: by mail-wr1-x42c.google.com with SMTP id o11so6461709wrv.9 for ; Thu, 16 Jul 2020 03:19:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=YfyRa+58G22/2XBv+O+dqyICphuUuPPiFqHgi1xebcc=; b=eRsuF5YygDSB4NenzFKi0q0zj0Ii8PIDZA0own0J90nvAZ/jUMUJUnYUIB+DwFwNxR xQ96UZtdVhkoW6xWjAhqfJf5oeadgeYjFDu/sYf0VxAaKwy+IKc0IPuqAAey7oGwZIgS bn7b1u5JGDD7b/92Ev4Gzt5SZ53o0jS5jHiOmnOh/69cqaIMFFtaSDzqPViD7z6G7Qhy i7VuFQH87tRdpYgC0wQ9NNT59f7IS5qSJv0u8zlc4f5CPs7aoXtHhgaeX9US8k6aTqOc 3KHOAYZNh5rNxNpqgzpdCYuOgO2PikzZSma+57Gl7VZLxyptEoUuymuVmvLo7TMQg2S5 qIdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=YfyRa+58G22/2XBv+O+dqyICphuUuPPiFqHgi1xebcc=; b=kMQK1lfKq4yGgrxxNfQ+Gj9w09hWRoXnRaxZPBNUJleULYGVb0YT4xauwIffuQEwO3 0aOttiZ1qYvrgB6UeMlJhRP+GEphtXaN8C9si1mL/kBL9THYInwENFHlRPmFdl+jZCO+ LVvAFPigztrS8o+X4ec7KfNeU90CySTXMnt7pyyuEjbxOdIBwOV6xt/VTQnanH0EB7Ny aflTC6je91jPmWdiiF115ZyN3sPF9y5ATzf6g+DfUy+mEdILcjdXWz7cYIpA1YV1P95c YippF4Oi6nyJd7ZmZJ148tSfK4ItnRds4MAse38JVoF6MNF8lFTqc/Soe2eFHjbHZORc i8jQ== X-Gm-Message-State: AOAM533yq9CHRtqS4EVEoU/q6VDSzsE6SKr0x44b03cohUpcujdKMGfd XN7v7h62NvASgVhgMaZ1qck= X-Google-Smtp-Source: ABdhPJxQiVuIHIgacpzNoBWQbHtckZKyCH15yy5E5vTriXd3d5sOoDWeU9dqZF5LwSIVI34SpgMqNQ== X-Received: by 2002:adf:edd0:: with SMTP id v16mr4322247wro.214.1594894751920; Thu, 16 Jul 2020 03:19:11 -0700 (PDT) Received: from bienne.fritz.box ([2001:a61:3adb:8201:9649:88f:51f8:6a21]) by smtp.gmail.com with ESMTPSA id 59sm8546292wrj.37.2020.07.16.03.19.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2020 03:19:11 -0700 (PDT) From: "Michael Kerrisk (man-pages)" To: mtk.manpages@gmail.com, "Andrew G . Morgan" Cc: linux-security-module@vger.kernel.org Subject: [PATCH 10/16] Manual pages: capsh.1: Remove stray .TP macro Date: Thu, 16 Jul 2020 12:18:21 +0200 Message-Id: <20200716101827.162793-10-mtk.manpages@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200716101827.162793-1-mtk.manpages@gmail.com> References: <20200716101827.162793-1-mtk.manpages@gmail.com> MIME-Version: 1.0 Sender: owner-linux-security-module@vger.kernel.org Precedence: bulk List-ID: Signed-off-by: Michael Kerrisk (man-pages) --- doc/capsh.1 | 2 -- 1 file changed, 2 deletions(-) diff --git a/doc/capsh.1 b/doc/capsh.1 index 24e80b7..522e719 100644 --- a/doc/capsh.1 +++ b/doc/capsh.1 @@ -249,8 +249,6 @@ Removes the specified ambient capability from the running process. .TP .B \-\-noamb Drops all ambient capabilities from the running process. -.TP - .SH "EXIT STATUS" Following successful execution the tool exits with status 0. Following an error, the tool immediately exits with status 1. From patchwork Thu Jul 16 10:18:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Michael Kerrisk (man-pages)" X-Patchwork-Id: 11667115 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 677BA60D for ; Thu, 16 Jul 2020 10:19:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4EC3F20775 for ; Thu, 16 Jul 2020 10:19:19 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="qwV7Fqcn" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726863AbgGPKTS (ORCPT ); Thu, 16 Jul 2020 06:19:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726075AbgGPKTS (ORCPT ); Thu, 16 Jul 2020 06:19:18 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBA79C061755 for ; Thu, 16 Jul 2020 03:19:17 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id q5so6466878wru.6 for ; Thu, 16 Jul 2020 03:19:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=TQyGMp8luW/B/HIvUl/779z54J5/OP1qRU1QTUe8f4k=; b=qwV7FqcnF0M+QjfaXlDt1fZZIMwSPiJ/WJSE8ZQVDy8xPJlZbLY0GB78tHWztmS5NL PaQXGRbxyLUH/aGm8hWtAtEtEaj7MdI0xZ7KjdMlO5MjMa6V//NuBqUhN31/Yr3P+JsG MYjp5/VqxYz7V6HGjQ8f/etgLPWiAWVNh3oxR2E7yrV2ib+pxXk7NNwAjYBlOSRM7dqo LDBV/GC/nrOoRsXhPtw/TR/PzhmT/P9DxlRBFexISUcIq2PWDt5aTW+sofGMFuZZMO7n UAhgUgtAj0JmJ37J5Cl3vbsA6zVs5qlLR6l2tcb/lWcnDB7SMsAqJfrtxgvwpSWZg5Yo Misw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=TQyGMp8luW/B/HIvUl/779z54J5/OP1qRU1QTUe8f4k=; b=LXN1YN9OT//v5j0qXrOOTISSy1Qto90u7qzcHF3wNs5W1QcNYcfuWKglqKvucZbkPC tJp7IF9Xq5MrnF8RNG8NLcWwlGouFS6pmLvDqJe1M0Vx2pqz+/0a5gNWilNI2IlKWCJs diz8ACRnaB79iPWZ9wERO4xGTyOVrVw+hJmApYU/LwUBxDpqsR0RlGY2gR2yNus2SfD1 cK3nwwk8jxc7cXW5wUnb+hi5f/qSLBHAOnoxKcWrMOjhmtrBPzDEL/mZadOXguvSoMv4 I6Eyn5hRQQD5mOj9GA/WArEiXyxALHLCCmls2ZHdrw7er7/bM1Zc2l9zsIEhCehsRBCu zUBQ== X-Gm-Message-State: AOAM530UN/d8XqukYNxqE4+GbpZXpxQrzzReWMG/Fbk1c8vi8UT5eB3/ ff74izxtwUdlvcn6bjxOWmzHHbF6 X-Google-Smtp-Source: ABdhPJzRHzLajS+UJZFaKwvOoYqv9Z5mekz2SjINwseFK/Hd2KlU5OHsR18ldlTCTqJvEhwK+vQMOw== X-Received: by 2002:adf:ce8d:: with SMTP id r13mr4711334wrn.392.1594894756557; Thu, 16 Jul 2020 03:19:16 -0700 (PDT) Received: from bienne.fritz.box ([2001:a61:3adb:8201:9649:88f:51f8:6a21]) by smtp.gmail.com with ESMTPSA id q7sm8456329wra.56.2020.07.16.03.19.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2020 03:19:16 -0700 (PDT) From: "Michael Kerrisk (man-pages)" To: mtk.manpages@gmail.com, "Andrew G . Morgan" Cc: linux-security-module@vger.kernel.org Subject: [PATCH 11/16] Manual pages: capsh.1: Correct/update the Cap field example for /proc/PID/status Date: Thu, 16 Jul 2020 12:18:22 +0200 Message-Id: <20200716101827.162793-11-mtk.manpages@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200716101827.162793-1-mtk.manpages@gmail.com> References: <20200716101827.162793-1-mtk.manpages@gmail.com> MIME-Version: 1.0 Sender: owner-linux-security-module@vger.kernel.org Precedence: bulk List-ID: The /proc/1/status output shown for --decode=N is bogus (e.g., ffffffffffffffff == 64 capability bits). Furthermore, showing CAP_SETPCAP as missing from CapEff is historical, and ceased to be actual more than 10 years ago. Replace with a more current example, and also add the CapAmb field. This change renders some of the following text obsolete; that will be fixed in the next patch. Signed-off-by: Michael Kerrisk (man-pages) --- doc/capsh.1 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/doc/capsh.1 b/doc/capsh.1 index 522e719..916353a 100644 --- a/doc/capsh.1 +++ b/doc/capsh.1 @@ -198,10 +198,11 @@ This is a convenience feature. If you look at there are some capability related fields of the following form: .nf - CapInh: 0000000000000000 - CapPrm: ffffffffffffffff - CapEff: fffffffffffffeff - CapBnd: ffffffffffffffff +CapInh: 0000000000000000 +CapPrm: 0000003fffffffff +CapEff: 0000003fffffffff +CapBnd: 0000003fffffffff +CapAmb: 0000000000000000 .fi This option provides a quick way to decode a capability vector From patchwork Thu Jul 16 10:18:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Michael Kerrisk (man-pages)" X-Patchwork-Id: 11667117 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3BD0D60D for ; Thu, 16 Jul 2020 10:19:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 22D5220775 for ; Thu, 16 Jul 2020 10:19:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="kdaIbzh8" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726907AbgGPKTX (ORCPT ); Thu, 16 Jul 2020 06:19:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726075AbgGPKTW (ORCPT ); Thu, 16 Jul 2020 06:19:22 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F9A2C061755 for ; Thu, 16 Jul 2020 03:19:22 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id z13so6481044wrw.5 for ; Thu, 16 Jul 2020 03:19:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=dakoHSD/dbWABcNF+jvVYrxJzF+lfIDeO7FCP3v0d80=; b=kdaIbzh8QbNG3YhzqRyM5kDwjdnMGtvc9xT8uV29Gt5sAdljzNcYSml4kvV36MUVjw gM9yJt8WXOcqUu+b296SGfujsoi8gIsYBJIKfvDY/BcZKHN8h5ekmtICdzpIBCugX9Pk 5qi6ctX11ZR9ibBle0AVn4U4Gfz3NsrttfEoU51tEoRsyf6uZ6OpiEcqeK6j/eb2ZDW1 xI67SpDU65rpBEluc4oYNDzaMfNISCHBJYeVfwECIzMtkOEOhM0yvRKGIHy11VZBEi/s TxaUmuo4U34MSLLvGd5mIUrr6e/NSCikM/7ctavxL7ClT3FKnjmWnWtYrueGDyKiCA8F +RGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=dakoHSD/dbWABcNF+jvVYrxJzF+lfIDeO7FCP3v0d80=; b=OHr6JHXNA+3E9kC+Xaqj4wirvTphNv/T9qoavn1Ymlt9Yl6Zu/7fVz07JPSiC/jnoW JGXZ8zfBj9P/S/rmzAjXrnewcqnn7Zb60lUHyt2Vg6vjMRuRpOtPU9hS1GHPBwOng/Kj JBuE2T/YP8Tzk0XQCbHzYpYj/259M6RJsOcdlMaSr/ACTCOg75cFkEX1q4zJI2WSFlRi bAe3OD2shm7wwgoJ3wqD/R8k7lKO01/cgJtLcOde1n8bSX5dZhcpiEky94AObjsp6r1W vMg8VP4k31x0A0VF0uIUFAaetxW017D4BNjONl7MsUiT/pJ1AS79uz0CL0SNpf1n1GEa g5kg== X-Gm-Message-State: AOAM530tGtJX/GeJdawTzMgya2y7s+cuN6VEPrJkfX5YrXWMogxU/Tkf Z2ZTYfwLj9WqOxScNaIj9Xs= X-Google-Smtp-Source: ABdhPJy8AFUfpVRY27w1c6FfJkGtv08DGOhvgCMhe85MTxEQbuI+O6J2q8c+5U3QLBLsMRuzcJt0Pw== X-Received: by 2002:adf:e944:: with SMTP id m4mr4520440wrn.252.1594894761196; Thu, 16 Jul 2020 03:19:21 -0700 (PDT) Received: from bienne.fritz.box ([2001:a61:3adb:8201:9649:88f:51f8:6a21]) by smtp.gmail.com with ESMTPSA id p29sm8180280wmi.43.2020.07.16.03.19.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2020 03:19:20 -0700 (PDT) From: "Michael Kerrisk (man-pages)" To: mtk.manpages@gmail.com, "Andrew G . Morgan" Cc: linux-security-module@vger.kernel.org Subject: [PATCH 12/16] Manual pages: capsh.1: Update the capsh --decode example Date: Thu, 16 Jul 2020 12:18:23 +0200 Message-Id: <20200716101827.162793-12-mtk.manpages@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200716101827.162793-1-mtk.manpages@gmail.com> References: <20200716101827.162793-1-mtk.manpages@gmail.com> MIME-Version: 1.0 Sender: owner-linux-security-module@vger.kernel.org Precedence: bulk List-ID: With the update to the output of /proc/1/status in the previous patch, the example no longer matches. So, add a different example. Signed-off-by: Michael Kerrisk (man-pages) --- doc/capsh.1 | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/doc/capsh.1 b/doc/capsh.1 index 916353a..fd6a5ba 100644 --- a/doc/capsh.1 +++ b/doc/capsh.1 @@ -206,15 +206,13 @@ CapAmb: 0000000000000000 .fi This option provides a quick way to decode a capability vector -represented in this form. For example, the missing capability from -this effective set is 0x0100. By running: +represented in this hexadecimal form. +Here's an example that decodes the two lowest capability bits: +.IP .nf - - capsh \-\-decode=0x0100 - +$ \fBcapsh \-\-decode=3\fP +0x0000000000000003=cap_chown,cap_dac_override .fi -we observe that the missing capability is: -.BR cap_setpcap . .TP .BI \-\-supports= xxx As the kernel evolves, more capabilities are added. This option can be used From patchwork Thu Jul 16 10:18:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Michael Kerrisk (man-pages)" X-Patchwork-Id: 11667119 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2595B60D for ; Thu, 16 Jul 2020 10:19:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0CC842074B for ; Thu, 16 Jul 2020 10:19:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="r+d0v7rS" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726964AbgGPKT3 (ORCPT ); Thu, 16 Jul 2020 06:19:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726973AbgGPKT1 (ORCPT ); Thu, 16 Jul 2020 06:19:27 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3BA0C08C5CE for ; Thu, 16 Jul 2020 03:19:26 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id q5so6467281wru.6 for ; Thu, 16 Jul 2020 03:19:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=B4dSB5KUOD8YyH126p2gHbAt4+JMtzeRy4E2WgZpl64=; b=r+d0v7rSQWCEw7wy6EWbXcDiXu2R2X+uCFc3ZZDIkGX+72dS68+rdDMnoRpuqR6ccO hBPOydL+fjv8GlppTnLRdjbouJoIiwtG6xH9JojPitUZ3EXU0kwmwtgNI5xcIHZgDfUe tWzYt3R4iXH8ZeJXhAL41/CrxwIS42HHmRHyTnl8uytLEDTFkfF4IT4phCAqdEXz/fa+ cksVmCfSltlNuivK9htIbWTKylhvAF3A3/is0kxGkE5cBeNtSHfx0IgPU6s6mYzl9peq A3nhLN3q8d3qrgyx0R2pLCBdzcRW+kqozw2ohzZ1ycKDNXrrYeDjXa5m4EbZIiIPDFgn /b1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=B4dSB5KUOD8YyH126p2gHbAt4+JMtzeRy4E2WgZpl64=; b=lZbOpNj+JgPzg7NbnBkod8TyNKt9DGXefzditm2++WLx+log6b6tuq1R/5avgw4MCF C5dHxWinErTDe2vx4wEhc1I4auOY1zzF5w4bEVlAHOvPB0b8/IL3UkCJC/DHUAKQYGWn 6TEYnzKBr3GMRo83hEX0XJM19mJByKNFHdo4CIePV55ETa8F96D7fQydczFwgQY1wRkA HirwgmBa3kktzAWXrH/23HKjqeis1Hs0Pn5d8O9ALqWNGw7835PQWgD3Q3Pfmta8LafZ hyzU78NPuoCzRGlCdHN+ZksdRwEkdHg2JLn2erIyXKM2qmf5zoAufueehiSeeE47ag5q tq+g== X-Gm-Message-State: AOAM532u48nE7jby/d7FxBg/zGDjpdxregM237JGTfIeNNLxmRkbNwCZ vOX6+Ha0mzzZbmM5+m48cY0= X-Google-Smtp-Source: ABdhPJwHnVBPJ5ZJZZ89KZQpNewytDRrgpWbJ4YfOzRXr1SLYFf+OpmcCdI7hYnJOdOBb7Lo9RPf+w== X-Received: by 2002:adf:f9c8:: with SMTP id w8mr4335473wrr.354.1594894765533; Thu, 16 Jul 2020 03:19:25 -0700 (PDT) Received: from bienne.fritz.box ([2001:a61:3adb:8201:9649:88f:51f8:6a21]) by smtp.gmail.com with ESMTPSA id p25sm7420217wmg.39.2020.07.16.03.19.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2020 03:19:25 -0700 (PDT) From: "Michael Kerrisk (man-pages)" To: mtk.manpages@gmail.com, "Andrew G . Morgan" Cc: linux-security-module@vger.kernel.org Subject: [PATCH 13/16] Manual pages: capsh.1: Describe the argument of --secbits in more detail Date: Thu, 16 Jul 2020 12:18:24 +0200 Message-Id: <20200716101827.162793-13-mtk.manpages@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200716101827.162793-1-mtk.manpages@gmail.com> References: <20200716101827.162793-1-mtk.manpages@gmail.com> MIME-Version: 1.0 Sender: owner-linux-security-module@vger.kernel.org Precedence: bulk List-ID: The page currently gives the reader no clue about the format of the argument. Signed-off-by: Michael Kerrisk (man-pages) --- doc/capsh.1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/capsh.1 b/doc/capsh.1 index fd6a5ba..0b987f0 100644 --- a/doc/capsh.1 +++ b/doc/capsh.1 @@ -164,6 +164,9 @@ the header file. The program will list these bits via the .B \-\-print command. +The argument is expressed as a numeric bitmask, +in any of the formats permitted by +.BR strtoul (3). .TP .BI \-\-chroot= path Execute the From patchwork Thu Jul 16 10:18:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Michael Kerrisk (man-pages)" X-Patchwork-Id: 11667121 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EEC8960D for ; Thu, 16 Jul 2020 10:19:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CCB4A2074B for ; Thu, 16 Jul 2020 10:19:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="jailz0If" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727030AbgGPKTc (ORCPT ); Thu, 16 Jul 2020 06:19:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726973AbgGPKTb (ORCPT ); Thu, 16 Jul 2020 06:19:31 -0400 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47446C061755 for ; Thu, 16 Jul 2020 03:19:31 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id l2so11080178wmf.0 for ; Thu, 16 Jul 2020 03:19:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=gFZLRP1ZuHliqT17Fc4txXqGOPABF9itQWuE10KMBSE=; b=jailz0Iffcdg/t5bCkanGzstjqiouIm+URRVHtua+DDyDFBDmze+p2WmZ+LHCBt3qv GYB6IT6q+yPal1D3mNma04d7hWhtzBduuNnL8q78GVj0sWhetn6MOfrllsdQSc/F/OVo MSls4ohOSZW6GIRoGO8V4mqeiEyenSWAXEag8lyn4uxCE3RMQmsrNkJgRCSj/FwPK31f FxZ/gsRQOuxEQuJx6JeMEbVlxquu8AufWWUwb/yxIZlGnSBilbDG9R16XlejpJy7hovo RpgmFlXMsYtmT7+3tSzgcW0F3AtdcP04gy0/PAa8xu2sb6HC5Yb1IQZrOXP28rPkuJZ3 vRnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=gFZLRP1ZuHliqT17Fc4txXqGOPABF9itQWuE10KMBSE=; b=d6fFc/nS1BsqK8icc/vZ49pIr3pFNIvJve3HVkpvHKUCWlQ73yIGG5ka5GWD/x1PEf 9u/bxq4046c8OcneFMy3FD3GzRDr8EMjjKtP5sl8HiNXXBFbK4VjlY7Wv5Ijw0R/PUTR nrv9j6leWKjiQZpKza6mVLlKxukCzT4Wpjt7SqCdbOPutZjzvTqV8gWSsKPRokSYYDj0 Ho2wBK8B03ZVIV7zCx6lK/SM1utQMhlz7hCtsevre/LD0stTJeIWAhEVUD0F8fRGEINR HaMMCC3vE7jEu0FBgj8+pop0WEr/pDpHfMEELuXotEWp+GOE73Gp8eoD9vWg0Mku4wN0 mLeg== X-Gm-Message-State: AOAM530uReVBn008M+Qk2pEdiMZ6yC6vTzvCPiaCmkw1MMlcJIByIqDy w8M3oSJYHVsgshYo1wAoAeg= X-Google-Smtp-Source: ABdhPJwWTPoXueg+y38IOZ+15VW+CLlcnDrw/n9CDllWYeUV7D29Jp+ZK2hW0duGONkQW5s/atE4OA== X-Received: by 2002:a7b:cc91:: with SMTP id p17mr3904343wma.90.1594894770018; Thu, 16 Jul 2020 03:19:30 -0700 (PDT) Received: from bienne.fritz.box ([2001:a61:3adb:8201:9649:88f:51f8:6a21]) by smtp.gmail.com with ESMTPSA id t15sm7770058wmj.14.2020.07.16.03.19.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2020 03:19:29 -0700 (PDT) From: "Michael Kerrisk (man-pages)" To: mtk.manpages@gmail.com, "Andrew G . Morgan" Cc: linux-security-module@vger.kernel.org Subject: [PATCH 14/16] pam_cap.c: Spelling fix in output string Date: Thu, 16 Jul 2020 12:18:25 +0200 Message-Id: <20200716101827.162793-14-mtk.manpages@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200716101827.162793-1-mtk.manpages@gmail.com> References: <20200716101827.162793-1-mtk.manpages@gmail.com> MIME-Version: 1.0 Sender: owner-linux-security-module@vger.kernel.org Precedence: bulk List-ID: Signed-off-by: Michael Kerrisk (man-pages) --- pam_cap/pam_cap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pam_cap/pam_cap.c b/pam_cap/pam_cap.c index 3030692..6927f7b 100644 --- a/pam_cap/pam_cap.c +++ b/pam_cap/pam_cap.c @@ -321,7 +321,7 @@ int pam_sm_authenticate(pam_handle_t *pamh, int flags, } else { - D(("there are no capabilities restrctions on this user")); + D(("there are no capabilities restrictions on this user")); return PAM_IGNORE; } From patchwork Thu Jul 16 10:18:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Michael Kerrisk (man-pages)" X-Patchwork-Id: 11667123 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 43008618 for ; Thu, 16 Jul 2020 10:19:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 24CA420775 for ; Thu, 16 Jul 2020 10:19:37 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="d1T6r4G7" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727062AbgGPKTg (ORCPT ); Thu, 16 Jul 2020 06:19:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726973AbgGPKTg (ORCPT ); Thu, 16 Jul 2020 06:19:36 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B751BC061755 for ; Thu, 16 Jul 2020 03:19:35 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id r12so6390529wrj.13 for ; Thu, 16 Jul 2020 03:19:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Q7nrzKhEx+ExyWTwvGOL5rHVm6h72RsBmFQBL97mcHQ=; b=d1T6r4G7cXv6kd3vakUzOlS3HIo5WyOjcLAag+DgXJ0iAvxMOc6yJ8qm7T+STElZBd l0KR3Xx6RcueTTd4vvfY2Xb5wrEkDe/3+SFe9r+p1uhGtssohYOQxj0LZQT0IgwG2gcw dX39wxh4FWtTqtCn2xoQBB/wPhTJ7YWX1uKEVNXptm46FLOwxYdF+2GzyQpEakwFnpIs piOo818H+VdH4kQ91aVdmaNnXpppsQIrsxN3fV7hNsiE4k7rFJata6nkGH6HwLqlQTcq 0GUbBlevhIOQJCmSDkBxjtvx4CXFa8B0iVn8slaoWm8JAfnYsHpwCMShYadqfX8Ywql5 7yQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Q7nrzKhEx+ExyWTwvGOL5rHVm6h72RsBmFQBL97mcHQ=; b=EkIOayxiLPQYJwZE7wdXV6P9yJbQyERtqcE+sLfL6lcetD8FZTehdhTO5DKLwm3Kn6 uLvoEVGl2Sq2KD44a1hJ34fYdNKFaPxxRVUcJ9uaA7nJSgbO0pHm5Nvt/s+2w/1vPwZs stNcxs3AMpjHxG7JayloKu6nOOGEeBMhn5tEkiuDGO8DjmenJ+k6KOCIxQBfn3tSUkjD PJfHghTNR1Q1IG3ZxnyXCc6uJPDPmNTcFW6nlMZH9nHMhjzQoF7mkaPEI2xQisAs6/aU 6shCW8x6yHhLqrQf1skhDx0a6SEs85hML7og6V0BCH1FC/ow8WbpY0OD75K5KnpzywX/ DVyg== X-Gm-Message-State: AOAM5319Y3jckhfgpISHKFanIgPWic2DUg54vpKL1MPs8LNfMzpijvM0 sUmtpb69nFumT7r20okTLMT8cMkc X-Google-Smtp-Source: ABdhPJxDDXMkm4Ia4MIKo9WV0a4PpIJb18pIzHMdu5JpJSi+udCpfGTbCNmCBBd8ciEK66Mj7i0mCw== X-Received: by 2002:adf:f452:: with SMTP id f18mr4366456wrp.78.1594894774391; Thu, 16 Jul 2020 03:19:34 -0700 (PDT) Received: from bienne.fritz.box ([2001:a61:3adb:8201:9649:88f:51f8:6a21]) by smtp.gmail.com with ESMTPSA id x18sm8341093wrq.13.2020.07.16.03.19.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2020 03:19:34 -0700 (PDT) From: "Michael Kerrisk (man-pages)" To: mtk.manpages@gmail.com, "Andrew G . Morgan" Cc: linux-security-module@vger.kernel.org Subject: [PATCH 15/16] Various source files: spelling fixes on comments Date: Thu, 16 Jul 2020 12:18:26 +0200 Message-Id: <20200716101827.162793-15-mtk.manpages@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200716101827.162793-1-mtk.manpages@gmail.com> References: <20200716101827.162793-1-mtk.manpages@gmail.com> MIME-Version: 1.0 Sender: owner-linux-security-module@vger.kernel.org Precedence: bulk List-ID: Signed-off-by: Michael Kerrisk (man-pages) --- libcap/cap_proc.c | 6 +++--- libcap/include/uapi/linux/capability.h | 2 +- libcap/include/uapi/linux/securebits.h | 2 +- psx/include/sys/psx_syscall.h | 2 +- psx/psx.c | 6 +++--- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/libcap/cap_proc.c b/libcap/cap_proc.c index 1c97beb..3929f66 100644 --- a/libcap/cap_proc.c +++ b/libcap/cap_proc.c @@ -75,7 +75,7 @@ static struct syscaller_s singlethread = { static int _libcap_overrode_syscalls = 1; /* - * psx_load_syscalls() is weakly defined so we can have it overriden + * psx_load_syscalls() is weakly defined so we can have it overridden * by libpsx if that library is linked. Specifically, when libcap * calls psx_load_sycalls() it is prepared to override the default * values for the syscalls that libcap uses to change security state. @@ -238,7 +238,7 @@ cap_t cap_get_pid(pid_t pid) /* * set the caps on a specific process/pg etc.. The kernel has long - * since deprecated this asynchronus interface. DON'T EXPECT THIS TO + * since deprecated this asynchronous interface. DON'T EXPECT THIS TO * EVER WORK AGAIN. */ @@ -468,7 +468,7 @@ static int _cap_set_mode(struct syscaller_s *sc, cap_mode_t flavor) * set, these modes cannot be undone by the affected process tree and * can only be done by "cap_setpcap" permitted processes. Note, a side * effect of this function, whether it succeeds or fails, is to clear - * atleast the CAP_EFFECTIVE flags for the current process. + * at least the CAP_EFFECTIVE flags for the current process. */ int cap_set_mode(cap_mode_t flavor) { diff --git a/libcap/include/uapi/linux/capability.h b/libcap/include/uapi/linux/capability.h index 3281e73..b9ae18b 100644 --- a/libcap/include/uapi/linux/capability.h +++ b/libcap/include/uapi/linux/capability.h @@ -368,7 +368,7 @@ struct vfs_ns_cap_data { #define CAP_AUDIT_READ 37 -/* Alow system performace and observability privileged opeations using +/* Alow system performance and observability privileged operations using * perf_events, i915_perf and other kernel subsystems. */ #define CAP_PERFMON 38 diff --git a/libcap/include/uapi/linux/securebits.h b/libcap/include/uapi/linux/securebits.h index 6dae4e9..e9b1309 100644 --- a/libcap/include/uapi/linux/securebits.h +++ b/libcap/include/uapi/linux/securebits.h @@ -22,7 +22,7 @@ #define SECBIT_NOROOT_LOCKED (issecure_mask(SECURE_NOROOT_LOCKED)) /* When set, setuid to/from uid 0 does not trigger capability-"fixup". - When unset, to provide compatiblility with old programs relying on + When unset, to provide compatibility with old programs relying on set*uid to gain/lose privilege, transitions to/from uid 0 cause capabilities to be gained/lost. */ #define SECURE_NO_SETUID_FIXUP 2 diff --git a/psx/include/sys/psx_syscall.h b/psx/include/sys/psx_syscall.h index c089a88..8044fbd 100644 --- a/psx/include/sys/psx_syscall.h +++ b/psx/include/sys/psx_syscall.h @@ -35,7 +35,7 @@ int __real_pthread_create(pthread_t *thread, const pthread_attr_t *attr, /* * psx_syscall performs the specified syscall on all psx registered - * threads. The mecanism by which this occurs is much less efficient + * threads. The mechanism by which this occurs is much less efficient * than a standard system call on Linux, so it should only be used * when POSIX semantics are required to change process relevant * security state. diff --git a/psx/psx.c b/psx/psx.c index cabd342..b494072 100644 --- a/psx/psx.c +++ b/psx/psx.c @@ -29,7 +29,7 @@ #include /* - * psx_load_syscalls() is weakly defined so we can have it overriden + * psx_load_syscalls() is weakly defined so we can have it overridden * by libpsx if it is linked. Specifically, when libcap calls * psx_load_sycalls it will override their defaut values. As can be * seen here this present function is a no-op. However, if libpsx is @@ -272,7 +272,7 @@ static void _psx_forked_child(void) { * The only way we can get here is if state is _PSX_INFORK and was * previously _PSX_IDLE. However, none of the registered threads * exist in this newly minted child process, so we have to reset - * the tracking structure to avoid any confusion. We also skuttle + * the tracking structure to avoid any confusion. We also scuttle * any chance of the PSX API working on more than one thread in * the child by leaving the state as _PSX_INFORK. We do support * all psx_syscall()s by reverting to them being direct in the @@ -343,7 +343,7 @@ static void _psx_exiting(void *node) { } /* - * _psx_start_fn is a trampolene for the intended start function, it + * _psx_start_fn is a trampoline for the intended start function, it * is called blocked (_PSX_CREATE), but releases the block before * calling starter->fn. Before releasing the block, the TLS specific * attributes are initialized for use by the interrupt handler under From patchwork Thu Jul 16 10:18:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Michael Kerrisk (man-pages)" X-Patchwork-Id: 11667125 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A63AC60D for ; Thu, 16 Jul 2020 10:19:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8DB652074B for ; Thu, 16 Jul 2020 10:19:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="pBsHBa53" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727078AbgGPKTl (ORCPT ); Thu, 16 Jul 2020 06:19:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726973AbgGPKTk (ORCPT ); Thu, 16 Jul 2020 06:19:40 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A2DEC061755 for ; Thu, 16 Jul 2020 03:19:40 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id f2so6460407wrp.7 for ; Thu, 16 Jul 2020 03:19:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=FKwwx9SCPSgGKTUvHlHZPqNVtziKFzsn6pWTO18XHYo=; b=pBsHBa532OY6Xt5ROhZcFRge7ztceKG4qg/VZnJ8AqgbO3zB+JLVKQ0Fr5eH+8Ztxg SpTvD/X2vjXATuSdJim9AF4Q1ckIPH0WrhfqGo7oHCKd9h7XmMbxZfXl7O9PoQT2b4+V VLPjhWNwjPeveZRBkWH3wux4NRB2vrXMJwDxlECp4RgDemrupE87+syLk86Dh9X9Wlfp qWAyvHSYjeJ+wNZApCEca+EhLS9U1gYlf/eX9pYLvCZRTS/zJ7C0zj4c2oP1JxEK/CH1 uB5XYBk0Pi2yFWASGg3h86xEpUMm1W1+32OpiOMOwe4bDQ/fehSca6pDBye0/c2DPKyz 0Hig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=FKwwx9SCPSgGKTUvHlHZPqNVtziKFzsn6pWTO18XHYo=; b=IQm/KGCXYiFmPVzSxDUJCTDNoPtpR4TS4IssTYJw8AJqK0nkklcHqjhkB2W5cdUigT Bwp95X4RJouXdTjW0fVYQkj9Z3A2V+ptZhqUGFgTMPd+kZbbGzwwIRXvOzdtqsv200Ha sWl2SmeGjnu/GVF9KBj0CsF9TEksHwWNQX2nPwWsO13v2ducxIu7oyUwN+5Q/yLFb/sM EjvRplnrVMMyYyxHCqw+04Z7J97KBW01VMMjzUHnkS1dHNiFUj63LAfBiqNACK/NMEF3 QZK8ytumyNDpyoZ5YTecpZ8fLI8IWS7SK5pOJk5zS71CUSPDwFnXwKlSwBqJI+FguaZU 4ZsA== X-Gm-Message-State: AOAM531+zlGQWvCJ+bcAoRrPSw719erKns4qELe3kTbF2CyEZWDbNsIf iLhKWDwonBwjKC+mLdFSvbk= X-Google-Smtp-Source: ABdhPJx5FP3+ODoDoxqnf8GAED34DdikQLeNgEfpQtwRYna+qkz1+F45fGYbpNtxuSO48zMtl4aBnA== X-Received: by 2002:adf:e944:: with SMTP id m4mr4521670wrn.252.1594894778899; Thu, 16 Jul 2020 03:19:38 -0700 (PDT) Received: from bienne.fritz.box ([2001:a61:3adb:8201:9649:88f:51f8:6a21]) by smtp.gmail.com with ESMTPSA id k20sm7587194wmi.27.2020.07.16.03.19.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2020 03:19:38 -0700 (PDT) From: "Michael Kerrisk (man-pages)" To: mtk.manpages@gmail.com, "Andrew G . Morgan" Cc: linux-security-module@vger.kernel.org Subject: [PATCH 16/16] capsh.c: Spelling fixes in usage() message Date: Thu, 16 Jul 2020 12:18:27 +0200 Message-Id: <20200716101827.162793-16-mtk.manpages@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200716101827.162793-1-mtk.manpages@gmail.com> References: <20200716101827.162793-1-mtk.manpages@gmail.com> MIME-Version: 1.0 Sender: owner-linux-security-module@vger.kernel.org Precedence: bulk List-ID: Signed-off-by: Michael Kerrisk (man-pages) --- progs/capsh.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/progs/capsh.c b/progs/capsh.c index 94bf57d..7bed98e 100644 --- a/progs/capsh.c +++ b/progs/capsh.c @@ -879,10 +879,10 @@ int main(int argc, char *argv[], char *envp[]) " --delamb=xxx remove xxx,... capabilities from ambient\n" " --noamb reset (drop) all ambient capabilities\n" " --caps=xxx set caps as per cap_from_text()\n" - " --inh=xxx set xxx,.. inheritiable set\n" + " --inh=xxx set xxx,.. inheritable set\n" " --secbits= write a new value for securebits\n" " --iab=... use cap_iab_from_text() to set iab\n" - " --keep= set keep-capabability bit to \n" + " --keep= set keep-capability bit to \n" " --uid= set uid to (hint: id )\n" " --cap-uid= libcap cap_setuid() to change uid\n" " --is-uid= exit 1 if uid != \n"