am 744c4986: Merge "sdcard: mount sdcard with the noexec option"

* commit '744c4986a1cdbf5c2cbe71d149f1545052e4f33f':
  sdcard: mount sdcard with the noexec option
This commit is contained in:
Elliott Hughes 2014-11-25 12:59:15 +00:00 committed by Android Git Automerger
commit d6dc983078

View file

@ -1834,7 +1834,7 @@ static int run(const char* source_path, const char* dest_path, uid_t uid,
"fd=%i,rootmode=40000,default_permissions,allow_other,user_id=%d,group_id=%d",
fd, uid, gid);
res = mount("/dev/fuse", dest_path, "fuse", MS_NOSUID | MS_NODEV, opts);
res = mount("/dev/fuse", dest_path, "fuse", MS_NOSUID | MS_NODEV | MS_NOEXEC, opts);
if (res < 0) {
ERROR("cannot mount fuse filesystem: %s\n", strerror(errno));
goto error;