summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packaging/ug-nfc-efl.spec2
-rw-r--r--ug-nfc-setting-efl/CMakeLists.txt3
-rw-r--r--ug-nfc-setting-efl/ug.setting-nfc-efl.include12
-rw-r--r--ug-nfc-share-efl/CMakeLists.txt3
-rw-r--r--ug-nfc-share-efl/ug.share-nfc-efl.include8
5 files changed, 28 insertions, 0 deletions
diff --git a/packaging/ug-nfc-efl.spec b/packaging/ug-nfc-efl.spec
index cc484ad..188c5a5 100644
--- a/packaging/ug-nfc-efl.spec
+++ b/packaging/ug-nfc-efl.spec
@@ -85,6 +85,7 @@ cp -af LICENSE.Flora %{buildroot}/usr/share/license/ug-share-nfc-efl
/usr/ug/lib/libug-setting-nfc-efl*
/usr/ug/res/locale/*/LC_MESSAGES/ug-setting-nfc-efl*
/usr/ug/res/icons/*
+/etc/smack/accesses2.d/ug.setting-nfc-efl.include
/usr/share/license/ug-nfc-efl
%files -n ug-share-nfc-efl
@@ -95,4 +96,5 @@ cp -af LICENSE.Flora %{buildroot}/usr/share/license/ug-share-nfc-efl
/usr/ug/res/images/*
/usr/ug/res/edje/*
/usr/share/license/ug-share-nfc-efl
+/etc/smack/accesses2.d/ug.share-nfc-efl.include
/etc/config/nfc/*
diff --git a/ug-nfc-setting-efl/CMakeLists.txt b/ug-nfc-setting-efl/CMakeLists.txt
index de7b507..88152cd 100644
--- a/ug-nfc-setting-efl/CMakeLists.txt
+++ b/ug-nfc-setting-efl/CMakeLists.txt
@@ -81,6 +81,9 @@ INSTALL(FILES ${CMAKE_BINARY_DIR}/ug-setting-nfc-efl.edj DESTINATION ${EDJDIR})
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/icons/setting-nfc.png DESTINATION ${ICONDIR})
+# install smack file
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/ug.setting-nfc-efl.include DESTINATION /etc/smack/accesses2.d)
+
# install xml file
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/sysinfo-nfc-ug.xml DESTINATION /etc/config/nfc/)
diff --git a/ug-nfc-setting-efl/ug.setting-nfc-efl.include b/ug-nfc-setting-efl/ug.setting-nfc-efl.include
new file mode 100644
index 0000000..24a56b2
--- /dev/null
+++ b/ug-nfc-setting-efl/ug.setting-nfc-efl.include
@@ -0,0 +1,12 @@
+$1 system::homedir rwxat
+$1 system::vconf rwxat
+$1 xorg rw
+$1 isf rwx
+$1 pulseaudio rwx
+$1 sound_server rw
+$1 nfc-manager rwx
+$1 nfc-manager::admin rwx
+$1 com.samsung.indicator rw
+$1 ail::db rw
+$1 osp-connectivity-service rw
+e17 $1 rw
diff --git a/ug-nfc-share-efl/CMakeLists.txt b/ug-nfc-share-efl/CMakeLists.txt
index 3897109..99735ed 100644
--- a/ug-nfc-share-efl/CMakeLists.txt
+++ b/ug-nfc-share-efl/CMakeLists.txt
@@ -84,4 +84,7 @@ INSTALL(FILES ${CMAKE_BINARY_DIR}/ug-share-nfc-efl.edj DESTINATION ${EDJDIR})
INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/data/images/ DESTINATION ${IMAGEDIR} FILES_MATCHING PATTERN "*.png")
INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/data/images/ DESTINATION ${IMAGEDIR} FILES_MATCHING PATTERN "*.jpg")
+# install smack file
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/ug.share-nfc-efl.include DESTINATION /etc/smack/accesses2.d)
+
ADD_SUBDIRECTORY(po)
diff --git a/ug-nfc-share-efl/ug.share-nfc-efl.include b/ug-nfc-share-efl/ug.share-nfc-efl.include
new file mode 100644
index 0000000..3005ab2
--- /dev/null
+++ b/ug-nfc-share-efl/ug.share-nfc-efl.include
@@ -0,0 +1,8 @@
+$1 system::homedir rwxat
+$1 system::vconf rwxat
+$1 com.samsung.indicator rw
+$1 nfc-manager rwx
+$1 nfc-manager::p2p rwx
+$1 nfc-manager::admin rwx
+$1 ail::db rw
+e17 $1 rw