summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSung-jae Park <nicesj.park@samsung.com>2013-06-25 02:41:37 (GMT)
committerSung-jae Park <nicesj.park@samsung.com>2013-06-25 02:41:37 (GMT)
commit72c6290e6a0d3d83adee95b1ee9000dd6176a5a5 (patch)
treef79edd5c70b7aa4aa10e3981e6eb6bb69cd1ddfc
parentddedd102349495965f070a98e6ac64c79a401722 (diff)
downloaddata-provider-master-72c6290e6a0d3d83adee95b1ee9000dd6176a5a5.zip
data-provider-master-72c6290e6a0d3d83adee95b1ee9000dd6176a5a5.tar.gz
data-provider-master-72c6290e6a0d3d83adee95b1ee9000dd6176a5a5.tar.bz2
User level smack check for rm_livebox, rm_shortcut
Change-Id: Ic02a1c42e96e6cb665632a9425a2369ef69c39ef
-rw-r--r--src/shortcut_service.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shortcut_service.c b/src/shortcut_service.c
index b5b1d82..14f840c 100644
--- a/src/shortcut_service.c
+++ b/src/shortcut_service.c
@@ -112,12 +112,12 @@ static int service_thread_main(struct tcb *tcb, struct packet *packet, void *dat
/* Need to send reply packet */
DbgPrint("%p REQ: Command: [%s]\n", tcb, command);
- if (!strcmp(command, "add_livebox")) {
+ if (!strcmp(command, "add_livebox") || !strcmp(command, "rm_livebox")) {
ret = security_server_check_privilege_by_sockfd(tcb_fd(tcb), "data-provider-master::shortcut.livebox", "w");
if (ret == SECURITY_SERVER_API_ERROR_ACCESS_DENIED) {
ErrPrint("SMACK:Access denied\n");
}
- } else if (!strcmp(command, "add_shortcut")) {
+ } else if (!strcmp(command, "add_shortcut") || !strcmp(command, "rm_shortcut")) {
ret = security_server_check_privilege_by_sockfd(tcb_fd(tcb), "data-provider-master::shortcut.shortcut", "w");
if (ret == SECURITY_SERVER_API_ERROR_ACCESS_DENIED) {
ErrPrint("SMACK:Access denied\n");