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

Commit 6eaa84fa authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "libbinder: [[nodiscard]] getCalling*" am: b28b1591

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1708277

Change-Id: I7f37811bd361ed8c078d729a0734c3f35baeb1c5
parents 95ed2cc4 b28b1591
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -62,7 +62,7 @@ public:
             * call. If not in a binder call, this will return getpid. If the
             * call. If not in a binder call, this will return getpid. If the
             * call is oneway, this will return 0.
             * call is oneway, this will return 0.
             */
             */
            pid_t               getCallingPid() const;
            [[nodiscard]] pid_t getCallingPid() const;


            /**
            /**
             * Returns the SELinux security identifier of the process which has
             * Returns the SELinux security identifier of the process which has
@@ -73,13 +73,13 @@ public:
             * This can't be restored once it's cleared, and it does not return the
             * 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.
             * context of the current process when not in a binder call.
             */
             */
            const char*         getCallingSid() const;
            [[nodiscard]] const char* getCallingSid() const;


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


            /**
            /**
             * Make it an abort to rely on getCalling* for a section of
             * Make it an abort to rely on getCalling* for a section of