Merge "fs_mgr: Always mount tmpfs with MS_NOEXEC"
This commit is contained in:
commit
8f2a34a89b
1 changed files with 2 additions and 2 deletions
|
|
@ -1180,8 +1180,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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue