macro: use ascending order for capabilities

parent a4a5fe2a
...@@ -37,6 +37,14 @@ ...@@ -37,6 +37,14 @@
#endif #endif
/* capabilities */ /* capabilities */
#ifndef CAP_SETGID
#define CAP_SETGID 6
#endif
#ifndef CAP_SETUID
#define CAP_SETUID 7
#endif
#ifndef CAP_SYS_ADMIN #ifndef CAP_SYS_ADMIN
#define CAP_SYS_ADMIN 21 #define CAP_SYS_ADMIN 21
#endif #endif
...@@ -53,14 +61,6 @@ ...@@ -53,14 +61,6 @@
#define CAP_MAC_ADMIN 33 #define CAP_MAC_ADMIN 33
#endif #endif
#ifndef CAP_SETUID
#define CAP_SETUID 7
#endif
#ifndef CAP_SETGID
#define CAP_SETGID 6
#endif
/* prctl */ /* prctl */
#ifndef PR_CAPBSET_READ #ifndef PR_CAPBSET_READ
#define PR_CAPBSET_READ 23 #define PR_CAPBSET_READ 23
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment