From patchwork Tue Apr 14 15:49:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Hajnoczi X-Patchwork-Id: 11488443 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 1773315AB for ; Tue, 14 Apr 2020 15:50:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EEBA8206D5 for ; Tue, 14 Apr 2020 15:50:02 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="VLc0RHyT" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2440941AbgDNPuB (ORCPT ); Tue, 14 Apr 2020 11:50:01 -0400 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:27529 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2440206AbgDNPt7 (ORCPT ); Tue, 14 Apr 2020 11:49:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1586879398; 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=C5AiC1VtAoWJEY/odyXCn7YoS2/DSWi+dbTyYEt2cZQ=; b=VLc0RHyThyvpxgG0kBRn05uMXIqWo6cUMaf4HprIHFA7KOHJJoiSzELT/pXKMhRZb1CfkA JXvKPCRrMS1kPBHKsxWTcLAKj5g279ZjXo0bgax8J5YoY0Np2ptgOiNRVjj0kyKjL+t/id TKBEU/nMEcbSs6IT4J+il5AeKMyDl3c= 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-323-nx3W3qOFP32vjbdOe67__g-1; Tue, 14 Apr 2020 11:49:56 -0400 X-MC-Unique: nx3W3qOFP32vjbdOe67__g-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A286D107ACC4; Tue, 14 Apr 2020 15:49:55 +0000 (UTC) Received: from localhost (ovpn-114-148.ams2.redhat.com [10.36.114.148]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0C16311D2CF; Tue, 14 Apr 2020 15:49:50 +0000 (UTC) From: Stefan Hajnoczi To: linux-security-module@vger.kernel.org Cc: Serge Hallyn , linux-kernel@vger.kernel.org, Stefan Hajnoczi Subject: [PATCH] capabilities: add description for CAP_SETFCAP Date: Tue, 14 Apr 2020 16:49:45 +0100 Message-Id: <20200414154945.142372-1-stefanha@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 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 --- 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 272dc69fa080..7288f0ad44af 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.