commit | 7ea269e060ec85eaf94ccf95033a6a6857fcff4e | [log] [tgz] |
---|---|---|
author | Jorge Lucangeli Obes <jorgelo@google.com> | Fri Feb 26 22:07:09 2016 -0800 |
committer | Jorge Lucangeli Obes <jorgelo@google.com> | Fri Feb 26 22:21:20 2016 -0800 |
tree | 213a037e3bb4bf0d54e91c4cfdae61d45c50b977 | |
parent | d8c82052209904fba2b8b8cc46d15abd465a96f3 [diff] |
Don't call cap_get_proc(3) unconditionally. cap_get_proc(3) uses the capget(2) system call. Don't call cap_get_proc(3) if |flags.use_caps| is not set, to avoid having the program call a capability-related syscall even when capabilities are not being used. Bug: 27366428 Change-Id: Ifb797bc5f1a43adf4f9fa2fff3ef7d6f4bd9c958