platform/core/security/privilege-checker.git
7 years agoAdd API to set/unset privilege disable list 38/106838/8
Yunjin Lee [Fri, 23 Dec 2016 07:34:22 +0000 (16:34 +0900)]
Add API to set/unset privilege disable list

- Add API to set/unset privilege disable list
- Add API to get disabled privilege list of certain user
- Remove compile warning : invalid multibyte sequence

Change-Id: Ib1a07e2adbb23430dde8aec7e3fe4b165a1288cd
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
7 years agoAdd API to get privilege type 21/106321/12
Yunjin Lee [Wed, 21 Dec 2016 09:17:23 +0000 (18:17 +0900)]
Add API to get privilege type

- Add API to get privilege type.
It determines privilege type according to the given uid and package id
on the basis of ask policy white list per privacy and mdm black list.
- Add table for privacy white list.
It stores whitelist for ask policy and whether the privacy is user-settable or not.
Possible privacy option format is "*-{privacyA}-{privacyB}.." or "{privacyA}+{privacyB}+...".
If pkg should not be seen in privacy setting menu then set 'settable' flag to 0.
If 'settable' flag is set to 1 for the privacy or not exist for the privacy then then pkg privacy option is user-settable for that privacy.

Change-Id: I720e9f5abcf02c89b3a09238d5fbafe26bf8e044
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
7 years agoMap internal usermanage privilege to systemsettings.admin 33/107933/1 accepted/tizen_3.0.m2_mobile accepted/tizen_3.0.m2_tv accepted/tizen_3.0.m2_wearable tizen_3.0.m2 accepted/tizen/3.0.m2/mobile/20170104.141413 accepted/tizen/3.0.m2/tv/20170104.142013 accepted/tizen/3.0.m2/wearable/20170104.142307 accepted/tizen/3.0/common/20170102.143335 accepted/tizen/3.0/ivi/20170102.095025 accepted/tizen/3.0/mobile/20170102.094928 accepted/tizen/3.0/tv/20170102.094946 accepted/tizen/3.0/wearable/20170102.095004 accepted/tizen/common/20170102.152206 accepted/tizen/ivi/20170102.060759 accepted/tizen/mobile/20170102.060703 accepted/tizen/tv/20170102.060721 accepted/tizen/wearable/20170102.060739 submit/tizen/20170102.023012 submit/tizen_3.0.m2/20170104.093751 submit/tizen_3.0/20170102.023003
Yunjin Lee [Mon, 2 Jan 2017 02:25:37 +0000 (11:25 +0900)]
Map internal usermanage privilege to systemsettings.admin

Change-Id: I14ef494c9abb9f0b1dd5f44e9c11668e6c2f9776
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
7 years agoAdd web push privilege to tv profile 56/107856/1 accepted/tizen/common/20161230.123849 accepted/tizen/ivi/20170101.224200 accepted/tizen/mobile/20170101.224106 accepted/tizen/tv/20170101.224122 accepted/tizen/wearable/20170101.224141 submit/tizen/20161230.075359 submit/tizen_3.0/20161230.075344
Yunjin Lee [Fri, 30 Dec 2016 07:38:32 +0000 (16:38 +0900)]
Add web push privilege to tv profile

Change-Id: I412469beb787742a5b2632e38bf1a4706acc02e2
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
7 years agoUpdate wrt privilege mapping table: power privilege 70/107070/1 accepted/tizen/3.0/common/20161228.071559 accepted/tizen/3.0/ivi/20161227.141605 accepted/tizen/3.0/mobile/20161227.141357 accepted/tizen/3.0/tv/20161227.141429 accepted/tizen/3.0/wearable/20161227.141547 accepted/tizen/common/20161227.192400 accepted/tizen/ivi/20161226.132248 accepted/tizen/mobile/20161226.132156 accepted/tizen/tv/20161226.132213 accepted/tizen/wearable/20161226.132228 submit/tizen/20161226.103437 submit/tizen_3.0/20161226.102001
Yunjin Lee [Mon, 26 Dec 2016 10:10:11 +0000 (19:10 +0900)]
Update wrt privilege mapping table: power privilege

Change-Id: Ia2633d04b871cf2564b4e0531e34253b4ed56289
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
7 years agoFix typo in previous commit 61/106761/1
jooseong lee [Fri, 23 Dec 2016 02:05:15 +0000 (11:05 +0900)]
Fix typo in previous commit

Change-Id: I9c9a2c9666e647550d3960b1e371b5a92022e5a5
Signed-off-by: jooseong lee <jooseong.lee@samsung.com>
7 years agoProvide location privilege to all web application (below required version 2.3) 21/106621/1 accepted/tizen/3.0/common/20161227.101353 accepted/tizen/3.0/ivi/20161226.025139 accepted/tizen/3.0/mobile/20161226.025044 accepted/tizen/3.0/tv/20161226.025105 accepted/tizen/3.0/wearable/20161226.025124 accepted/tizen/common/20161222.131329 accepted/tizen/ivi/20161223.095717 accepted/tizen/mobile/20161223.095619 accepted/tizen/tv/20161223.095642 accepted/tizen/wearable/20161223.095659 submit/tizen/20161222.081616 submit/tizen_3.0/20161222.081633
jooseong lee [Thu, 22 Dec 2016 08:06:28 +0000 (17:06 +0900)]
Provide location privilege to all web application (below required version 2.3)

Change-Id: I95cb5a696ad55478bff50791167ddc41feb4f7e0
Signed-off-by: jooseong lee <jooseong.lee@samsung.com>
7 years agoAdd the functionality to disable askuser in run-time. 26/105526/2 accepted/tizen/3.0/common/20161221.180417 accepted/tizen/3.0/ivi/20161221.005018 accepted/tizen/3.0/ivi/20161221.010104 accepted/tizen/3.0/mobile/20161221.005107 accepted/tizen/3.0/mobile/20161221.010257 accepted/tizen/3.0/tv/20161221.004822 accepted/tizen/3.0/tv/20161221.010052 accepted/tizen/3.0/wearable/20161221.004858 accepted/tizen/3.0/wearable/20161221.010059 accepted/tizen/common/20161220.190630 accepted/tizen/ivi/20161220.222653 accepted/tizen/mobile/20161220.222552 accepted/tizen/tv/20161220.222613 accepted/tizen/wearable/20161220.222629 submit/tizen/20161219.022527 submit/tizen_3.0/20161219.020755 submit/tizen_3.0/20161220.015046
jin-gyu.kim [Mon, 19 Dec 2016 02:03:57 +0000 (11:03 +0900)]
Add the functionality to disable askuser in run-time.

Change-Id: I6f542060d29578757103a63f9835e12ba9245fa1

7 years agoAdd display privilege to all web application 11/105211/2 accepted/tizen/3.0/common/20161219.112922 accepted/tizen/3.0/ivi/20161219.012206 accepted/tizen/3.0/mobile/20161219.012112 accepted/tizen/3.0/tv/20161219.012130 accepted/tizen/3.0/wearable/20161219.012143 accepted/tizen/common/20161216.124524 accepted/tizen/ivi/20161216.084104 accepted/tizen/mobile/20161216.083942 accepted/tizen/tv/20161216.084000 accepted/tizen/wearable/20161216.084058 submit/tizen/20161216.045516 submit/tizen_3.0/20161216.045556
jooseong lee [Fri, 16 Dec 2016 04:09:46 +0000 (13:09 +0900)]
Add display privilege to all web application

When web applications use html video elements, web engine calls
display privileged api, which makes cynanre deny. Display privilege
should be provided to all web application like as Tizen2.x

Change-Id: I32f49289426cfc5e8233e3efe1d399f7516648db
Signed-off-by: jooseong lee <jooseong.lee@samsung.com>
7 years agoRemove internal privacymanagement and usermanagement privilege from mapping table 43/104143/1 accepted/tizen/3.0/common/20161215.163823 accepted/tizen/3.0/ivi/20161215.045125 accepted/tizen/3.0/mobile/20161215.045014 accepted/tizen/3.0/tv/20161215.045043 accepted/tizen/3.0/wearable/20161215.045055 accepted/tizen/ivi/20161214.015453 accepted/tizen/mobile/20161214.015341 accepted/tizen/tv/20161214.015430 accepted/tizen/wearable/20161214.015441 submit/tizen/20161213.083628 submit/tizen_3.0/20161213.083334 submit/tizen_3.0/20161214.090930 submit/tizen_3.0/20161216.045533
Yunjin Lee [Mon, 12 Dec 2016 11:17:10 +0000 (20:17 +0900)]
Remove internal privacymanagement and usermanagement privilege from mapping table

Change-Id: I1477b038dd6200083a4892c8b642583b0627c48c
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
7 years agoDo not treat internal privileges as privacy related 42/104142/1
Yunjin Lee [Mon, 12 Dec 2016 11:14:25 +0000 (20:14 +0900)]
Do not treat internal privileges as privacy related

Change-Id: Id14795ba85f80e9e374903fbef62ba645a19411a
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
7 years agoChange policy db directory and fix typo 12/103412/1 accepted/tizen/3.0/common/20161209.094847 accepted/tizen/3.0/ivi/20161209.002459 accepted/tizen/3.0/mobile/20161209.002441 accepted/tizen/3.0/tv/20161209.002448 accepted/tizen/3.0/wearable/20161209.002453 accepted/tizen/common/20161208.135609 accepted/tizen/ivi/20161209.005950 accepted/tizen/mobile/20161209.005853 accepted/tizen/tv/20161209.005909 accepted/tizen/wearable/20161209.005930 submit/tizen/20161208.083901 submit/tizen_3.0/20161208.084005
Yunjin Lee [Thu, 8 Dec 2016 08:25:58 +0000 (17:25 +0900)]
Change policy db directory and fix typo

- Change policy db directory to TZ_SYS_DB and modify its security configuration for DPM
- Fix typo in profile definition

Change-Id: Ib6feae1a74bd4ff5f172caa0bf669f6053b25a05
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
7 years agoAdd DISABLE_ASKUSER definition for profiles not using it 80/103080/1 accepted/tizen/3.0/common/20161207.195707 accepted/tizen/3.0/ivi/20161207.135756 accepted/tizen/3.0/mobile/20161207.135748 accepted/tizen/3.0/tv/20161207.135507 accepted/tizen/3.0/wearable/20161207.135814 accepted/tizen/common/20161207.184620 accepted/tizen/ivi/20161208.012315 accepted/tizen/mobile/20161208.012304 accepted/tizen/tv/20161208.012309 accepted/tizen/wearable/20161208.012312 submit/tizen/20161207.082441 submit/tizen_3.0/20161207.082520
Yunjin Lee [Wed, 7 Dec 2016 07:32:04 +0000 (16:32 +0900)]
Add DISABLE_ASKUSER definition for profiles not using it

Change-Id: Iaf37662cc564544cc4756f02f6f0ccafd9dbe917
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
7 years agoAdd internal appdebugging privilege to mapping db 72/103072/1
Yunjin Lee [Wed, 7 Dec 2016 07:13:13 +0000 (16:13 +0900)]
Add internal appdebugging privilege to mapping db

Change-Id: I6ac875ff34b0ea023d6f21d1445583bccfb0e09c
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
7 years agoRevert modification of error message allocation 69/102769/2 accepted/tizen/3.0/common/20161207.194803 accepted/tizen/3.0/ivi/20161207.013311 accepted/tizen/3.0/mobile/20161207.013212 accepted/tizen/3.0/tv/20161207.013232 accepted/tizen/3.0/wearable/20161207.013252 accepted/tizen/ivi/20161207.030500 accepted/tizen/mobile/20161207.030403 accepted/tizen/tv/20161207.030423 accepted/tizen/wearable/20161207.030441 submit/tizen/20161206.122018 submit/tizen_3.0/20161206.113810
Yunjin Lee [Tue, 6 Dec 2016 12:00:50 +0000 (21:00 +0900)]
Revert modification of error message allocation

Change-Id: Icbfb12e6a115c5718aecc873678886f1c20ab975
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
7 years agoAdd missing whitelist app and Fix memory leak 59/102159/1 accepted/tizen/3.0/common/20161206.125326 accepted/tizen/3.0/ivi/20161205.234438 accepted/tizen/3.0/mobile/20161205.234255 accepted/tizen/3.0/tv/20161205.234343 accepted/tizen/3.0/wearable/20161205.234410 submit/tizen_3.0/20161205.022357
Yunjin Lee [Mon, 5 Dec 2016 06:10:38 +0000 (15:10 +0900)]
Add missing whitelist app and Fix memory leak

Change-Id: Ie5703b747d1db76af22d0ab8cadf9e6ccba28f28
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
7 years agoAdd API to determine given privilege is privacy related or not on the basis of whitelist 60/100460/7 accepted/tizen/common/20161205.135853 accepted/tizen/ivi/20161205.232845 accepted/tizen/mobile/20161205.232750 accepted/tizen/tv/20161205.232805 accepted/tizen/wearable/20161205.232825 submit/tizen/20161205.023558 submit/tizen_3.0/20161205.022817
Yunjin Lee [Mon, 28 Nov 2016 06:38:46 +0000 (15:38 +0900)]
Add API to determine given privilege is privacy related or not on the basis of whitelist

Change-Id: I1df0f8dc4654124d3b052cc51dfd12c245f9bd69
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
7 years agoModify to check whether internal privileges are privacy related or not 12/98712/5
Yunjin Lee [Fri, 18 Nov 2016 09:54:36 +0000 (18:54 +0900)]
Modify to check whether internal privileges are privacy related or not

- internal privileges mapped by privacy related core privileges are also privacy related.
- remove redundant internal privileges listed in internal_only.list to store them properly.

Change-Id: I561c4b998a90e4d527c5ef38c6c28802bddf33f5
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
7 years agoAdd uid input parameter to privilege verification API 61/98161/3 accepted/tizen/3.0/common/20161122.195105 accepted/tizen/3.0/ivi/20161122.075924 accepted/tizen/3.0/mobile/20161122.075826 accepted/tizen/3.0/tv/20161122.075848 accepted/tizen/3.0/wearable/20161122.075906 accepted/tizen/common/20161125.095219 accepted/tizen/ivi/20161125.004157 accepted/tizen/mobile/20161125.003626 accepted/tizen/tv/20161125.003916 accepted/tizen/wearable/20161125.004038 submit/tizen/20161124.000829 submit/tizen_3.0/20161121.042235
Yunjin Lee [Wed, 16 Nov 2016 09:13:15 +0000 (18:13 +0900)]
Add uid input parameter to privilege verification API

Change-Id: Ibfb77bd9af850cdd606a174f9861690fff1b0c5c
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
7 years agoAdd API to check metadata with certificate level 84/98084/7
Yunjin Lee [Wed, 16 Nov 2016 06:05:10 +0000 (15:05 +0900)]
Add API to check metadata with certificate level

Change-Id: I9e2157e9b09fb98e7773089de565b51634ccd26f
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
7 years agoFix spec not to provide so at devel 59/96259/1 accepted/tizen/3.0/common/20161114.082656 accepted/tizen/3.0/ivi/20161110.020210 accepted/tizen/3.0/mobile/20161110.020113 accepted/tizen/3.0/tv/20161110.020132 accepted/tizen/3.0/wearable/20161110.020152 accepted/tizen/common/20161108.131757 accepted/tizen/ivi/20161109.002920 accepted/tizen/mobile/20161109.002856 accepted/tizen/tv/20161109.002906 accepted/tizen/wearable/20161109.002915 submit/tizen/20161108.094236 submit/tizen_3.0/20161108.094152 submit/tizen_3.0_common/20161110.084657
Yunjin Lee [Tue, 8 Nov 2016 09:29:10 +0000 (18:29 +0900)]
Fix spec not to provide so at devel

Change-Id: I21edad969ed79b36711917e44645913761b3ad18
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
7 years agoAdd core privilege 21/95621/1 submit/tizen/20161108.043312 submit/tizen_3.0/20161108.041407
Yunjin Lee [Fri, 4 Nov 2016 05:06:31 +0000 (14:06 +0900)]
Add core privilege

- Add core calendar.read and calendar.write to wearable profile since api version 3.0

Change-Id: I5c42c26db524802c0ea1ef6b64d3f77ce74e7087
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoFix not to do make db dir for build_type NO_DB and add so file for devel package 29/94529/2
Yunjin Lee [Mon, 31 Oct 2016 09:18:51 +0000 (18:18 +0900)]
Fix not to do make db dir for build_type NO_DB and add so file for devel package

