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

Commit 00e163d9 authored by Thiébaud Weksteen's avatar Thiébaud Weksteen Committed by Automerger Merge Worker
Browse files

Merge "Replace security_context_t type" am: 05683386 am: 760547e2 am: 4622dfdd am: b753c5a9

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

Change-Id: I876d748bd78f8c5e023bb925f1be3e2ad2c24550
parents 5e265d2e b753c5a9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -52,7 +52,7 @@ static int sort_func(const String16* lhs, const String16* rhs)
}

struct SecurityContext_Delete {
    void operator()(security_context_t p) const {
    void operator()(char* p) const {
        freecon(p);
    }
};
@@ -108,7 +108,7 @@ public:
        }
        if (is_selinux_enabled() && seLinuxContext.size() > 0) {
            String8 seLinuxContext8(seLinuxContext);
            security_context_t tmp = nullptr;
            char* tmp = nullptr;
            getfilecon(fullPath.string(), &tmp);
            Unique_SecurityContext context(tmp);
            if (checkWrite) {