projects
/
profile
/
ivi
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dff06e5
)
Use an umask fo 077 to protect profile storage
author
Marcel Holtmann
<marcel@holtmann.org>
Mon, 24 Aug 2009 04:08:36 +0000
(21:08 -0700)
committer
Marcel Holtmann
<marcel@holtmann.org>
Mon, 24 Aug 2009 04:08:36 +0000
(21:08 -0700)
src/main.c
patch
|
blob
|
history
diff --git
a/src/main.c
b/src/main.c
index
ac62312
..
9742125
100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-112,6
+112,7
@@
int main(int argc, char *argv[])
DBusConnection *conn;
DBusError err;
struct sigaction sa;
+ mode_t old_umask;
#ifdef NEED_THREADS
if (g_thread_supported() == FALSE)
@@
-156,6
+157,8
@@
int main(int argc, char *argv[])
perror("Failed to create storage directory");
}
+ old_umask = umask(077);
+
main_loop = g_main_loop_new(NULL, FALSE);
#ifdef NEED_THREADS