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

Commit 8f2a34a8 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "fs_mgr: Always mount tmpfs with MS_NOEXEC"

parents 6e05552e f29b39d9
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -1180,8 +1180,8 @@ int fs_mgr_do_tmpfs_mount(const char *n_name)
{
{
    int ret;
    int ret;


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