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

Commit f29b39d9 authored by Luis Hector Chavez's avatar Luis Hector Chavez
Browse files

fs_mgr: Always mount tmpfs with MS_NOEXEC

This change adds MS_NOEXEC to the list of flags used in
fs_mgr_do_tmpfs_mount().

Bug: 62419743
Test: aosp_bullhead-eng still boots
Change-Id: I3ee3bb825a59437eba48e3a5b898dd2e385a9ab7
parent 896297b2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1107,8 +1107,8 @@ int fs_mgr_do_tmpfs_mount(const char *n_name)
{
    int ret;

    ret = mount("tmpfs", n_name, "tmpfs",
                MS_NOATIME | MS_NOSUID | MS_NODEV, CRYPTO_TMPFS_OPTIONS);
    ret = mount("tmpfs", n_name, "tmpfs", MS_NOATIME | MS_NOSUID | MS_NODEV | MS_NOEXEC,
                CRYPTO_TMPFS_OPTIONS);
    if (ret < 0) {
        LERROR << "Cannot mount tmpfs filesystem at " << n_name;
        return -1;