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

Commit 132615b8 authored by Tom Cherry's avatar Tom Cherry Committed by Gerrit Code Review
Browse files

Merge "Move watchdogd out of init"

parents e961bbca 40acb379
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -127,7 +127,6 @@ cc_library_static {
        "ueventd.cpp",
        "ueventd_parser.cpp",
        "util.cpp",
        "watchdogd.cpp",
    ],
    whole_static_libs: ["libcap"],
    header_libs: ["bootimg_headers"],
@@ -157,7 +156,6 @@ cc_binary {
    srcs: ["main.cpp"],
    symlinks: [
        "sbin/ueventd",
        "sbin/watchdogd",
    ],
}
*/
+0 −1
Original line number Diff line number Diff line
@@ -98,7 +98,6 @@ LOCAL_REQUIRED_MODULES := \
# Create symlinks.
LOCAL_POST_INSTALL_CMD := $(hide) mkdir -p $(TARGET_ROOT_OUT)/sbin; \
    ln -sf ../init $(TARGET_ROOT_OUT)/sbin/ueventd; \
    ln -sf ../init $(TARGET_ROOT_OUT)/sbin/watchdogd

LOCAL_SANITIZE := signed-integer-overflow
include $(BUILD_EXECUTABLE)
+1 −1
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@
#include "util.h"

#ifdef _INIT_INIT_H
#error "Do not include init.h in files used by ueventd or watchdogd; it will expose init's globals"
#error "Do not include init.h in files used by ueventd; it will expose init's globals"
#endif

using android::base::Basename;
+2 −3
Original line number Diff line number Diff line
@@ -41,10 +41,9 @@ uint32_t HandlePropertySet(const std::string&, const std::string&, const std::st
}

// selinux.h
bool SelinuxHasVendorInit() {
    return true;
int SelinuxGetVendorAndroidVersion() {
    return 10000;
}

void SelabelInitialize() {}

bool SelabelLookupFileContext(const std::string& key, int type, std::string* result) {
+4 −1
Original line number Diff line number Diff line
@@ -23,6 +23,9 @@

#include <string>

// android/api-level.h
#define __ANDROID_API_P__ 28

// sys/system_properties.h
#define PROP_VALUE_MAX 92

@@ -41,7 +44,7 @@ uint32_t HandlePropertySet(const std::string& name, const std::string& value,
                           const std::string& source_context, const ucred& cr, std::string* error);

// selinux.h
bool SelinuxHasVendorInit();
int SelinuxGetVendorAndroidVersion();
void SelabelInitialize();
bool SelabelLookupFileContext(const std::string& key, int type, std::string* result);

Loading