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

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: 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 | platform.h » ('j') | platform.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mount.cc
diff --git a/mount.cc b/mount.cc
index ff2106fa401a6883be22740b319682e0ec9b2cca..0121a82ef317d77082754ebd2b5a4dcae599d2ec 100644
--- a/mount.cc
+++ b/mount.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2009-2010 The Chromium OS Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -849,6 +849,8 @@ bool Mount::MountGuestCryptohome() const {
return false;
}
}
+ if (!platform_->SetPermissions(home_dir_, S_IRUSR | S_IWUSR | S_IXUSR))
Will Drewry 2011/04/21 21:42:09 Doesn't this need to call platform_->Unmount if it
+ return false;
CopySkeleton();
return true;
}
« no previous file with comments | « no previous file | platform.h » ('j') | platform.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698