From patchwork Tue Jun 2 09:17:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Hajnoczi X-Patchwork-Id: 11583467 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 6B258739 for ; Tue, 2 Jun 2020 09:17:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 484A52072F for ; Tue, 2 Jun 2020 09:17:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="S+J6j4ha" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726613AbgFBJRj (ORCPT ); Tue, 2 Jun 2020 05:17:39 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:48348 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726580AbgFBJRi (ORCPT ); Tue, 2 Jun 2020 05:17:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1591089457; 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=5jQIt9iE59XqDR+eye8j7C/bUOH+dlZE3dxsk1GuQcM=; b=S+J6j4hajydgFFVX5XYoZHQvCU7dP4wqcfJZdnniHn1kTS0Hh585rjJc/HYB/DVHaSLSBh BWGM7ZNfgaTxQUgD0vntVJ4p9FUeL/yzLOCPgJ6H5g5XBnW+hQ3xp45vopS5YcJq/J/9pf S3BtRPFDvNgQMmh5urtS8aG9ge88N0U= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-255-QQpQfl53OUus0eRX1WdFUw-1; Tue, 02 Jun 2020 05:17:36 -0400 X-MC-Unique: QQpQfl53OUus0eRX1WdFUw-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 0A5E3100CCC1; Tue, 2 Jun 2020 09:17:34 +0000 (UTC) Received: from localhost (ovpn-115-9.ams2.redhat.com [10.36.115.9]) by smtp.corp.redhat.com (Postfix) with ESMTP id AD9E5579A3; Tue, 2 Jun 2020 09:17:30 +0000 (UTC) From: Stefan Hajnoczi To: James Morris , linux-security-module@vger.kernel.org Cc: Serge Hallyn , linux-kernel@vger.kernel.org, Stefan Hajnoczi Subject: [PATCH v2] capabilities: add description for CAP_SETFCAP Date: Tue, 2 Jun 2020 10:17:28 +0100 Message-Id: <20200602091728.10843-1-stefanha@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Sender: owner-linux-security-module@vger.kernel.org Precedence: bulk List-ID: Document the purpose of CAP_SETFCAP. For some reason this capability had no description while the others did. Signed-off-by: Stefan Hajnoczi --- v2: * Rebased onto git master include/uapi/linux/capability.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/uapi/linux/capability.h b/include/uapi/linux/capability.h index e58c9636741b..c4532b0fe00f 100644 --- a/include/uapi/linux/capability.h +++ b/include/uapi/linux/capability.h @@ -332,6 +332,8 @@ struct vfs_ns_cap_data { #define CAP_AUDIT_CONTROL 30 +/* Set or remove capabilities on files */ + #define CAP_SETFCAP 31 /* Override MAC access.