mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
Merge Initialize the backmap field in new_entry for capability addition
The old code implicitly initialized it to 0 by overwriting a zero-initialized array terminator. Now that we construct the new entry from scratch, we need to do this manually. Signed-off-by: Ryan Lee <ryan.lee@canonical.com> MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/1423 Approved-by: John Johansen <john@jjmx.net> Merged-by: John Johansen <john@jjmx.net>
This commit is contained in:
commit
4af8acee6f
1 changed files with 1 additions and 0 deletions
|
@ -337,6 +337,7 @@ class capability_lookup {
|
|||
return add_cap_result::ERROR;
|
||||
}
|
||||
new_entry.cap = cap;
|
||||
new_entry.backmap = 0;
|
||||
new_entry.flags = flag;
|
||||
try {
|
||||
this->add_capability_table_entry_raw(new_entry);
|
||||
|
|
Loading…
Add table
Reference in a new issue