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

Commit 17572ca9 authored by Elliott Hughes's avatar Elliott Hughes
Browse files

Explain why snapuserd is a static binary.

Static binaries are pretty rare (and usually a bad idea) but there's a
rationale for this one, so we should record it.

Test: treehugger
Change-Id: I7fc5c32bbbec1ccf195d94eaedfb1bd718a364e1
parent aa696486
Loading
Loading
Loading
Loading
+14 −7
Original line number Diff line number Diff line
@@ -95,7 +95,14 @@ cc_binary {
    init_rc: [
        "snapuserd.rc",
    ],

    // snapuserd is started during early boot by first-stage init. At that
    // point, /system is mounted using the "dm-user" device-mapper kernel
    // module. dm-user routes all I/O to userspace to be handled by
    // snapuserd, which would lead to deadlock if we had to handle page
    // faults for its code pages.
    static_executable: true,

    system_shared_libs: [],
    ramdisk_available: true,
    vendor_ramdisk_available: true,