diff mbox series

Fix build error because of undefined CAP_SYS_TIME

Message ID CAGR3Yi6r+caUYV+yZYHGsuRUPQBbpsN_PJOTTSvHwE2VARy92g@mail.gmail.com
State Superseded
Headers show
Series Fix build error because of undefined CAP_SYS_TIME | expand

Commit Message

Ronald Monthero March 10, 2020, 2:44 a.m. UTC
Details of the build log at pr#654
https://github.com/linux-test-project/ltp/pull/654

Signed-off-by: Ronald Monthero <rmonther@redhat.com>
---
---

Comments

Yang Xu March 10, 2020, 2:50 a.m. UTC | #1
Hi Ronald

acked, but I think we can sort them by num.

@xiao, can you merge this patch?

Best Regards
Yang Xu

> Details of the build log at pr#654 
> https://github.com/linux-test-project/ltp/pull/654
> 
> Signed-off-by: Ronald Monthero <rmonther@redhat.com
> <mailto:rmonther@redhat.com>>
> ---
> diff --git a/include/lapi/capability.h b/include/lapi/capability.h
> index 8833f0605..8ed68bfce 100644
> --- a/include/lapi/capability.h
> +++ b/include/lapi/capability.h
> @@ -24,6 +24,10 @@
>   # define CAP_NET_RAW          13
>   #endif
> 
> +#ifndef CAP_SYS_TIME
> +#define CAP_SYS_TIME          25
> +#endif
> +
>   #ifndef CAP_SYS_ADMIN
>   # define CAP_SYS_ADMIN        21
>   #endif
> ---
> 
>
Ronald Monthero March 10, 2020, 2:54 a.m. UTC | #2
Sure thanks

Regards,
Ronald

On Tue, Mar 10, 2020 at 12:51 PM Yang Xu <xuyang2018.jy@cn.fujitsu.com> wrote:
>
> Hi Ronald
>
> acked, but I think we can sort them by num.
>
> @xiao, can you merge this patch?
>
> Best Regards
> Yang Xu
>
> > Details of the build log at pr#654
> > https://github.com/linux-test-project/ltp/pull/654
> >
> > Signed-off-by: Ronald Monthero <rmonther@redhat.com
> > <mailto:rmonther@redhat.com>>
> > ---
> > diff --git a/include/lapi/capability.h b/include/lapi/capability.h
> > index 8833f0605..8ed68bfce 100644
> > --- a/include/lapi/capability.h
> > +++ b/include/lapi/capability.h
> > @@ -24,6 +24,10 @@
> >   # define CAP_NET_RAW          13
> >   #endif
> >
> > +#ifndef CAP_SYS_TIME
> > +#define CAP_SYS_TIME          25
> > +#endif
> > +
> >   #ifndef CAP_SYS_ADMIN
> >   # define CAP_SYS_ADMIN        21
> >   #endif
> > ---
> >
> >
>
>
Ronald Monthero March 10, 2020, 3:15 a.m. UTC | #3
> acked, but I think we can sort them by num.
Sure sounds good to sort them.

Signed-off-by: Ronald Monthero <rmonther@redhat.com>
---
 include/lapi/capability.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/lapi/capability.h b/include/lapi/capability.h
index 8ed68bfce..f69f27c88 100644
--- a/include/lapi/capability.h
+++ b/include/lapi/capability.h
@@ -24,14 +24,14 @@
 # define CAP_NET_RAW          13
 #endif

 #ifndef CAP_SYS_ADMIN
 # define CAP_SYS_ADMIN        21
 #endif

+#ifndef CAP_SYS_TIME
+#define CAP_SYS_TIME          25
+#endif
+
 #ifndef CAP_AUDIT_READ
 # define CAP_AUDIT_READ       37
 #endif

On Tue, Mar 10, 2020 at 12:51 PM Yang Xu <xuyang2018.jy@cn.fujitsu.com> wrote:
>
> Hi Ronald
>
> acked, but I think we can sort them by num.
>
> @xiao, can you merge this patch?
>
> Best Regards
> Yang Xu
>
> > Details of the build log at pr#654
> > https://github.com/linux-test-project/ltp/pull/654
> >
> > Signed-off-by: Ronald Monthero <rmonther@redhat.com
> > <mailto:rmonther@redhat.com>>
> > ---
> > diff --git a/include/lapi/capability.h b/include/lapi/capability.h
> > index 8833f0605..8ed68bfce 100644
> > --- a/include/lapi/capability.h
> > +++ b/include/lapi/capability.h
> > @@ -24,6 +24,10 @@
> >   # define CAP_NET_RAW          13
> >   #endif
> >
> > +#ifndef CAP_SYS_TIME
> > +#define CAP_SYS_TIME          25
> > +#endif
> > +
> >   #ifndef CAP_SYS_ADMIN
> >   # define CAP_SYS_ADMIN        21
> >   #endif
> > ---
> >
> >
>
>
diff mbox series

Patch

diff --git a/include/lapi/capability.h b/include/lapi/capability.h
index 8833f0605..8ed68bfce 100644
--- a/include/lapi/capability.h
+++ b/include/lapi/capability.h
@@ -24,6 +24,10 @@ 
 # define CAP_NET_RAW          13
 #endif

+#ifndef CAP_SYS_TIME
+#define CAP_SYS_TIME          25
+#endif
+
 #ifndef CAP_SYS_ADMIN
 # define CAP_SYS_ADMIN        21
 #endif