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

Unified Diff: platform.h

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
« mount.cc ('K') | « mount.cc ('k') | platform.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: platform.h
diff --git a/platform.h b/platform.h
index 78bb6c6816983e94b431a9fc5c39a5319d413af7..84c37649ef64f9f111ef750f8fe8d83fd4da069b 100644
--- a/platform.h
+++ b/platform.h
@@ -7,6 +7,7 @@
#include <base/basictypes.h>
#include <chromeos/utility.h>
+#include <sys/stat.h>
#include <set>
#include <string>
#include <vector>
@@ -152,6 +153,15 @@ class Platform {
uid_t user_id,
gid_t group_id);
+ // Calls the platform chmod() function on the given path.
+ //
+ // The path may be a directory or a file.
+ //
+ // Parameters
+ // path - The path to set ownership on
+ // new_perms - an OR'd together bitfield of permissions per chmod(2)
+ virtual bool SetPermissions(const std::string& path, mode_t new_perms);
Will Drewry 2011/04/21 21:42:09 nit: mind adding it to mock_platform.h?
+
// Sets the current umask, returning the old mask
//
// Parameters
« mount.cc ('K') | « mount.cc ('k') | platform.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698