modify access label of snapshot saving directory
authorwoojin <woojin2.jung@samsung.com>
Sat, 1 Jun 2013 04:23:25 +0000 (13:23 +0900)
committerwoojin <woojin2.jung@samsung.com>
Sat, 1 Jun 2013 04:23:25 +0000 (13:23 +0900)
Change-Id: Id947aaa9ab62a133dcfe903822bee4449e54bb92

daemon/daemon.c

index 0121860..371b940 100644 (file)
@@ -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;