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

Commit e34b9171 authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Support full 32 bits for socket tags.

Bug: 5321184
Change-Id: Iabd668674e60626caafc9b66b29fdbddc3724f58
parent 575b2358
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -99,9 +99,7 @@ static int write_param(const char *param_path, const char *value) {
int qtaguid_tagSocket(int sockfd, int tag, uid_t uid) {
    char lineBuf[CTRL_MAX_INPUT_LEN];
    int res;
    /* Doing java-land a favor, enforcing "long" */
    uint64_t kTag = ((uint64_t)tag << 32) & ~(1LLU<<63);

    uint64_t kTag = ((uint64_t)tag << 32);

    pthread_once(&resTrackInitDone, qtaguid_resTrack);