Change-Id: I19d32b188456fb2a8d8b0016d49180aae17dd499
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoModify privilege version validation logic to support x.x.x.x format (x = integer... 43/94343/7
Yunjin Lee [Fri, 28 Oct 2016 10:26:27 +0000 (19:26 +0900)]
Modify privilege version validation logic to support x.x.x.x format (x = integer, 0 <= x <= 255)

Change-Id: I0fd8978559abe5db19be62de14f3c0bcf97f4269
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoMerge "Remove rpmlint error and warning and add build type NO_DB" into tizen
Kim Kidong [Mon, 24 Oct 2016 02:00:35 +0000 (19:00 -0700)]
Merge "Remove rpmlint error and warning and add build type NO_DB" into tizen

8 years agoRemove rpmlint error and warning and add build type NO_DB 07/93207/1
Yunjin Lee [Fri, 21 Oct 2016 03:00:33 +0000 (12:00 +0900)]
Remove rpmlint error and warning and add build type NO_DB

- Remove rpmlint error and warning caused by package description and lang files
- Add build_type NO_DB to reduce build time for test without DB changes

Change-Id: Ia2b64035dad5346ec16458d67721f2820d94bda5
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoTreat web only privilege as core privilege 85/88685/3
Yunjin Lee [Fri, 9 Sep 2016 07:59:53 +0000 (16:59 +0900)]
Treat web only privilege as core privilege

Change-Id: I1bc290f00cb8b95d5326a50a3421e0be875633ef
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoAdd web bluetooth privilege to TV profile 05/90205/2 accepted/tizen/3.0/ivi/20161011.062247 accepted/tizen/3.0/mobile/20161015.034113 accepted/tizen/3.0/tv/20161016.005643 accepted/tizen/3.0/wearable/20161015.083958 accepted/tizen/common/20160929.163530 accepted/tizen/ivi/20160930.035749 accepted/tizen/mobile/20160930.035734 accepted/tizen/tv/20160930.035745 accepted/tizen/wearable/20160930.035740 submit/tizen/20160929.082356 submit/tizen_3.0_common/20161104.104000 submit/tizen_3.0_ivi/20161010.000006 submit/tizen_3.0_mobile/20161015.000006 submit/tizen_3.0_tv/20161015.000005 submit/tizen_3.0_wearable/20161015.000005
Yunjin Lee [Thu, 29 Sep 2016 04:16:21 +0000 (13:16 +0900)]
Add web bluetooth privilege to TV profile

Change-Id: I6eb83f2f8779ae4ae5d46210422d725646eb4aa5
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoFix privacy ID of tv profile to url format 86/88686/2
Yunjin Lee [Tue, 20 Sep 2016 08:23:29 +0000 (17:23 +0900)]
Fix privacy ID of tv profile to url format

Change-Id: Iaf669470fef71546682ae653d7b14c5c0ae26aed
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoAdd restore_fcommon macro for ASan 29/86829/1 accepted/tizen/common/20160905.171354 accepted/tizen/ivi/20160906.060932 accepted/tizen/mobile/20160906.060825 accepted/tizen/tv/20160906.060846 accepted/tizen/wearable/20160906.060914 submit/tizen/20160905.002202
Yunjin Lee [Mon, 5 Sep 2016 06:25:21 +0000 (15:25 +0900)]
Add restore_fcommon macro for ASan

Change-Id: I52e98248544950fab7a2b09852d1ae94c6912ed2
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoModify privacy display API and add tc for it 17/86817/1
Yunjin Lee [Mon, 5 Sep 2016 05:14:57 +0000 (14:14 +0900)]
Modify privacy display API and add tc for it

- Modify privilege_info_get_privacy_display() to get translated string
- Add tc for privilege_info_get_privacy_display()

Change-Id: If215be28cc7a716428e21b794e6d8eeb1c3bac95
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoAdd core privilege and update language files : fido client 57/86257/1
Yunjin Lee [Wed, 31 Aug 2016 08:48:13 +0000 (17:48 +0900)]
Add core privilege and update language files : fido client

Change-Id: I6be58d17e8879827915dd056135b43d8a02f78d2
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoRemove core privilege and update language files 12/86212/1
Yunjin Lee [Wed, 31 Aug 2016 05:30:40 +0000 (14:30 +0900)]
Remove core privilege and update language files

- Remove core privilege: dpm.settings
- Update language files for appdir.shareddata privilege description

Change-Id: Ia9ce31778815025fa41d824a419e0ec51dbf4401
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoAdd core privilege: appdir.shareddata 60/84660/1 accepted/tizen/common/20160822.132547 accepted/tizen/ivi/20160823.041024 accepted/tizen/mobile/20160823.040915 accepted/tizen/tv/20160823.040940 accepted/tizen/wearable/20160823.041005 submit/tizen/20160822.023804
Yunjin Lee [Mon, 22 Aug 2016 01:37:39 +0000 (10:37 +0900)]
Add core privilege: appdir.shareddata

Change-Id: I71636f2b97df7f523f1aff3ee3d5bc1805f89b4f
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoRemove core privilege: vpnservice.admin 97/83497/2 accepted/tizen/common/20160812.140919 accepted/tizen/ivi/20160812.010807 accepted/tizen/mobile/20160812.010810 accepted/tizen/tv/20160812.010758 accepted/tizen/wearable/20160812.010802 submit/tizen/20160811.114139
Yunjin Lee [Thu, 11 Aug 2016 08:36:14 +0000 (17:36 +0900)]
Remove core privilege: vpnservice.admin

Change-Id: I2e02333bfb6886d702d09d18444737fb9830c878
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoAdd API for getting privacy ID by privilege 40/82940/3
Yunjin Lee [Mon, 8 Aug 2016 08:06:18 +0000 (17:06 +0900)]
Add API for getting privacy ID by privilege

Change-Id: I090af0d4b6043cfd7cadfbb50d9cf57105626ba1
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoPrivilege Verifier : Utility provides functions to verify privilege information of... 63/81463/5 accepted/tizen/common/20160809.183839 accepted/tizen/ivi/20160809.232436 accepted/tizen/mobile/20160809.232235 accepted/tizen/tv/20160809.232413 accepted/tizen/wearable/20160809.232552 submit/tizen/20160809.044605
BogonKim [Tue, 26 Jul 2016 10:04:21 +0000 (19:04 +0900)]
Privilege Verifier : Utility provides functions to verify privilege information of packages to be installed.

Change-Id: Ibbc584e867ae625baf593a9f0444ed0a588e8df2
Signed-off-by: BogonKim <bogon82.kim@samsung.com>
8 years agoremove undefined symbol 95/81395/5
BogonKim [Tue, 26 Jul 2016 03:56:30 +0000 (12:56 +0900)]
remove undefined symbol

Problem : undefined symbol cause link error
when executable link with this library.
Solution : Add "-Wl,--no-undefined" to occur build error
for undefined symbol and remove undefined symbol

Change-Id: I5c942cdf3be6114f5a3e918c0e8cee47fdceb050
Signed-off-by: BogonKim <bogon82.kim@samsung.com>
8 years agofeaturing out tizen specific features using __TIZEN__ macro 86/81386/6
BogonKim [Tue, 26 Jul 2016 02:20:54 +0000 (11:20 +0900)]
featuring out tizen specific features using __TIZEN__ macro

Change-Id: I83e667cb952eac608ecbf140b217ed71861bb0db
Signed-off-by: BogonKim <bogon82.kim@samsung.com>
8 years agoModify Privacy ID format : XXX -> http://tizen.org/privacy/XXX 63/82863/1
Yunjin Lee [Mon, 8 Aug 2016 07:47:09 +0000 (16:47 +0900)]
Modify Privacy ID format : XXX -> tizen.org/privacy/XXX

Change-Id: Ieee9e1a1450581787b8e5175cc39c2369de9beca
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoUpdate language files and privacy DID 66/79566/5
Yunjin Lee [Tue, 12 Jul 2016 01:28:21 +0000 (10:28 +0900)]
Update language files and privacy DID

Change-Id: Ida319fbc42bd1aa66cbdc497aff08d03629393f2
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoAdd API and table to provide privacy DID and update language files 54/78654/1 accepted/tizen/common/20160707.171308 accepted/tizen/ivi/20160706.132846 accepted/tizen/mobile/20160706.132154 accepted/tizen/tv/20160706.132217 accepted/tizen/wearable/20160706.132314 submit/tizen/20160706.103037
Yunjin Lee [Wed, 6 Jul 2016 09:59:50 +0000 (18:59 +0900)]
Add API and table to provide privacy DID and update language files

Change-Id: I3faf862b33099eba5a3859929662d737069e4703
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoUpdate mapping table: Add systemsettings.admin -> internal usermanagement, privacyman... 43/77743/1
Yunjin Lee [Fri, 1 Jul 2016 01:56:20 +0000 (10:56 +0900)]
Update mapping table: Add systemsettings.admin -> internal usermanagement, privacymanagement

Change-Id: Ib2183cc7942af6fe456299e6dbeec806998c33f4
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoSync tv core privilege table to mobile and modify db generator script for tv profile 04/77604/1
Yunjin Lee [Thu, 30 Jun 2016 08:48:49 +0000 (17:48 +0900)]
Sync tv core privilege table to mobile and modify db generator script for tv profile

Change-Id: I08643cec86d40431b80413cc20dddf648a72cbe4
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years ago1. Add APIs for checing valid/internal/privacy privilege and table for the APIs 2... 14/76914/1 accepted/tizen/common/20160629.222347 accepted/tizen/ivi/20160629.020408 accepted/tizen/mobile/20160629.020426 accepted/tizen/tv/20160629.020401 accepted/tizen/wearable/20160629.020415 submit/tizen/20160628.064857
Yunjin Lee [Tue, 28 Jun 2016 01:57:44 +0000 (10:57 +0900)]
1. Add APIs for checing valid/internal/privacy privilege and table for the APIs 2. Fix to check return value of sqlite3_mprintf

Change-Id: I47b0e61ca3a6bd31cfce83033d4e36aa0cd772ec
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoRevert "Add APIs to check valid privilege and internal privilege" 87/76587/2 accepted/tizen/common/20160627.191816 accepted/tizen/ivi/20160624.103615 accepted/tizen/mobile/20160624.103522 accepted/tizen/tv/20160624.103540 accepted/tizen/wearable/20160624.103558 submit/tizen/20160624.092917
Yunjin Lee [Fri, 24 Jun 2016 09:10:25 +0000 (02:10 -0700)]
Revert "Add APIs to check valid privilege and internal privilege"

This reverts commit d47a3cc12b0c4d6aa959bf6107518f7d6f85cfb7.

Change-Id: I3fad7418bf4010c2e600da63dbc4eb7a8b2b5047

8 years agoRevert "Fix to check return value of sqlite3_mprintf" 85/76585/1
Yunjin Lee [Fri, 24 Jun 2016 09:09:48 +0000 (02:09 -0700)]
Revert "Fix to check return value of sqlite3_mprintf"

This reverts commit e75fccaf4c07ddb23f2b6a3e732685152e2fd12d.

Change-Id: I883e542b6ee6f50ae1f8565fbd6249bfc37ed146

8 years agoFix to check return value of sqlite3_mprintf 90/76490/1 accepted/tizen/ivi/20160624.065007 accepted/tizen/mobile/20160624.065012 accepted/tizen/tv/20160624.064923 accepted/tizen/wearable/20160624.065032 submit/tizen/20160624.055449
Yunjin Lee [Fri, 24 Jun 2016 05:48:20 +0000 (14:48 +0900)]
Fix to check return value of sqlite3_mprintf

Change-Id: Ic9be1be50e756121cbd79128d38b19aba417e1f0
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoUpdate web privilege mapping table 11/74211/3 accepted/tizen/common/20160627.191621 accepted/tizen/ivi/20160624.064305 accepted/tizen/mobile/20160624.063944 accepted/tizen/tv/20160624.063910 accepted/tizen/wearable/20160624.064247 submit/tizen/20160624.011528 submit/tizen/20160624.025438
Yunjin Lee [Mon, 13 Jun 2016 07:50:52 +0000 (16:50 +0900)]
Update web privilege mapping table
Some web APIs are not a wrapper of native API so web privileges for those have no mapping native privilege. Therefore we add internal privileges for them to check the permission properly. (format of http://tizen.org/privilege/internal/web/xxxx)

Change-Id: Ic27ec76015ecd0777c5fd11af3ebf044c804e02e
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoAdd APIs to check valid privilege and internal privilege 47/75347/3
Yunjin Lee [Fri, 17 Jun 2016 11:32:15 +0000 (20:32 +0900)]
Add APIs to check valid privilege and internal privilege

Change-Id: Ife6da0e3bb37d2e6984356c58fc366040d52be62
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoAdd/deprecate core privileges and update language files 82/75182/1 accepted/tizen/common/20160617.121735 accepted/tizen/ivi/20160617.084238 accepted/tizen/mobile/20160617.084314 accepted/tizen/tv/20160617.084121 accepted/tizen/wearable/20160617.084320 submit/tizen/20160617.044659
Yunjin Lee [Fri, 17 Jun 2016 02:59:04 +0000 (11:59 +0900)]
Add/deprecate core privileges and update language files
- Add core privilege: antivirus.admin, antivirus.scan, antivirus.webprotect, dpm.bluetooth, dpm.browser, dpm.camera, dpm.clipboard, dpm.debugging, dpm.email, dpm.location, dpm.lock, dpm.message, dpm.microphone, dpm.password, dpm.security, dpm.settings, dpm.storage, dpm.usb, dpm.wifi, dpm.wipe, dpm.zone
- Deprecate core privilege: antiviurs
- Update language files

Change-Id: I65c136bc7263bf7aadad1c277e871bf6076fa666
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoUpdate native privilege info: Fix issued version of mapservice of wearable profile... 59/74959/1 accepted/tizen/ivi/20160617.082904 accepted/tizen/mobile/20160617.082732 accepted/tizen/tv/20160617.082703 accepted/tizen/wearable/20160617.082751 submit/tizen/20160616.084313
Yunjin Lee [Thu, 16 Jun 2016 07:02:13 +0000 (16:02 +0900)]
Update native privilege info: Fix issued version of mapservice of wearable profile to 2.3.2

Change-Id: I16899354f924cdef0ff54c0ea70e73a55bc31ab8
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoFix privilege mis-grouping issue 33/74633/1 accepted/tizen/common/20160615.193611 accepted/tizen/ivi/20160616.002339 accepted/tizen/mobile/20160616.002327 accepted/tizen/tv/20160616.002320 accepted/tizen/wearable/20160616.002314 submit/tizen/20160615.050748
Yunjin Lee [Wed, 15 Jun 2016 04:46:59 +0000 (13:46 +0900)]
Fix privilege mis-grouping issue
- pkgmgr passes privilege list including internal privileges and it causes misgrouping issue. fix to bypass internal privileges when getting privilege group info.
- fix not to check api version when getting privilege group info(not required).

Change-Id: I6263178b7d747b3fc9fa1bdccfa50d97e73c1246
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoRevise return value of privilege_info_is_privacy() 46/73246/2 accepted/tizen/common/20160608.160950 accepted/tizen/ivi/20160609.091000 accepted/tizen/mobile/20160609.090921 accepted/tizen/tv/20160609.090933 accepted/tizen/wearable/20160609.090951 submit/tizen/20160608.114653
Yunjin Lee [Tue, 7 Jun 2016 09:03:25 +0000 (18:03 +0900)]
Revise return value of privilege_info_is_privacy()
return 1 for true(privilege id privacy related), 0 for false(include not stored in db case), and -1 for any other DB error.

Change-Id: If5b6d6dd3f2df0879b0e12def69b57bdeebe379d
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoFix 64bit build break 39/73139/1 accepted/tizen/common/20160607.194556 accepted/tizen/ivi/20160607.072002 accepted/tizen/mobile/20160607.071949 accepted/tizen/tv/20160607.071952 accepted/tizen/wearable/20160607.071936 submit/tizen/20160607.012830
Yunjin Lee [Tue, 7 Jun 2016 01:18:52 +0000 (10:18 +0900)]
Fix 64bit build break

Change-Id: Ia193f79ca2076b7cb79b8ccb80edc939d41eeb1e
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoRevise testsuit: Add missing testcase and add util header for frequently used functions 38/72538/1 submit/tizen/20160603.071358
Yunjin Lee [Wed, 1 Jun 2016 10:41:11 +0000 (19:41 +0900)]
Revise testsuit: Add missing testcase and add util header for frequently used functions

Change-Id: Iccbf48e74fc4696ed45a7cc0bf27be745c33d5c1
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoAdd wrt privilege: widget.viewer 41/72441/2
Yunjin Lee [Wed, 1 Jun 2016 05:26:06 +0000 (14:26 +0900)]
Add wrt privilege: widget.viewer

Change-Id: I5943e2d07c3be88175119947b10430ba81a91b7a
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoFix memory leak and typo 04/70704/3
Yunjin Lee [Fri, 20 May 2016 07:18:39 +0000 (16:18 +0900)]
Fix memory leak and typo

Change-Id: Iac7f5a7429320e38061cba70a74f041b0a44f7de
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoAdd core email privilege to wearable profile and update language files 26/70026/1 accepted/tizen/common/20160518.124929 accepted/tizen/ivi/20160518.090242 accepted/tizen/mobile/20160518.090213 accepted/tizen/tv/20160518.090238 accepted/tizen/wearable/20160518.090227 submit/tizen/20160518.013757
Yunjin Lee [Wed, 18 May 2016 01:29:06 +0000 (10:29 +0900)]
Add core email privilege to wearable profile and update language files
Add core email privilege to wearable profile (ACR-604)

Change-Id: Ic17f19172044e65204e2fec5d8b738a43bd4f2e9
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoUpdate mapping table: Add mediastorage and externalstorage to web default privilege 91/68391/1 accepted/tizen/common/20160510.141323 accepted/tizen/ivi/20160510.070826 accepted/tizen/mobile/20160510.070839 accepted/tizen/tv/20160510.070719 accepted/tizen/wearable/20160510.070723 submit/tizen/20160510.052841
Yunjin Lee [Wed, 4 May 2016 02:02:03 +0000 (11:02 +0900)]
Update mapping table: Add mediastorage and externalstorage to web default privilege

Change-Id: Ic50beaf28814c973810dcb47728bc504f2f50365
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoDeprecate core privilege : minicontrol.provider 78/67678/1
Yunjin Lee [Thu, 28 Apr 2016 03:16:36 +0000 (12:16 +0900)]
Deprecate core privilege : minicontrol.provider

Change-Id: I49795de5a0f76fe5032b83733403452600b35f98
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoChange profile of privilege : core vpnservice, vpnservice.admin 62/67662/1
Yunjin Lee [Thu, 28 Apr 2016 02:24:53 +0000 (11:24 +0900)]
Change profile of privilege : core vpnservice, vpnservice.admin

Change-Id: I2560d9cadc432b27fee6e0a14894d703755f8cc9
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoRevise function to avoid SQL injection and memory leak 79/67079/2
Yunjin Lee [Mon, 25 Apr 2016 06:08:11 +0000 (15:08 +0900)]
Revise function to avoid SQL injection and memory leak

Change-Id: Ie9d579756199bab7c64b3afc05f19d47e4b1a9b0
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoAdd missing policy db generate script 02/66202/2 accepted/tizen/common/20160419.142910 accepted/tizen/ivi/20160418.124422 accepted/tizen/mobile/20160418.124138 accepted/tizen/tv/20160418.124216 accepted/tizen/wearable/20160418.124328 submit/tizen/20160418.054551
Yunjin Lee [Mon, 18 Apr 2016 00:08:26 +0000 (09:08 +0900)]
Add missing policy db generate script

Change-Id: Iee4023152f8b9e9a3dfc6b1482dec3f9ae34c3fc
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoRevise error message and Fix memory leak 16/65016/1 submit/tizen/20160407.023728
Yunjin Lee [Thu, 7 Apr 2016 01:44:40 +0000 (10:44 +0900)]
Revise error message and Fix memory leak

Change-Id: I058ffe166e48e1339d8eeb39512ac67763d0a6ac
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoAdd black list APIs and DB 63/64863/4
Yunjin Lee [Tue, 5 Apr 2016 23:56:39 +0000 (08:56 +0900)]
Add black list APIs and DB

For testing, build package and install tc-privilege-checker.*.rpm on target and run /usr/bin/tc-privilege-black-list on target shell

Change-Id: Ia7a931a7325a3cce8e039b52be67e187c8dfde44
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoUpdate language files 62/64862/2 accepted/tizen/common/20160406.144420 accepted/tizen/ivi/20160406.073451 accepted/tizen/mobile/20160406.073245 accepted/tizen/tv/20160406.073300 accepted/tizen/wearable/20160406.073327 submit/tizen/20160406.025752
Yunjin Lee [Wed, 30 Mar 2016 09:10:50 +0000 (18:10 +0900)]
Update language files

Change-Id: Ifb2e29e69a3b5b5e57e9176b1a61f92f288eea60
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoApply Tizen coding rule to headers 63/63963/2
Yunjin Lee [Tue, 29 Mar 2016 05:22:06 +0000 (14:22 +0900)]
Apply Tizen coding rule to headers

Change-Id: I917f67691ba8d177e2dd7f89747ddff78c6c5940
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoMerge "Fix typo in tv core privilege DB and sync privilege list with mobile" into...
Kim Kidong [Tue, 29 Mar 2016 02:00:56 +0000 (19:00 -0700)]
Merge "Fix typo in tv core privilege DB and sync privilege list with mobile" into tizen

8 years agoMerge "Remove minicontrol.provider from wearable profile" into tizen
Kim Kidong [Tue, 29 Mar 2016 02:00:07 +0000 (19:00 -0700)]
Merge "Remove minicontrol.provider from wearable profile" into tizen

8 years agoAdd wrt volume.set privilege to TV profile 01/63901/1 accepted/tizen/common/20160329.050957 accepted/tizen/ivi/20160328.115851 accepted/tizen/mobile/20160328.115745 accepted/tizen/tv/20160328.115800 accepted/tizen/wearable/20160328.115849 submit/tizen/20160328.110055
Yunjin Lee [Mon, 28 Mar 2016 10:52:28 +0000 (19:52 +0900)]
Add wrt volume.set privilege to TV profile

Change-Id: I84910ab3db24dad0741614031de70abad6088734
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoFix typo in tv core privilege DB and sync privilege list with mobile 17/63817/1
Yunjin Lee [Mon, 28 Mar 2016 02:57:53 +0000 (11:57 +0900)]
Fix typo in tv core privilege DB and sync privilege list with mobile

Change-Id: Id59bbbdfaf4ee09e7e117d23010fce34787d5a07
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoRemove minicontrol.provider from wearable profile 52/63452/1
Yunjin Lee [Thu, 24 Mar 2016 05:14:20 +0000 (14:14 +0900)]
Remove minicontrol.provider from wearable profile

Change-Id: Ibbff5846b81cc444f20272c621dbe13112519319
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoRevise version info of wearable privileges 13/63313/2 accepted/tizen/common/20160323.185418 accepted/tizen/ivi/20160323.140955 accepted/tizen/mobile/20160323.135636 accepted/tizen/tv/20160323.135917 accepted/tizen/wearable/20160323.135618 submit/tizen/20160323.092724
Yunjin Lee [Wed, 23 Mar 2016 06:53:28 +0000 (15:53 +0900)]
Revise version info of wearable privileges

Change-Id: I75edbbe73f33fc7f568ef5ac99808c55f1ffa78f
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoUpdate language files 03/63303/1 accepted/tizen/ivi/20160323.140618 accepted/tizen/mobile/20160323.134929 accepted/tizen/tv/20160323.135408 accepted/tizen/wearable/20160323.135018 submit/tizen/20160323.061642
Yunjin Lee [Wed, 23 Mar 2016 06:10:45 +0000 (15:10 +0900)]
Update language files

Change-Id: I3119f033efb2f9025342ad438fd2c54b3069f845
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoAdd core privilege: vpnservice, vpnservice.admin 91/63291/1
Yunjin Lee [Wed, 23 Mar 2016 05:36:51 +0000 (14:36 +0900)]
Add core privilege: vpnservice, vpnservice.admin

Change-Id: I0dfa280dfc4de1bfee89cf9b1f9d4a2a518df6ef
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoAdd missing privilege: Add web d2d.datasharing privilege to tv profile 31/62631/1 accepted/tizen/common/20160317.161158 accepted/tizen/ivi/20160318.113222 accepted/tizen/mobile/20160318.112839 accepted/tizen/tv/20160318.113036 accepted/tizen/wearable/20160318.113106 submit/tizen/20160317.065914
Yunjin Lee [Thu, 17 Mar 2016 06:52:30 +0000 (15:52 +0900)]
Add missing privilege: Add web d2d.datasharing privilege to tv profile

Change-Id: Id91475043754cfe6890d5cf4277dfe5233cdb1af
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoAdd core location.coarse privilege 77/62277/1 accepted/tizen/common/20160315.221727 accepted/tizen/ivi/20160315.123434 accepted/tizen/mobile/20160315.123327 accepted/tizen/tv/20160315.123347 accepted/tizen/wearable/20160315.123411 submit/tizen/20160315.073731
Yunjin Lee [Tue, 15 Mar 2016 07:24:42 +0000 (16:24 +0900)]
Add core location.coarse privilege

Change-Id: I0753b330fc22ff0dbff15c2d47e27690372397b9
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoRevise mapping table: Add missing privilege mapping(core use_ir) and fix miswritten... 31/62231/1
Yunjin Lee [Tue, 15 Mar 2016 03:03:57 +0000 (12:03 +0900)]
Revise mapping table: Add missing privilege mapping(core use_ir) and fix miswritten expired version(wrt systemmanager) in mapping table

Change-Id: Ia510cb956199c409be5cae5d61576aca0ecf0d17
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoFix typo in wearable testsuit 10/62110/1
Yunjin Lee [Mon, 14 Mar 2016 10:38:42 +0000 (19:38 +0900)]
Fix typo in wearable testsuit

Change-Id: Id3cb913a2c9a343fece674c36aa2cb9c7d3bc348
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoApply "-Werror -Wall -Wextra" option 62/61762/1 accepted/tizen/common/20160311.201610 accepted/tizen/ivi/20160311.060919 accepted/tizen/mobile/20160311.060745 accepted/tizen/tv/20160311.060811 accepted/tizen/wearable/20160311.060841 submit/tizen/20160310.101935
Yunjin Lee [Thu, 10 Mar 2016 10:12:22 +0000 (19:12 +0900)]
Apply "-Werror -Wall -Wextra" option

Change-Id: I3ccaf81d9189fae198ff650d21ea66e4a56225f6
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoModify core mapservice to non-privacy related privilege 07/61607/1
Yunjin Lee [Wed, 9 Mar 2016 06:57:18 +0000 (15:57 +0900)]
Modify core mapservice to non-privacy related privilege

Change-Id: Ifab7707f23b88a15447e25ec511e4aa52787824c
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoModify query for privilege description refers to https://review.tizen.org/gerrit... 00/61500/1
Yunjin Lee [Tue, 8 Mar 2016 09:04:13 +0000 (18:04 +0900)]
Modify query for privilege description refers to https://review.tizen.org/gerrit/#/c/57858/

Change-Id: I2d8c16ece9aad4660100ea47db57ad981516078a
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoDeprecate/remove wrt keymanager privilege 97/61497/1
Yunjin Lee [Tue, 8 Mar 2016 08:53:50 +0000 (17:53 +0900)]
Deprecate/remove wrt keymanager privilege

Change-Id: Ib2b0475f923ae1fe59c081c6631136fdfdbc75b4
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoModify to see mobile when build profile is common 93/60893/1 accepted/tizen/common/20160303.110144 accepted/tizen/ivi/20160305.085744 accepted/tizen/mobile/20160305.085652 accepted/tizen/tv/20160305.085710 accepted/tizen/wearable/20160305.085725 submit/tizen/20160303.010122
Yunjin Lee [Thu, 3 Mar 2016 00:52:37 +0000 (09:52 +0900)]
Modify to see mobile when build profile is common

Change-Id: I0d7136836771d37c90b4ed4b129d2ef6085b143d
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoDeprecate native keymanager and Add web d2d.datasharing privilege 87/60787/1
Yunjin Lee [Wed, 2 Mar 2016 08:08:49 +0000 (17:08 +0900)]
Deprecate native keymanager and Add web d2d.datasharing privilege

Change-Id: Iadb7b011fcab8d7c5ca27fa704b18c889621c1e7
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoRemove useless mkdir line from spec file 88/60188/3
Yunjin Lee [Wed, 24 Feb 2016 06:01:27 +0000 (15:01 +0900)]
Remove useless mkdir line from spec file

Change-Id: I05c14c13ec1ff42eecfd9729dfe3ec5b57989e78
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years ago1. Add core use_ir privilege 2. Remove d2d.* privileges except d2d.datasharing 3... 11/60011/1 accepted/tizen/common/20160301.120611 accepted/tizen/ivi/20160223.232426 accepted/tizen/mobile/20160223.232338 accepted/tizen/tv/20160223.232352 accepted/tizen/wearable/20160223.232406 submit/tizen/20160223.085655 submit/tizen_common/20160229.190608
Yunjin Lee [Mon, 22 Feb 2016 08:45:27 +0000 (17:45 +0900)]
1. Add core use_ir privilege 2. Remove d2d.* privileges except d2d.datasharing 3. Update DID and language files 4. Add note field to csv file - this field is ignored when creating db -

Change-Id: If489d5784c6d75cf3aeecfb78caee3195a02f2b4
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years ago1. Remove d2d.admin privilege 2. Revise expired version of mapping table and query... 91/58191/1 devel/ivi accepted/tizen/common/20160217.170659 accepted/tizen/ivi/20160218.024000 accepted/tizen/mobile/20160201.042610 accepted/tizen/tv/20160201.042637 accepted/tizen/wearable/20160201.042731 submit/devel/ivi/20160202.071226 submit/tizen/20160131.230249 submit/tizen_common/20160217.131930 submit/tizen_ivi/20160217.000000 submit/tizen_ivi/20160217.000003
Yunjin Lee [Thu, 28 Jan 2016 08:05:28 +0000 (17:05 +0900)]
1. Remove d2d.admin privilege 2. Revise expired version of mapping table and query for mapping

Change-Id: I7544201074739253c725abed749acd73d3f25de3
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years ago1. Revise rpm name from capi-security-privilege-manager to security-privilege-manager... 98/57898/3 accepted/tizen/mobile/20160129.083348 accepted/tizen/tv/20160129.083415 accepted/tizen/wearable/20160129.083438 submit/tizen/20160127.110348
Yunjin Lee [Tue, 26 Jan 2016 00:35:04 +0000 (09:35 +0900)]
1. Revise rpm name from capi-security-privilege-manager to security-privilege-manager 2. Add pc_requires to fix build fail of askuser

Change-Id: Ie212fe0ab401708483fd2512377591fb986418f0
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years ago1. Modify privilege verification logic according to the changes of expired version... 58/57858/2 submit/tizen/20160125.091654
Yunjin Lee [Mon, 25 Jan 2016 09:11:42 +0000 (18:11 +0900)]
1. Modify privilege verification logic according to the changes of expired version 2. Fix api version padding 3. Fix broken DB of TV profile

Change-Id: I8e2778e498a7379c9b997eef3449bcc16fa240e8
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoAdd privacy feature: APIs and privacy info 55/57455/9 submit/tizen/20160125.072456
Yunjin Lee [Wed, 20 Jan 2016 07:54:55 +0000 (16:54 +0900)]
Add privacy feature: APIs and privacy info

To Test New APIs, bulid packages and install tc-privilege-checker.*.rpm and run /usr/bin/tc-privilege-info

For using new APIs:
#include <privilege_info.h>

int ret = privilege_info_is_privacy("http://tizen.org/privilege/account.read");
if (ret == 1)
    //is privacy case
else if (ret == 0)
    // is not privacy case
else if (ret == -1)
    // on error

GList* privacy_list = NULL; // privacy_list must be released with g_list_free by caller
ret = privilege_info_get_privacy_list(&privacy_list);
if (ret == 0) // ret == PRVMGR_ERR_NONE
    // success case
else
    // on error

GList* privilege_list = NULL; // privilege_list must be released with g_list_free by caller
ret = privilege_info_get_privilege_list_by_privacy("ACCOUNT", &privilege_list);
if (ret == 0) // ret == PRVMGR_ERR_NONE
    //success case
else if (ret == PRVMGR_ERR_INVALID_PARAMETER)
    // privacy param is NULL
else
    // on error

Change-Id: I5106d53b4adc538155912269bdf6fd31142ad4ab
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoAdd wrt datacontrol.consumer to wearable from 2.3.2 04/57004/1 accepted/tizen/mobile/20160115.010326 accepted/tizen/mobile/20160115.010426 accepted/tizen/tv/20160115.010339 accepted/tizen/tv/20160115.010441 accepted/tizen/wearable/20160115.010358 accepted/tizen/wearable/20160115.010502 submit/tizen/20160114.091920 submit/tizen/20160114.092139
Yunjin Lee [Thu, 14 Jan 2016 08:44:33 +0000 (17:44 +0900)]
Add wrt datacontrol.consumer to wearable from 2.3.2

Change-Id: I544247de113d3151c00a8a628cc7a0c860bf7e4d
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoRevise privilege DB generation and Add wrt keymanager privilege for mobile/wearable... 20/56520/2 accepted/tizen/mobile/20160111.053328 accepted/tizen/tv/20160111.053349 accepted/tizen/wearable/20160111.053416 submit/tizen/20160111.043006
Yunjin Lee [Mon, 11 Jan 2016 01:03:35 +0000 (10:03 +0900)]
Revise privilege DB generation and Add wrt keymanager privilege for mobile/wearable profile

Change-Id: I69ae9e320090276e8b76e93c0d4ec31efb6ea9c9
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoAdd null checking and remove temporal test code for comparing mapping APIs 85/54985/5 accepted/tizen/mobile/20151221.101436 accepted/tizen/tv/20151221.101349 accepted/tizen/wearable/20151221.101520 submit/tizen/20151221.064656 submit/tizen_common/20151229.142028 submit/tizen_common/20151229.144031 submit/tizen_common/20151229.154718
Yunjin Lee [Mon, 21 Dec 2015 06:19:34 +0000 (15:19 +0900)]
Add null checking and remove temporal test code for comparing mapping APIs

Change-Id: Ieb1155b661494e6c3f623b76aba34269586f4d21
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years ago1. Add core d2d.admin, d2d.appcontrol, d2d.datasharing privilege for mobile/wearable... 54/54954/1 accepted/tizen/mobile/20151221.100957 accepted/tizen/tv/20151221.100953 accepted/tizen/wearable/20151221.101057 submit/tizen/20151221.043845
Yunjin Lee [Mon, 21 Dec 2015 03:22:00 +0000 (12:22 +0900)]
1. Add core d2d.admin, d2d.appcontrol, d2d.datasharing privilege for mobile/wearable/tv profile 2. Modify missing mapping profile 3. Add mapping test code for 3.0

Change-Id: I20f730a2f128409c1f80f576aa897f389e45caa6
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoApply tizen coding rule 04/53904/1
Yunjin Lee [Thu, 10 Dec 2015 06:19:42 +0000 (15:19 +0900)]
Apply tizen coding rule

Change-Id: I89e5c6d8c64051a47e7a99c470b0301d616794ff
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoAdd privilege mapping api and DBs 58/53058/2 accepted/tizen/mobile/20151204.061847 accepted/tizen/tv/20151204.061914 accepted/tizen/wearable/20151204.061933 submit/tizen/20151204.011325
Yunjin Lee [Tue, 1 Dec 2015 10:50:10 +0000 (19:50 +0900)]
Add privilege mapping api and DBs

Change-Id: I79546dc9ccfc27804b0c8e56a212371b3b2fd9d2
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoUpdate internal testsuit 66/52166/3 accepted/tizen/mobile/20151125.072528 accepted/tizen/tv/20151125.072537 accepted/tizen/wearable/20151125.072552 submit/tizen/20151125.070431
Yunjin Lee [Thu, 19 Nov 2015 11:39:13 +0000 (20:39 +0900)]
Update internal testsuit

Change-Id: I89c1a7281ee75c48f0edd1958ed4146eb44dad9b
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoRevert 'Change privilege_db_manager to see core DB when web api version is 3.0' 94/51794/2
Yunjin Lee [Mon, 16 Nov 2015 07:37:03 +0000 (16:37 +0900)]
Revert 'Change privilege_db_manager to see core DB when web api version is 3.0'

Change-Id: Ia75764af720e8a1a9a4e40d046740a582b9a65c9
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>