Commit 212e2105 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

creds: Move proc_status_creds::cap_X at the end of structure

For easier comparision which gonna be addressed in next patch.

https://jira.sw.ru/PSBM-41416Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Acked-by: 's avatarTycho Andersen <tycho.andersen@canonical.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 85ea6877
...@@ -85,11 +85,6 @@ struct proc_status_creds { ...@@ -85,11 +85,6 @@ struct proc_status_creds {
unsigned int uids[4]; unsigned int uids[4];
unsigned int gids[4]; unsigned int gids[4];
u32 cap_inh[PROC_CAP_SIZE];
u32 cap_prm[PROC_CAP_SIZE];
u32 cap_eff[PROC_CAP_SIZE];
u32 cap_bnd[PROC_CAP_SIZE];
char state; char state;
int ppid; int ppid;
unsigned long long sigpnd; unsigned long long sigpnd;
...@@ -97,6 +92,15 @@ struct proc_status_creds { ...@@ -97,6 +92,15 @@ struct proc_status_creds {
int seccomp_mode; int seccomp_mode;
u32 last_filter; u32 last_filter;
/*
* Keep them at the end of structure
* for fast comparision reason.
*/
u32 cap_inh[PROC_CAP_SIZE];
u32 cap_prm[PROC_CAP_SIZE];
u32 cap_eff[PROC_CAP_SIZE];
u32 cap_bnd[PROC_CAP_SIZE];
}; };
bool proc_status_creds_eq(struct proc_status_creds *o1, struct proc_status_creds *o2); bool proc_status_creds_eq(struct proc_status_creds *o1, struct proc_status_creds *o2);
......
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