aboutsummaryrefslogtreecommitdiff
path: root/lib/cpu-notifier-error-inject.c
diff options
context:
space:
mode:
authorAndrew G. Morgan <[email protected]>2009-11-23 04:57:52 +0000
committerJames Morris <[email protected]>2009-11-24 08:53:29 +1100
commitc4a5af54c8ef277a59189fc9358e190f3c1b8206 (patch)
treeeab45631ca769f92f01276066ee58861ad494d18 /lib/cpu-notifier-error-inject.c
parentfe542cf59bf0b31afe72b9e9749c0f6645419fa0 (diff)
Silence the existing API for capability version compatibility check.
When libcap, or other libraries attempt to confirm/determine the supported capability version magic, they generally supply a NULL dataptr to capget(). In this case, while returning the supported/preferred magic (via a modified header content), the return code of this system call may be 0, -EINVAL, or -EFAULT. No libcap code depends on the previous -EINVAL etc. return code, and all of the above three return codes can accompany a valid (successful) attempt to determine the requested magic value. This patch cleans up the system call to return 0, if the call is successfully being used to determine the supported/preferred capability magic value. Signed-off-by: Andrew G. Morgan <[email protected]> Acked-by: Steve Grubb <[email protected]> Acked-by: Serge Hallyn <[email protected]> Signed-off-by: James Morris <[email protected]>
Diffstat (limited to 'lib/cpu-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions