diff options
author | Yong Yeon Kim <yy9875.kim@samsung.com> | 2013-05-24 21:40:51 +0900 |
---|---|---|
committer | Yong Yeon Kim <yy9875.kim@samsung.com> | 2013-05-24 21:40:51 +0900 |
commit | a731f7f2e886a3f685324e35a1ae67775dbccfd8 (patch) | |
tree | 35da15f9df4061fcec09e72c4fce02df85bc9f4b | |
parent | 3591b3ba7aced15d88d5f0e69833a674a157e563 (diff) | |
download | media-server-a731f7f2e886a3f685324e35a1ae67775dbccfd8.tar.gz media-server-a731f7f2e886a3f685324e35a1ae67775dbccfd8.tar.bz2 media-server-a731f7f2e886a3f685324e35a1ae67775dbccfd8.zip |
modify smack rule
-rwxr-xr-x | lib/media-util-noti.c | 3 | ||||
-rw-r--r-- | media-server.manifest | 1 | ||||
-rwxr-xr-x | packaging/media-server.spec | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/lib/media-util-noti.c b/lib/media-util-noti.c index 6cb380b..283e07d 100755 --- a/lib/media-util-noti.c +++ b/lib/media-util-noti.c @@ -273,6 +273,7 @@ int media_db_update_send(int pid, /* mandatory */ DBUS_TYPE_INVALID); } else { MSAPI_DBG_ERR("uuid or mime_type is NULL"); + dbus_connection_unref(bus); return MS_MEDIA_ERR_INVALID_PARAMETER; } } else if (item == MS_MEDIA_ITEM_DIRECTORY) { @@ -311,6 +312,8 @@ int media_db_update_send(int pid, /* mandatory */ MSAPI_DBG_ERR("dbus_message_new_signal failed"); } + dbus_connection_unref(bus); + /* Return TRUE to tell the event loop we want to be called again */ return MS_MEDIA_ERR_NONE; } diff --git a/media-server.manifest b/media-server.manifest index 9c68207..9c7a9a8 100644 --- a/media-server.manifest +++ b/media-server.manifest @@ -3,6 +3,7 @@ <domain name="media-server" policy="restricted" plist="media-thumbnail-server, media-data"/> <request> <smack request="system::media" type="rwxat"/> + <smack request="deviced" type="rwx"/> </request> </define> <request> diff --git a/packaging/media-server.spec b/packaging/media-server.spec index 1caece0..09c8f68 100755 --- a/packaging/media-server.spec +++ b/packaging/media-server.spec @@ -8,6 +8,7 @@ Source0: %{name}-%{version}.tar.gz Source1: media-server.service Requires(post): /usr/bin/vconftool +Requires: system-server BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(vconf) BuildRequires: pkgconfig(dlog) |