diff options
author | Mat Martineau <mathew.j.martineau@linux.intel.com> | 2016-10-05 01:27:32 +0200 |
---|---|---|
committer | Mat Martineau <mathew.j.martineau@linux.intel.com> | 2017-04-04 23:10:11 +0200 |
commit | 4a420896f12d2d043602f134ae18ad6be5b9d9dd (patch) | |
tree | e94fefe0dd32c3bbe3a3585277305ce8b270201f /Documentation | |
parent | KEYS: Add an optional lookup_restriction hook to key_type (diff) | |
download | linux-4a420896f12d2d043602f134ae18ad6be5b9d9dd.tar.xz linux-4a420896f12d2d043602f134ae18ad6be5b9d9dd.zip |
KEYS: Consistent ordering for __key_link_begin and restrict check
The keyring restrict callback was sometimes called before
__key_link_begin and sometimes after, which meant that the keyring
semaphores were not always held during the restrict callback.
If the semaphores are consistently acquired before checking link
restrictions, keyring contents cannot be changed after the restrict
check is complete but before the evaluated key is linked to the keyring.
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions