diff options
author | James Morris <james.l.morris@oracle.com> | 2017-11-24 11:54:11 +1100 |
---|---|---|
committer | James Morris <james.l.morris@oracle.com> | 2017-11-24 11:54:11 +1100 |
commit | ce44cd8dfc55110fa7423ceb47a8a70dac65fe89 (patch) | |
tree | 632da275c702e37c9fbad5791ca6455242bb1177 /Documentation | |
parent | 5a787756b809888e8925d722862167f1229b58f7 (diff) | |
parent | 1e684d3820d8f72d877c0adb521ae17c6fc9bc88 (diff) |
Merge tag 'keys-next-20171123' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs into next-keys
Merge keys subsystem changes from David Howells, for v4.15.
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/security/keys/core.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Documentation/security/keys/core.rst b/Documentation/security/keys/core.rst index 1266eeae45f6..9ce7256c6edb 100644 --- a/Documentation/security/keys/core.rst +++ b/Documentation/security/keys/core.rst @@ -628,12 +628,12 @@ The keyctl syscall functions are: defined key type will return its data as is. If a key type does not implement this function, error EOPNOTSUPP will result. - As much of the data as can be fitted into the buffer will be copied to - userspace if the buffer pointer is not NULL. - - On a successful return, the function will always return the amount of data - available rather than the amount copied. + If the specified buffer is too small, then the size of the buffer required + will be returned. Note that in this case, the contents of the buffer may + have been overwritten in some undefined way. + Otherwise, on success, the function will return the amount of data copied + into the buffer. * Instantiate a partially constructed key:: |