2020-04-14 16:52:06

by Stefan Hajnoczi

[permalink] [raw]
Subject: [PATCH] capabilities: add description for CAP_SETFCAP

Document the purpose of CAP_SETFCAP. For some reason this capability
had no description while the others did.

Signed-off-by: Stefan Hajnoczi <[email protected]>
---
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.
--
2.25.1


2020-04-28 09:00:31

by Stefan Hajnoczi

[permalink] [raw]
Subject: Re: [PATCH] capabilities: add description for CAP_SETFCAP

On Tue, Apr 14, 2020 at 04:49:45PM +0100, Stefan Hajnoczi wrote:
> Document the purpose of CAP_SETFCAP. For some reason this capability
> had no description while the others did.
>
> Signed-off-by: Stefan Hajnoczi <[email protected]>
> ---
> include/uapi/linux/capability.h | 2 ++
> 1 file changed, 2 insertions(+)

Ping?

> 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.
> --
> 2.25.1
>


Attachments:
(No filename) (778.00 B)
signature.asc (499.00 B)
Download all attachments

2020-05-01 03:53:05

by James Morris

[permalink] [raw]
Subject: Re: [PATCH] capabilities: add description for CAP_SETFCAP

On Tue, 28 Apr 2020, Stefan Hajnoczi wrote:

> On Tue, Apr 14, 2020 at 04:49:45PM +0100, Stefan Hajnoczi wrote:
> > Document the purpose of CAP_SETFCAP. For some reason this capability
> > had no description while the others did.
> >
> > Signed-off-by: Stefan Hajnoczi <[email protected]>
> > ---
> > include/uapi/linux/capability.h | 2 ++
> > 1 file changed, 2 insertions(+)
>
> Ping?

Please resend and I'll add it to my tree.

>
> > 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.
> > --
> > 2.25.1
> >
>

--
James Morris
<[email protected]>