Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(751)

Unified Diff: mount.cc

Issue 6895001: [cryptohome] make guest-mode homedir mount with -rwx------ (Closed) Base URL: http://git.chromium.org/git/cryptohome.git@master
Patch Set: do it Jim's way! Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mount.cc
diff --git a/mount.cc b/mount.cc
index ff2106fa401a6883be22740b319682e0ec9b2cca..6b6f4718236117fcccf72373cc3b784d255b31a6 100644
--- a/mount.cc
+++ b/mount.cc
@@ -835,7 +835,7 @@ bool Mount::MountGuestCryptohome() const {
current_user_->Reset();
// Attempt to mount guestfs
- if (!platform_->Mount("guestfs", home_dir_, "tmpfs", "")) {
+ if (!platform_->Mount("guestfs", home_dir_, "tmpfs", "mode=0700")) {
LOG(ERROR) << "Cryptohome mount failed: " << errno << " for guestfs";
return false;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698