Skip to content
Commit 2950fa9d authored by Chen Gang's avatar Chen Gang Committed by Eric Paris
Browse files

kernel: audit: beautify code, for extern function, better to check its parameters by itself



  __audit_socketcall is an extern function.
  better to check its parameters by itself.

    also can return error code, when fail (find invalid parameters).
    also use macro instead of real hard code number
    also give related comments for it.

Signed-off-by: default avatarChen Gang <gang.chen@asianux.com>
[eparis: fix the return value when !CONFIG_AUDIT]
Signed-off-by: default avatarEric Paris <eparis@redhat.com>
parent 65ada7bc
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment