camera:x:6501:app,media
message:x:6502:app
myfiles:x:6503:app
-admin:x:6504:
pulse:x:6507:
pulse-access:x:6505:root,app,media
pulse-rt:x:6506:root,app,media
Name: libprivilege-control
Summary: Library to control privilege of application
-Version: 0.0.12
+Version: 0.0.13
Release: 1
Group: System/Security
License: Apache 2.0
find /home/app -print0 | xargs -0 chsmack -a 'system::homedir'
find /home/app -type d -print0 | xargs -0 chsmack -t
+chsmack -a 'system::vconf' /opt/var/kdb/db
+chsmack -t /opt/var/kdb/db
+
# set vconf label when first boot
if [ ! -e /opt/etc/.vconf_labeling ]; then
find /opt/var/kdb/db -print0 | xargs -0 chsmack -a 'system::vconf'
chsmack -a 'wrt-commons::db_wrt' /opt/dbspace/.wrt.db*
chsmack -a 'wrt-commons::db_wrt_autosave' /opt/dbspace/.wrt_autosave.db*
chsmack -a 'msg-service::db' /opt/dbspace/.msg_service.db*
-chsmack -a 'libslp-calendar::db' /opt/dbspace/.calendar-svc.db*
+chsmack -a 'calendar-service::db' /opt/dbspace/.calendar-svc.db*
chsmack -a 'email-service::db' /opt/dbspace/.email-service.db*
chsmack -a 'push-service::db' /opt/dbspace/.push.db*
chsmack -a 'browser::db_external' /opt/dbspace/.browser-history.db*
_ wrt-commons::db_wrt rw
_ wrt-commons::db_wrt_autosave rw
_ msg-service::db rw
-_ libslp-calendar::db rw
+_ calendar-service::db rw
_ email-service::db rw
_ push-service::db rw
_ browser::db_external rw
#define APP_GID 5000
#define APP_UID 5000
-#define ADMIN_GROUP 6504
#define DEVELOPER_GID 5100
#define DEVELOPER_UID 5100
fp_group = NULL;
/*
- * in case of dialer, add admin to glist
- */
- if(!strncmp(pkg_name, "com.samsung.phone", 17) || !strncmp(pkg_name, "org.tizen.phone", 15))
- {
- glist = (gid_t*)realloc(glist, sizeof(gid_t) * (glist_cnt + 1));
- glist[glist_cnt] = ADMIN_GROUP; // 6504
- glist_cnt++;
- }
-
- /*
* setgroups()
*/
if(setgroups(glist_cnt, glist) != 0)