Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ed688ee8 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "libbinder: Document getCalling*" am: 8ba800fd am: 8c35f81d

Change-Id: I0257f698c5d9a99f714d89569716d12e6701fb56
parents e8c512e6 8c35f81d
Loading
Loading
Loading
Loading
+20 −4
Original line number Original line Diff line number Diff line
@@ -39,12 +39,28 @@ public:
            
            
            status_t            clearLastError();
            status_t            clearLastError();


            /**
             * Returns the PID of the process which has made the current binder
             * call. If not in a binder call, this will return getpid. If the
             * call is oneway, this will return 0.
             */
            pid_t               getCallingPid() const;
            pid_t               getCallingPid() const;
            // nullptr if unavailable

            //
            /**
            // this can't be restored once it's cleared, and it does not return the
             * Returns the SELinux security identifier of the process which has
            // context of the current process when not in a binder call.
             * made the current binder call. If not in a binder call this will
             * return nullptr. If this isn't requested with
             * IBinder::setRequestingSid, it will also return nullptr.
             *
             * This can't be restored once it's cleared, and it does not return the
             * context of the current process when not in a binder call.
             */
            const char*         getCallingSid() const;
            const char*         getCallingSid() const;

            /**
             * Returns the UID of the process which has made the current binder
             * call. If not in a binder call, this will return 0.
             */
            uid_t               getCallingUid() const;
            uid_t               getCallingUid() const;


            void                setStrictModePolicy(int32_t policy);
            void                setStrictModePolicy(int32_t policy);