Skip to content

Commit

Permalink
macro: use ascending order for capabilities
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Jan 4, 2021
1 parent bfcd663 commit 24b77f4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/lxc/macro.h
Expand Up @@ -37,6 +37,14 @@
#endif

/* capabilities */
#ifndef CAP_SETGID
#define CAP_SETGID 6
#endif

#ifndef CAP_SETUID
#define CAP_SETUID 7
#endif

#ifndef CAP_SYS_ADMIN
#define CAP_SYS_ADMIN 21
#endif
Expand All @@ -53,14 +61,6 @@
#define CAP_MAC_ADMIN 33
#endif

#ifndef CAP_SETUID
#define CAP_SETUID 7
#endif

#ifndef CAP_SETGID
#define CAP_SETGID 6
#endif

/* prctl */
#ifndef PR_CAPBSET_READ
#define PR_CAPBSET_READ 23
Expand Down

0 comments on commit 24b77f4

Please sign in to comment.