projects
/
platform
/
core
/
system
/
swap-manager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ba2ff8
)
modify access label of snapshot saving directory
author
woojin
<woojin2.jung@samsung.com>
Sat, 1 Jun 2013 04:23:25 +0000
(13:23 +0900)
committer
woojin
<woojin2.jung@samsung.com>
Sat, 1 Jun 2013 04:23:25 +0000
(13:23 +0900)
Change-Id: Id947aaa9ab62a133dcfe903822bee4449e54bb92
daemon/daemon.c
patch
|
blob
|
history
diff --git
a/daemon/daemon.c
b/daemon/daemon.c
index
0121860
..
371b940
100644
(file)
--- a/
daemon/daemon.c
+++ b/
daemon/daemon.c
@@
-43,6
+43,7
@@
#include <linux/input.h>
#include <dirent.h>
#include <fcntl.h>
+#include <sys/smack.h>
#include "daemon.h"
#include "sys_stat.h"
@@
-319,6
+320,7
@@
static int startProfiling(long launchflag)
// remove previous screen capture files
remove_indir(SCREENSHOT_DIR);
mkdir(SCREENSHOT_DIR, 0777);
+ smack_lsetlabel(SCREENSHOT_DIR, "*", SMACK_LABEL_ACCESS);
manager.config_flag = launchflag;