diff options
| author | Michael LeMay <[email protected]> | 2006-06-26 07:24:54 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2006-06-26 16:58:18 +0000 |
| commit | e51f6d343789a4f0a2a7587ad7ec7746969d5c1c (patch) | |
| tree | 39ca4e05c0dda995f3eaaea1aaa2c8689003f1d0 /security/selinux/hooks.c | |
| parent | [PATCH] keys: let keyctl_chown() change a key's owner (diff) | |
| download | kernel-e51f6d343789a4f0a2a7587ad7ec7746969d5c1c.tar.gz kernel-e51f6d343789a4f0a2a7587ad7ec7746969d5c1c.zip | |
[PATCH] keys: allocate key serial numbers randomly
Cause key_alloc_serial() to generate key serial numbers randomly rather than
in linear sequence.
Using an linear sequence permits a covert communication channel to be
established, in which one process can communicate with another by creating or
not creating new keys within a certain timeframe. The second process can
probe for the expected next key serial number and judge its existence by the
error returned.
This is a problem as the serial number namespace is globally shared between
all tasks, regardless of their context.
For more information on this topic, this old TCSEC guide is recommended:
http://www.radium.ncsc.mil/tpep/library/rainbow/NCSC-TG-030.html
Signed-off-by: Michael LeMay <[email protected]>
Signed-off-by: James Morris <[email protected]>
Signed-off-by: David Howells <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions
