summaryrefslogtreecommitdiff
path: root/src/resolver.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/resolver.c')
-rw-r--r--src/resolver.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/resolver.c b/src/resolver.c
index 01e7c0e0..f6fd0632 100644
--- a/src/resolver.c
+++ b/src/resolver.c
@@ -37,6 +37,10 @@
#define RESOLVER_FLAG_PUBLIC (1 << 0)
+#if defined TIZEN_EXT
+#include <sys/smack.h>
+#endif
+
/*
* Threshold for RDNSS lifetime. Will be used to trigger RS
* before RDNSS entries actually expire
@@ -137,6 +141,11 @@ static int resolvfile_export(void)
goto done;
}
+#if defined TIZEN_EXT
+ if (smack_fsetlabel(fd, "_", SMACK_LABEL_ACCESS) != 0)
+ DBG("Failed to label _");
+#endif
+
if (ftruncate(fd, 0) < 0) {
err = -errno;
goto failed;