For more convenient access if one has a pointer to the task.
As a minor nit take advantage of the fact that only task lock + rcu are
needed to safely grab ->exe_file. This saves mm refcount dance.
Use the helper in proc_exe_link.
Signed-off-by: Mateusz Guzik <[email protected]>
Acked-by: Konstantin Khlebnikov <[email protected]>
Acked-by: Richard Guy Briggs <[email protected]>
Cc: <[email protected]> # 4.3.x
Signed-off-by: Paul Moore <[email protected]>