From: hb.min Date: Wed, 3 Apr 2013 14:09:12 +0000 (+0900) Subject: Add new privileges X-Git-Tag: accepted/tizen_2.1/20130425.034849~166 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=545d0d937c63e62ec8962c641305fb54196c9010;p=framework%2Fosp%2Fappfw.git Add new privileges Change-Id: Idc30cf6b9ecbe04b05b3548bc7ab3ef3afabf0ba Signed-off-by: hb.min --- diff --git a/src/security/inc/FSec_AccessControlTypes.h b/src/security/inc/FSec_AccessControlTypes.h index dc27ae5..38e6294 100644 --- a/src/security/inc/FSec_AccessControlTypes.h +++ b/src/security/inc/FSec_AccessControlTypes.h @@ -132,6 +132,22 @@ enum _Privilege _PRV_PRIVACYMANAGER_WRITE, _PRV_ANTIVIRUS, _PRV_INTERNET, + _PRV_MESSAGING_READ, + _PRV_MESSAGING_WRITE, + _PRV_PACKAGE_INFO, + _PRV_PACKAGEMANAGER_INFO, + _PRV_PACKAGEMANAGER_SETTING, + _PRV_SYSTEM, + _PRV_SYSTEMMANAGER, + _PRV_SETTINGMANAGER_READ, + _PRV_SETTINGMANAGER_WRITE, + _PRV_APPMANAGER_CERTIFICATE, + _PRV_DATACONTROL_CONSUMER, + _PRV_DATASYNC, + _PRV_FILESYSTEM_READ, + _PRV_FILESYSTEM_WRITE, + _PRV_MESSAGEPORT, + _PRV_NETWORKBEARERSELECTION, _MAX_PRIVILEGE_ENUM }; @@ -244,6 +260,22 @@ const static _PrivilegeStringList privilegeListTable[_MAX_PRIVILEGE_ENUM] = {L"privacymanager.write", _PRV_PRIVACYMANAGER_WRITE}, {L"antivirus", _PRV_ANTIVIRUS}, {L"internet", _PRV_INTERNET}, + {L"messaging.read", _PRV_MESSAGING_READ}, + {L"messaging.write", _PRV_MESSAGING_WRITE}, + {L"package.info", _PRV_PACKAGE_INFO}, + {L"packagemanager.info", _PRV_PACKAGEMANAGER_INFO}, + {L"packagemanager.setting", _PRV_PACKAGEMANAGER_SETTING}, + {L"system", _PRV_SYSTEM}, + {L"systemmanager", _PRV_SYSTEMMANAGER}, + {L"settingmanager.read", _PRV_SETTINGMANAGER_READ}, + {L"settingmanager.write", _PRV_SETTINGMANAGER_WRITE}, + {L"appmanager.certificate", _PRV_APPMANAGER_CERTIFICATE}, + {L"datacontrol.consumer", _PRV_DATACONTROL_CONSUMER}, + {L"datasync", _PRV_DATASYNC}, + {L"filesystem.read", _PRV_FILESYSTEM_READ}, + {L"filesystem.write", _PRV_FILESYSTEM_WRITE}, + {L"messageport", _PRV_MESSAGEPORT}, + {L"networkbearerselection", _PRV_NETWORKBEARERSELECTION}, }; enum _PrivilegeApiVersion @@ -354,6 +386,22 @@ const static Tizen::Base::_ApiVisibility visibilityLevelListTable[_MAX_PRIVILEGE { Tizen::Base::_API_VISIBILITY_PARTNER_MANUFACTURER }, // privacymanager.write { Tizen::Base::_API_VISIBILITY_PARTNER_MANUFACTURER }, // antivirus { Tizen::Base::_API_VISIBILITY_PUBLIC }, // internet + { Tizen::Base::_API_VISIBILITY_PUBLIC }, // messaging.read + { Tizen::Base::_API_VISIBILITY_PUBLIC }, // messaging.write + { Tizen::Base::_API_VISIBILITY_PUBLIC }, // package.info + { Tizen::Base::_API_VISIBILITY_PARTNER_MANUFACTURER }, // packagemanager.info + { Tizen::Base::_API_VISIBILITY_PARTNER_MANUFACTURER }, // packagemanager.setting + { Tizen::Base::_API_VISIBILITY_PUBLIC }, // system + { Tizen::Base::_API_VISIBILITY_PARTNER }, // systemmanager + { Tizen::Base::_API_VISIBILITY_PARTNER_MANUFACTURER }, // settingmanager.read + { Tizen::Base::_API_VISIBILITY_PARTNER_MANUFACTURER }, // settingmanager.write + { Tizen::Base::_API_VISIBILITY_PARTNER }, // appmanager.certificate + { Tizen::Base::_API_VISIBILITY_PARTNER }, // datacontrol.consumer + { Tizen::Base::_API_VISIBILITY_PUBLIC }, // datasync + { Tizen::Base::_API_VISIBILITY_PUBLIC }, // filesystem.read + { Tizen::Base::_API_VISIBILITY_PUBLIC }, // filesystem.write + { Tizen::Base::_API_VISIBILITY_PARTNER }, // messageport + { Tizen::Base::_API_VISIBILITY_PARTNER }, // networkbearerselection }; enum _PrivilegeLevel @@ -464,6 +512,22 @@ const static _PrivilegeLevel privilegeLevelListTable[_MAX_PRIVILEGE_ENUM][_PRV_A { _PRV_LEVEL_SYSTEM }, // privacymanager.write { _PRV_LEVEL_SYSTEM }, // antivirus { _PRV_LEVEL_USER }, // internet + { _PRV_LEVEL_USER }, // messaging.read + { _PRV_LEVEL_USER }, // messaging.write + { _PRV_LEVEL_USER }, // package.info + { _PRV_LEVEL_SYSTEM }, // packagemanager.info + { _PRV_LEVEL_SYSTEM }, // packagemanager.setting + { _PRV_LEVEL_USER }, // system + { _PRV_LEVEL_USER }, // systemmanager + { _PRV_LEVEL_SYSTEM }, // settingmanager.read + { _PRV_LEVEL_SYSTEM }, // settingmanager.write + { _PRV_LEVEL_USER }, // appmanager.certificate + { _PRV_LEVEL_USER }, // datacontrol.consumer + { _PRV_LEVEL_USER }, // datasync + { _PRV_LEVEL_USER }, // filesystem.read + { _PRV_LEVEL_USER }, // filesystem.write + { _PRV_LEVEL_USER }, // messageport + { _PRV_LEVEL_USER }, // networkbearerselection }; const int MAX_BITWISE_PRIV_SIZE = (((_MAX_PRIVILEGE_ENUM - 1) / 32) + 1) * 4;