diff options
author | Steven Moreland <smoreland@google.com> | 2018-12-26 13:59:23 -0800 |
---|---|---|
committer | Steven Moreland <smoreland@google.com> | 2019-01-07 15:12:59 -0800 |
commit | 96108497705c3ba22f02f4869fa70af1a97d0574 (patch) | |
tree | 99419df5c5273487f6a2a5ea6abec0f72024e555 /Binder.cpp | |
parent | 0317500cca4b58f9e2aca0d8935211c1216f49b4 (diff) | |
download | libhwbinder-96108497705c3ba22f02f4869fa70af1a97d0574.tar.gz |
getCallingSid: get calling security context
This call gets the security context of the calling process when
requested.
Bug: 121035042
Test: boot
Change-Id: Ia8a4c0cb4a9c86dcc0d3b7583014237f879a3074
Diffstat (limited to 'Binder.cpp')
-rw-r--r-- | Binder.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -67,7 +67,7 @@ public: // --------------------------------------------------------------------------- -BHwBinder::BHwBinder() : mSchedPolicy(SCHED_NORMAL), mSchedPriority(0), mExtras(nullptr) +BHwBinder::BHwBinder() : mSchedPolicy(SCHED_NORMAL), mSchedPriority(0), mRequestingSid(false), mExtras(nullptr) { } @@ -79,6 +79,10 @@ int BHwBinder::getMinSchedulingPriority() { return mSchedPriority; } +bool BHwBinder::isRequestingSid() { + return mRequestingSid; +} + status_t BHwBinder::transact( uint32_t code, const Parcel& data, Parcel* reply, uint32_t flags, TransactCallback callback) { |