diff options
author | Sunyeop Hwang <sunyeop.hwang@samsung.com> | 2013-05-03 16:42:34 +0900 |
---|---|---|
committer | Sunyeop Hwang <sunyeop.hwang@samsung.com> | 2013-05-03 16:43:52 +0900 |
commit | 51ef2b9083cea01c068f47e0d688ee6eba5e0a17 (patch) | |
tree | 8e166161fab5e6dab0a715e82635e3afb872709f | |
parent | f1deb610d26ace16f816e4d7947e5199589d289f (diff) | |
download | pwlock-51ef2b9083cea01c068f47e0d688ee6eba5e0a17.tar.gz pwlock-51ef2b9083cea01c068f47e0d688ee6eba5e0a17.tar.bz2 pwlock-51ef2b9083cea01c068f47e0d688ee6eba5e0a17.zip |
update manifest/rule file for smack
Change-Id: I58e0aab0d646be0afa4f268c73684fa30b10868c
-rwxr-xr-x | CMakeLists.txt | 2 | ||||
-rw-r--r-- | org.tizen.pwlock.manifest | 30 | ||||
-rw-r--r-- | org.tizen.pwlock.rule | 18 | ||||
-rwxr-xr-x | packaging/org.tizen.pwlock.spec | 1 |
4 files changed, 27 insertions, 24 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index e2df47f..5e2f47c 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -99,6 +99,8 @@ TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_LDFLAGS}) INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${PKGNAME}.xml DESTINATION /usr/share/packages) INSTALL(TARGETS ${PROJECT_NAME} DESTINATION ${BINDIR}) +INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${PKGNAME}.rule DESTINATION /etc/smack/accesses2.d) + # i18n ADD_SUBDIRECTORY(po) ADD_SUBDIRECTORY(res) diff --git a/org.tizen.pwlock.manifest b/org.tizen.pwlock.manifest index 8ace480..049a7f9 100644 --- a/org.tizen.pwlock.manifest +++ b/org.tizen.pwlock.manifest @@ -1,26 +1,8 @@ <manifest> - <define> - <domain name="org.tizen.pwlock"/> - <request> - <smack request="system::homedir" type="arwxt"/> - <smack request="system::vconf" type="arwxt"/> - <smack request="system::syslogd" type="w"/> - <smack request="system::use_internet" type="r"/> - <smack request="xorg" type="w"/> - <smack request="isf" type="r"/> - <smack request="device::app_logging" type="w"/> - <smack request="ail::db" type="rw"/> - <smack request="dbus" type="w"/> - </request> - <permit> - <smack permit="dbus" type="w"/> - </permit> - </define> - <request> - <domain name="org.tizen.pwlock"/> - </request> - <assign> - <filesystem path="/usr/share/applications/org.tizen.pwlock.desktop" label="_" /> - <filesystem path="/usr/share/packages/org.tizen.pwlock.xml" label="_" /> - </assign> + <define> + <domain name="org.tizen.pwlock" /> + </define> + <request> + <domain name="org.tizen.pwlock" /> + </request> </manifest> diff --git a/org.tizen.pwlock.rule b/org.tizen.pwlock.rule new file mode 100644 index 0000000..a457506 --- /dev/null +++ b/org.tizen.pwlock.rule @@ -0,0 +1,18 @@ +org.tizen.pwlock system::homedir rwxat +org.tizen.pwlock system::vconf rwxat +org.tizen.pwlock system::media rwxat +org.tizen.pwlock system::share rwxat +org.tizen.pwlock system::syslogd w +org.tizen.pwlock sys-assert::core rwxat +org.tizen.pwlock net-config r +org.tizen.pwlock xorg rw +org.tizen.pwlock isf r +org.tizen.pwlock device::app_logging w +org.tizen.pwlock ail::db rw +org.tizen.pwlock dbus w +org.tizen.pwlock pulseaudio rwxat +org.tizen.pwlock stest-service w +org.tizen.pwlock pkgmgr:db rw +dbus org.tizen.pwlock w +e17 org.tizen.pwlock w +stest-service org.tizen.pwlock rx diff --git a/packaging/org.tizen.pwlock.spec b/packaging/org.tizen.pwlock.spec index a329cbe..27504f4 100755 --- a/packaging/org.tizen.pwlock.spec +++ b/packaging/org.tizen.pwlock.spec @@ -53,6 +53,7 @@ vconftool $GOPTION set -t int memory/pwlock/state "0" -f -i %files %manifest org.tizen.pwlock.manifest +/etc/smack/accesses2.d/org.tizen.pwlock.rule %defattr(-,root,root,-) %attr(4755,root,root) /usr/apps/org.tizen.pwlock/bin/pwlock /usr/apps/org.tizen.pwlock/bin/pwlock |