platform/core/security/auth-fw.git
15 months agoMigrate to openssl3 75/295675/1 accepted/tizen_8.0_unified accepted/tizen_unified accepted/tizen_unified_dev tizen tizen_8.0 accepted/tizen/8.0/unified/20231005.093544 accepted/tizen/unified/20230907.055350 accepted/tizen/unified/dev/20240620.005600 tizen_8.0_m2_release
Dariusz Michaluk [Wed, 12 Jul 2023 09:01:22 +0000 (11:01 +0200)]
Migrate to openssl3

Change-Id: Ib7ebba1047b171021db0afffd0629822b152015e

15 months agoFix build bread for new toolchain 61/295361/1 accepted/tizen/unified/dev/20230726.115718
Dongsun Lee [Thu, 6 Jul 2023 05:05:56 +0000 (14:05 +0900)]
Fix build bread for new toolchain

- change time_t to timespec in setting device time

Change-Id: I8941927f8d4e34912d6465586b6fa6b02b5837a8

3 years agoChange systemd-devel package name 54/252854/1 accepted/tizen_6.5_unified accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix tizen_6.5 tizen_7.0 tizen_7.0_hotfix accepted/tizen/6.5/unified/20211028.121222 accepted/tizen/7.0/unified/20221110.060655 accepted/tizen/7.0/unified/hotfix/20221116.105516 accepted/tizen/unified/20210210.130329 submit/tizen/20210209.100542 submit/tizen_6.5/20211028.162401 tizen_6.5.m2_release tizen_7.0_m2_release
INSUN PYO [Wed, 3 Feb 2021 01:04:48 +0000 (10:04 +0900)]
Change systemd-devel package name

Change-Id: Iceac85a7a3b452d2e0f8395174d2eaabe53a7415

4 years agoUpgrade version to 1.1.0 39/226039/1 accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix tizen_6.0 tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.114746 accepted/tizen/6.0/unified/hotfix/20201103.004140 accepted/tizen/unified/20200305.123323 submit/tizen/20200227.015625 submit/tizen/20200227.054032 submit/tizen_6.0/20201029.205104 submit/tizen_6.0_hotfix/20201102.192504 submit/tizen_6.0_hotfix/20201103.114804 tizen_6.0.m2_release
Sangwan Kwon [Wed, 26 Feb 2020 07:56:22 +0000 (16:56 +0900)]
Upgrade version to 1.1.0

- Fix coverity defect
- Support build with GCC 9.2
- Detach IPassword from IPasswordFile
- Migrate to openssl 1.1
- Add manual test on testbench

Change-Id: I947a6a21a7c4c32d95a38511033d63d3ad2fa7aa
Signed-off-by: Sangwan Kwon <sangwan.kwon@samsung.com>
4 years agoFix coverity defect 27/226027/1
Sangwan Kwon [Wed, 26 Feb 2020 07:21:58 +0000 (16:21 +0900)]
Fix coverity defect

- MISSING_MOVE_ASSIGNMENT

Change-Id: Iea84bada6da34de2ffd9b217b4460ba9f3318a5a
Signed-off-by: Sangwan Kwon <sangwan.kwon@samsung.com>
4 years ago[Tizen 6.0] Support build with GCC 9.2 73/221673/1 accepted/tizen/unified/20200108.131650 submit/tizen/20200107.053941
Mikhail Kashkarov [Thu, 12 Dec 2019 05:41:32 +0000 (08:41 +0300)]
[Tizen 6.0] Support build with GCC 9.2

binary_queue.cpp:28:1: note: 'std::function' is defined in header '<functional>';
did you forget to '#include <functional>'?
   27 | #include <cstring>
  +++ |+#include <functional>
   28 | #include <new>

Change-Id: Iad90a86486be23294022cfbccdc76184c32328b3
Signed-off-by: Mikhail Kashkarov <m.kashkarov@partner.samsung.com>
Signed-off-by: Sangwan Kwon <sangwan.kwon@samsung.com>
5 years agoRefactoring auth-fw.service and auth-fw-OOO.socket 47/210647/5 accepted/tizen_5.5_unified accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix tizen_5.5 tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix accepted/tizen/5.5/unified/20191031.023240 accepted/tizen/5.5/unified/mobile/hotfix/20201027.090840 accepted/tizen/5.5/unified/wearable/hotfix/20201027.113445 accepted/tizen/unified/20190814.065145 submit/tizen/20190813.005155 submit/tizen_5.5/20191031.000004 submit/tizen_5.5_mobile_hotfix/20201026.185104 submit/tizen_5.5_wearable_hotfix/20201026.184304 tizen_5.5.m2_release
INSUN PYO [Tue, 23 Jul 2019 10:00:04 +0000 (19:00 +0900)]
Refactoring auth-fw.service and auth-fw-OOO.socket

 - "@SERVICE_NAME@.target" is a typo mistaken for "@SERVICE_NAME@.service".
 - All four sockets are required for auth-fw.service. So, "Requires=OOO.socket" must be in auth-fw.service.
 - "Sockets=" in the auth-fw.service is replaced by "Requires=OOO.socket".

Change-Id: I477d2788012e79240c6252045ad003a0df25ec4c
Signed-off-by: Sangwan Kwon <sangwan.kwon@samsung.com>
5 years agoFix policy(max_num_seq_len) bug 66/209566/1
Sangwan Kwon [Mon, 8 Jul 2019 19:28:41 +0000 (04:28 +0900)]
Fix policy(max_num_seq_len) bug

Change-Id: Ia79645a463daf712a5ac5f4264837d2804581eae
Signed-off-by: Sangwan Kwon <sangwan.kwon@samsung.com>
5 years agoMerge "Remove unnecessary settings on auth-fw.target" into tizen accepted/tizen/unified/20190705.110806 submit/tizen/20190704.112637
sangwan kwon [Tue, 25 Jun 2019 07:09:00 +0000 (07:09 +0000)]
Merge "Remove unnecessary settings on auth-fw.target" into tizen

5 years agoMerge "Migrate to openssl 1.1" into tizen submit/tizen/20190619.044623
sangwan kwon [Tue, 18 Jun 2019 04:45:13 +0000 (04:45 +0000)]
Merge "Migrate to openssl 1.1" into tizen

5 years agoMerge "Detach IPassword from IPasswordFile" into tizen
sangwan kwon [Tue, 11 Jun 2019 04:02:04 +0000 (04:02 +0000)]
Merge "Detach IPassword from IPasswordFile" into tizen

5 years agoDetach IPassword from IPasswordFile 82/207382/2
sangwan.kwon [Tue, 4 Jun 2019 07:26:06 +0000 (16:26 +0900)]
Detach IPassword from IPasswordFile

Change-Id: Id1acf0c087a516ee33456b6b48f826277d8ba8be
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
5 years agoMigrate to openssl 1.1 94/206894/1
Konrad Lipinski [Tue, 28 May 2019 13:27:39 +0000 (15:27 +0200)]
Migrate to openssl 1.1

Change-Id: Ib64e01f69bcaaa1c2e666dc3514caddc06b9c3dd

5 years agoMake spec compliant with gbs --incremental 93/206893/1
Konrad Lipinski [Tue, 28 May 2019 13:31:26 +0000 (15:31 +0200)]
Make spec compliant with gbs --incremental

According to [1], %prep section of the spec file should contain a single
%setup macro, nothing else. According to [2], manifest %files are best
copied to %{buildroot}%{_datadir} in the %install section.

Moved manifest copy operations from %prep to %install accordingly.

References
[1] https://source.tizen.org/documentation/reference/git-build-system/usage/gbs-build
[2] https://wiki.tizen.org/Security/Application_installation_and_Manifest

Change-Id: I3bfe1aef38f74537c8e4c1c96af1cf9f401dc3d8

5 years agoRemove unnecessary settings on auth-fw.target 50/204850/1
INSUN PYO [Mon, 29 Apr 2019 00:15:06 +0000 (09:15 +0900)]
Remove unnecessary settings on auth-fw.target

Change-Id: Ica0c56f8e97c83828dae7431de8a2f6739df05ec

5 years agoMerge "Replace time(NULL) with monotonic clock usage" into tizen accepted/tizen/unified/20190502.051445 submit/tizen/20190430.085417
Tomasz Swierczek [Tue, 19 Mar 2019 06:13:12 +0000 (06:13 +0000)]
Merge "Replace time(NULL) with monotonic clock usage" into tizen

5 years agoReplace time(NULL) with monotonic clock usage 04/200904/2
Tomasz Swierczek [Tue, 5 Mar 2019 14:25:48 +0000 (15:25 +0100)]
Replace time(NULL) with monotonic clock usage

Calculating timeout for socket connections should
use monotonic clock.

Change-Id: I1e4b82d66997ec570c7630f72bfd870b92e9594c

5 years agoAdd manual test on testbench 21/200421/1
sangwan.kwon [Mon, 25 Feb 2019 04:30:40 +0000 (13:30 +0900)]
Add manual test on testbench

$ auth-fw-test --help
Usage: auth-fw-test [Option]

Options :
   -a, --run-all               run all TESTCASE
   -r, --run=[TESTCASE]        run TESTCASE
   -l, --list                  list TESTCASES
   -h, --help                  show this

Change-Id: I40bd21b328f12a060bfcac203c7082abc1a845bd
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
6 years agoProtect deserialization against malicious clients 35/182235/4
Tomasz Swierczek [Thu, 21 Jun 2018 09:35:43 +0000 (11:35 +0200)]
Protect deserialization against malicious clients

Added protection against memory leaks when deserializing data
of bad size & detection of invalid STL sizes.

Change-Id: Ia2781b352585ce32e401ca3830b8304e43233e5c

6 years agoFix use-after-free bug 28/178328/2 accepted/tizen_5.0_unified tizen_5.0 accepted/tizen/5.0/unified/20181102.020045 accepted/tizen/unified/20180510.070817 submit/tizen/20180509.100419 submit/tizen_5.0/20181101.000003
sangwan.kwon [Wed, 9 May 2018 09:47:49 +0000 (18:47 +0900)]
Fix use-after-free bug

Change-Id: I35ba8a8b687024311b40796a3ae3640f1b9cd71d
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
6 years agoFix IPasswordFile's destructor to virtual 97/177697/1 accepted/tizen/unified/20180504.063610 submit/tizen/20180503.063549
sangwan.kwon [Thu, 3 May 2018 04:51:58 +0000 (13:51 +0900)]
Fix IPasswordFile's destructor to virtual

Change-Id: I0470a6e9811e85f07c80e5f63078f2f99b4ca33f
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
6 years agoUpgrade version to 1.0.0 28/176128/1 accepted/tizen/unified/20180427.062336 submit/tizen/20180426.023445
sangwan.kwon [Tue, 17 Apr 2018 02:02:05 +0000 (11:02 +0900)]
Upgrade version to 1.0.0

[Major] Apply plugin architecture
- Detach password file as interface
- Add TZ Backend skeleton code
- Move testcases from security-test to auth-fw

Change-Id: I90f202e5c6e1d6402e98960d1a2319c02aed13f3
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
6 years agoAdd TZ Backend skeleton code 73/173373/2
sangwan.kwon [Wed, 21 Mar 2018 05:23:56 +0000 (14:23 +0900)]
Add TZ Backend skeleton code

Change-Id: I35a69caea54d1e4cfbe7df31fa89a9a568fe3932
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
6 years agoApply plugin architecture 68/172668/3
sangwan.kwon [Tue, 13 Mar 2018 08:47:45 +0000 (17:47 +0900)]
Apply plugin architecture

Rule #1. Default sw-backend is supported.
Rule #2. tz-backend's priority is higher than sw-backend.
Rule #3. For support tz-backend, install tz-backend to plugin path.

Change-Id: I0e5ad3abf0ad437bb5b5a75e55b71d899530895d
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
6 years agoDetach password file as interface 36/172236/5
sangwan.kwon [Mon, 12 Mar 2018 10:49:42 +0000 (19:49 +0900)]
Detach password file as interface

1. Fix "password-file.h" to "ipassword-file.h".
  - IPasswordFile is interface of PasswordFile.
  - PasswordFile can be implemented by SW-Backend or TZ-Backend.

2. Add "libauth-sw-backend.so."
  - This library has PasswordFile which implemented by SW-Backend.
  - Auth-FW Server controls this as plugin.
    (Temporarily, server has PasswordFile for TDD)

Change-Id: I13790d36fdd5fc849e40ca30328393d1a7ff5c39
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
6 years agoFix coverity defects 85/173685/1 accepted/tizen/unified/20180405.064322 submit/tizen/20180404.020934 submit/tizen/20180404.064013
sangwan.kwon [Fri, 23 Mar 2018 06:26:36 +0000 (15:26 +0900)]
Fix coverity defects

Change-Id: I5303e720d2b39fa2174258957bd1e7009a7b0867
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
6 years agoUpgrade version to 0.1.2 01/171501/1 accepted/tizen/unified/20180306.061321 submit/tizen/20180305.084114
sangwan.kwon [Mon, 5 Mar 2018 07:31:25 +0000 (16:31 +0900)]
Upgrade version to 0.1.2

- Fix svace defect on test package
- Move testcases from security-test to auth-fw
- Fix misuse of dynamic_cast

Change-Id: I5f8a0a984655065feb9566c10f868ec78760d96b
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
6 years agoFix svace defect on test package 52/168252/5
sangwan.kwon [Thu, 25 Jan 2018 07:42:07 +0000 (16:42 +0900)]
Fix svace defect on test package

This commit can be reverted which below commit submitted.
https://review.tizen.org/gerrit/#/c/168918/

Change-Id: I3801a92dc98b1d8cdfa4bb4290bcf09134122a52
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
6 years agoMove testcases from security-test to auth-fw 35/168235/4
sangwan.kwon [Thu, 25 Jan 2018 06:18:55 +0000 (15:18 +0900)]
Move testcases from security-test to auth-fw

Change-Id: I4bee401c964ce0d4f84cc03099e0da1c6fb42878
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
6 years agoFix misuse of dynamic_cast 11/168211/2
sangwan.kwon [Thu, 25 Jan 2018 04:36:02 +0000 (13:36 +0900)]
Fix misuse of dynamic_cast

- The objective type is obvious. (SocketManager*, Policy*)
- dynamic_cast is expensive. (run-time)
- Exact output varies by system.

Change-Id: Iac746b537ce3e356a98a14ca603eb089b9554af3
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
6 years agoUpgrade version to 0.1.1 75/159175/1 accepted/tizen/unified/20171108.063540 submit/tizen/20171107.092208
sangwan.kwon [Tue, 7 Nov 2017 08:59:43 +0000 (17:59 +0900)]
Upgrade version to 0.1.1

- Fix several defects
- Fix security svace defects

Change-Id: I9496fed4375ca34d44da72cab8f79cdb28244bda
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
6 years agoFix several defects 14/159114/1
sangwan.kwon [Tue, 7 Nov 2017 04:46:15 +0000 (13:46 +0900)]
Fix several defects

- Fix misuse of fsync().
- Adjust log level of sendToServer()'s erorr.

Change-Id: I04b0fa76beeee64bb3181de9a31d32634d748a62
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoFix security svace defects 41/150341/1
sangwan.kwon [Fri, 15 Sep 2017 05:30:38 +0000 (01:30 -0400)]
Fix security svace defects

- Use dynamic_cast for safely converting along the inheritance hierarchy.
- Check the return value of ::fsync

Change-Id: I877fc8438fb6e40c896204d001bdb53b08827e0b
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoUpgrade version to 0.1.0 90/145290/1 accepted/tizen/4.0/unified/20170829.020457 accepted/tizen/unified/20170822.113137 submit/tizen/20170822.061530 submit/tizen_4.0/20170828.100004 submit/tizen_4.0/20170828.110004
sangwan.kwon [Tue, 22 Aug 2017 04:24:19 +0000 (00:24 -0400)]
Upgrade version to 0.1.0

Change-Id: I6df86220d6db204ee6e6dfb8a5b94824a187c908
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoFix password remove rule 69/144769/1
sangwan.kwon [Fri, 18 Aug 2017 01:18:53 +0000 (21:18 -0400)]
Fix password remove rule

When password quality is AUTH_PWD_QUALITY_UNSPECIFIED,
password should be able to remove no mather what any policies setted.

Change-Id: I83e2a85f49b6d48eb92a89d38991daf8a2587a91
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoFix ASan build 47/127247/2 accepted/tizen/4.0/unified/20170816.011055 accepted/tizen/unified/20170705.162934 submit/tizen/20170704.075025 submit/tizen/20170705.025138 submit/tizen_4.0/20170811.094300
Gonzha Dmitriy Evgenevich [Wed, 26 Apr 2017 16:14:50 +0000 (19:14 +0300)]
Fix ASan build

Added server CMakeLists.txt option to add additional libraries
and -lpthread in .spec for asan build case

Change-Id: Ie03684ca0e9ccaa50db08c6d47a0858788ad87f9

7 years ago[CAPI Changed] Deprecate recovery password API 37/134237/5
sangwan.kwon [Thu, 15 Jun 2017 10:29:10 +0000 (19:29 +0900)]
[CAPI Changed] Deprecate recovery password API

Change-Id: I44fe22ce0192af89bad9d05b1537beb832df1094
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoFix assignment operator misuse 51/134351/1
sangwan.kwon [Tue, 13 Jun 2017 06:51:11 +0000 (15:51 +0900)]
Fix assignment operator misuse

Assignment operators should return a reference to *this object.
If not it may result in unexpected behavior like a = b = c.

Change-Id: I45cffa58b6eb794a77ad88fd423bbb20f2af8b83
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
(cherry picked from commit 4a3f95a7c14bacee795590c0c4cf74df166098bf)

7 years agoFix svace defects 23/123023/1 accepted/tizen/unified/20170406.173329 submit/tizen/20170406.052820 submit/tizen/20170407.072853 tizen_4.0.m1_release
Kyungwook Tak [Wed, 8 Feb 2017 06:29:03 +0000 (15:29 +0900)]
Fix svace defects

Change-Id: Ic25b8fd8e3b42d4d88bbf0aefad1324035e1508b
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
(cherry picked from commit 9045342e744ff84180f64ee185ed5f7d19d7d1ea)
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoDo not reset current attempt when max attempt is reset. 33/120933/1
Dongsun Lee [Sun, 26 Mar 2017 15:23:05 +0000 (00:23 +0900)]
Do not reset current attempt when max attempt is reset.

- Platform policy changed.
- When max attempt is reset,
  the password with the current attempt over new max attempt is not valid any more.

Change-Id: I47ffb6ec252f166a10da69072005a059401d5842
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
7 years agomodify the logic for QUALITY policy. QUALITY policy has a priority concept. 64/120364/1
Dongsun Lee [Wed, 22 Mar 2017 11:50:00 +0000 (20:50 +0900)]
modify the logic for QUALITY policy. QUALITY policy has a priority concept.

Change-Id: I45188e4ac402f8a550d2b1358e14dbdb2b92d5e9
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
7 years agoChange the concept of min complex character number 15/118615/1
Dongsun Lee [Mon, 13 Mar 2017 09:09:02 +0000 (18:09 +0900)]
Change the concept of min complex character number

- complexity 1 : Character + Number
- complexity 2 : Character + Number(same with complexity 1)
- complexity 3 : Character + Number + Special character
- complexity 4 : Upper case + Lower case + Number + Special character

Change-Id: Ia20ca456a1adc35c2340512f07c27bfc2a40c02f
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
7 years agoPASSWORD_QUALITY implementation modification to follow DPM's definition 89/117889/9
Dongsun Lee [Wed, 8 Mar 2017 03:24:08 +0000 (12:24 +0900)]
PASSWORD_QUALITY implementation modification to follow DPM's definition

NUMERIC : at least more than one numeric character should be included.
ALPHABETIC : at least more than one alphabet character should be included.
ALPHANUMERIC : at least more than one alphabet character and more than one numeric character
               should be included.

Change-Id: I17ddcdf3a872155a58ca56bfe6c82811d163ff2b
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
7 years agoRemove mobile dependency on the whitelist 30/111330/1 accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable accepted/tizen/common/20170120.125147 accepted/tizen/ivi/20170120.122059 accepted/tizen/mobile/20170120.122004 accepted/tizen/tv/20170120.122020 accepted/tizen/unified/20170309.033222 accepted/tizen/wearable/20170120.122038 submit/tizen/20170120.075658 submit/tizen_unified/20170308.100408
sangwan.kwon [Fri, 20 Jan 2017 06:41:14 +0000 (15:41 +0900)]
Remove mobile dependency on the whitelist

* Preloaded app cannot hold the internal privilege now.
* If the preloaded app can hold internal privilege later,
  the whitelist can be replace with the cynara.

Change-Id: I4e1f9862ea6b5994df61688c77c256ab6c72d534
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoFix build with GCC6:deprecated auto_ptr was changed to shared_ptr 69/104969/2 accepted/tizen/common/20170102.152147 accepted/tizen/ivi/20170102.060551 accepted/tizen/mobile/20170102.060454 accepted/tizen/tv/20170102.060510 accepted/tizen/wearable/20170102.060531 submit/tizen/20170102.003625
Dongsun Lee [Thu, 15 Dec 2016 04:27:03 +0000 (13:27 +0900)]
Fix build with GCC6:deprecated auto_ptr was changed to shared_ptr

Change-Id: I0bc0a5a97201c46d81af578feb3f2631b93382fc
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
7 years agoRevert "Add auth-fw utils 'auth-fw-cmd'" 23/100723/2 accepted/tizen_3.0.m2_mobile accepted/tizen_3.0.m2_tv accepted/tizen_3.0.m2_wearable tizen_3.0.m2 tizen_3.0_tv accepted/tizen/3.0.m2/mobile/20170104.141747 accepted/tizen/3.0.m2/tv/20170104.142100 accepted/tizen/3.0.m2/wearable/20170104.142424 accepted/tizen/3.0/common/20161207.195249 accepted/tizen/3.0/ivi/20161207.070620 accepted/tizen/3.0/mobile/20161207.070532 accepted/tizen/3.0/tv/20161207.070543 accepted/tizen/3.0/wearable/20161207.070604 accepted/tizen/common/20161207.184316 accepted/tizen/ivi/20161208.011358 accepted/tizen/mobile/20161208.011302 accepted/tizen/tv/20161208.011313 accepted/tizen/wearable/20161208.011339 submit/tizen/20161207.045135 submit/tizen_3.0.m2/20170104.093751 submit/tizen_3.0/20161207.044923
jooseong lee [Tue, 29 Nov 2016 04:35:25 +0000 (13:35 +0900)]
Revert "Add auth-fw utils 'auth-fw-cmd'"

This reverts commit 1e586476e1fd7da8b01e869b7af71cb3f1fdbc1e.

Signed-off-by: jooseong lee <jooseong.lee@samsung.com>
Change-Id: Icb9098d8972c96ae09491dfbda676bd3f543b125

7 years agoMake package dependency to security-config for security_fw group 36/98836/1 accepted/tizen/3.0/common/20161122.195045 accepted/tizen/3.0/ivi/20161122.075920 accepted/tizen/3.0/mobile/20161122.075812 accepted/tizen/3.0/tv/20161122.075843 accepted/tizen/3.0/wearable/20161122.075902 accepted/tizen/common/20161121.143426 accepted/tizen/ivi/20161121.235027 accepted/tizen/mobile/20161121.234856 accepted/tizen/tv/20161121.234927 accepted/tizen/wearable/20161121.234957 submit/tizen/20161121.042259 submit/tizen_3.0/20161121.042235
jooseong lee [Mon, 21 Nov 2016 04:17:46 +0000 (13:17 +0900)]
Make package dependency to security-config for security_fw group

Change-Id: I75eba40b541cb595a6a83a786273b24baaea29d7
Signed-off-by: jooseong lee <jooseong.lee@samsung.com>
8 years agoRemove unused clients on whiltelist 29/92029/1
jooseong lee [Thu, 13 Oct 2016 01:05:09 +0000 (10:05 +0900)]
Remove unused clients on whiltelist

Change-Id: Idcf25427c00f3de89929772cb559231aae1754ee
Signed-off-by: jooseong lee <jooseong.lee@samsung.com>
8 years agoAdd org.tizen.setting to client whiltelist for mobile 01/90701/1 accepted/tizen/3.0/common/20161114.105901 accepted/tizen/3.0/ivi/20161011.053533 accepted/tizen/3.0/mobile/20161015.032323 accepted/tizen/3.0/tv/20161016.003459 accepted/tizen/3.0/wearable/20161015.080350 accepted/tizen/common/20161004.081001 accepted/tizen/ivi/20161005.080109 accepted/tizen/mobile/20161005.080029 accepted/tizen/tv/20161005.080040 accepted/tizen/wearable/20161005.080059 submit/tizen/20161001.075614 submit/tizen_3.0_common/20161104.104000 submit/tizen_3.0_ivi/20161010.000000 submit/tizen_3.0_ivi/20161010.000010 submit/tizen_3.0_mobile/20161015.000000 submit/tizen_3.0_tv/20161015.000000 submit/tizen_3.0_wearable/20161015.000000
jooseong lee [Tue, 4 Oct 2016 02:18:09 +0000 (11:18 +0900)]
Add org.tizen.setting to client whiltelist for mobile

Change-Id: I11dab1e27e80c77b16c63aa473556a08570ae097
Signed-off-by: jooseong lee <jooseong.lee@samsung.com>
8 years agosocket-manager: removes tizen specific call 31/90531/1
José Bollo [Fri, 8 Jan 2016 15:53:46 +0000 (16:53 +0100)]
socket-manager: removes tizen specific call

The function 'smack_fgetlabel' is specific to Tizen
and is no more maintained upstream.

Change-Id: Ic405743f73109fae8d0d000394c542e491b7d953
Signed-off-by: José Bollo <jobol@nonadev.net>
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
8 years agoUpdate client whitelist 71/89271/2 accepted/tizen/common/20160930.174714 accepted/tizen/ivi/20160930.232535 accepted/tizen/mobile/20160930.232459 accepted/tizen/tv/20160930.232504 accepted/tizen/wearable/20160930.232526 submit/tizen/20160930.022920
jooseong lee [Fri, 23 Sep 2016 02:20:33 +0000 (11:20 +0900)]
Update client whitelist

Smack Process label prefix for applications is changed.
From User::App::{appid} to User::Pkg::{pkgid}

Change-Id: I03a7ce62119cb0aaa96add4db325451c9ed1cf6a
Signed-off-by: jooseong lee <jooseong.lee@samsung.com>
8 years agoSupport old format password in Tizen2.x Security-server 85/85385/1 accepted/tizen/common/20160829.135701 accepted/tizen/ivi/20160830.060812 accepted/tizen/mobile/20160830.060646 accepted/tizen/tv/20160830.060720 accepted/tizen/wearable/20160830.060743 submit/tizen/20160829.005907
jooseong lee [Wed, 24 Aug 2016 11:39:21 +0000 (20:39 +0900)]
Support old format password in Tizen2.x Security-server

We should load old format password file after Tizen platform
upgrade. (2.4->3.0)

Refer to: https://review.tizen.org/gerrit/#/c/85383/

Change-Id: Ied40ac768f6b083f1670393a3f9221571aa6f5b6
Signed-off-by: jooseong lee <jooseong.lee@samsung.com>
8 years agoCheck whether client process label is allowed or not on whitelist 22/83322/3
jooseong lee [Wed, 10 Aug 2016 05:56:50 +0000 (14:56 +0900)]
Check whether client process label is allowed or not on whitelist

Only allowed client should call password APIs. Auth-fw can manage it
based on whitelist. There are two whitelist files for general client
and admin client.

- client-whitelist
 : subject labels allowed to use password checking/setting
   ex. lockscreen, setting application
- admin-client-whitelist
 : subject labels allowed to use password reset and password policy setting
   ex. device policy manager

Change-Id: If4eebde05f690c8fd8a9e8c5adce08f0c7af5e47
Signed-off-by: jooseong lee <jooseong.lee@samsung.com>
8 years agoCheck password reuse in auth_passwd_check_passwd_available() 46/82946/1 accepted/tizen/common/20160809.183708 accepted/tizen/ivi/20160809.075316 accepted/tizen/mobile/20160809.075218 accepted/tizen/tv/20160809.075235 accepted/tizen/wearable/20160809.075254 submit/tizen/20160809.013103
jooseong lee [Mon, 8 Aug 2016 08:29:12 +0000 (17:29 +0900)]
Check password reuse in auth_passwd_check_passwd_available()

Change-Id: I5709d224930acfb7a33d99add6d136c67fcef187
Signed-off-by: jooseong lee <jooseong.lee@samsung.com>
8 years agoExcept numbers from complex(special) character counting 32/82832/2 accepted/tizen/common/20160808.121536 submit/tizen/20160808.060141
jooseong lee [Mon, 8 Aug 2016 04:39:07 +0000 (13:39 +0900)]
Except numbers from complex(special) character counting

plus, add 'break in switch statement

Change-Id: I1c55fc1fdd3a03af49c03fdae4991e8bdc431220
Signed-off-by: jooseong lee <jooseong.lee@samsung.com>
8 years agoAdd new API - auth_passwd_check_passwd_available() 09/82709/5
jooseong lee [Fri, 5 Aug 2016 07:23:17 +0000 (16:23 +0900)]
Add new API - auth_passwd_check_passwd_available()

This API checks only if typed string fulfills password policies.
App could use this API during typing a letter for new password and
notify user of helper message before calling password setting API.

To support kind helper message, we provide several error type for
each password policies.

* AUTH_PASSWD_API_ERROR_INVALID_MIN_LENGTH
* AUTH_PASSWD_API_ERROR_INVALID_MIN_COMPLEX_CHAR_NUM
* AUTH_PASSWD_API_ERROR_INVALID_MAX_CHAR_OCCURENCES
* AUTH_PASSWD_API_ERROR_INVALID_MAX_NUM_SEQ_LENGTH
* AUTH_PASSWD_API_ERROR_INVALID_FORBIDDEN_PASSWORDS
* AUTH_PASSWD_API_ERROR_INVALID_QUALITY_TYPE
* AUTH_PASSWD_API_ERROR_INVALID_PATTERN

Also, AUTH_PASSWD_API_ERROR_PASSWORD_INVALID is removed.

Change-Id: Ie7727ceb2c5fa095632b4c38e23c8d6daaae322a
Signed-off-by: jooseong lee <jooseong.lee@samsung.com>
8 years agoSet the SMACK security label to run given executable file in systemd services 75/80875/1 accepted/tizen/common/20160721.175756 accepted/tizen/ivi/20160721.090746 accepted/tizen/mobile/20160721.090452 accepted/tizen/tv/20160721.091309 accepted/tizen/wearable/20160721.091018 submit/tizen/20160721.003054
jooseong lee [Wed, 20 Jul 2016 11:57:43 +0000 (20:57 +0900)]
Set the SMACK security label to run given executable file in systemd services

Change-Id: I8dc4b1b15f3f1cc42c065cf5550136d255f5f953
Signed-off-by: jooseong lee <jooseong.lee@samsung.com>
8 years agoAdd auth-fw utils 'auth-fw-cmd' 14/71314/2
jooseong lee [Wed, 25 May 2016 04:52:36 +0000 (13:52 +0900)]
Add auth-fw utils 'auth-fw-cmd'

Change-Id: I4307f14423a4dc9285ea44ec1eb9b3431e4d95a3
Signed-off-by: jooseong lee <jooseong.lee@samsung.com>
8 years agoMake a data directory for password in the %install session 98/70698/1 accepted/tizen/common/20160520.171500 accepted/tizen/ivi/20160520.141232 accepted/tizen/mobile/20160520.140710 accepted/tizen/tv/20160520.141024 accepted/tizen/wearable/20160520.141120 submit/tizen/20160520.070840
jooseong lee [Fri, 20 May 2016 06:59:11 +0000 (15:59 +0900)]
Make a data directory for password in the %install session

Because of root minimization, auth-fw daemon can't make a data directory.

Change-Id: I86ab221006b20a264c8bd317d001f9474dd71431
Signed-off-by: jooseong lee <jooseong.lee@samsung.com>
8 years agoChange a user/group from root to security_fw for root minimization 29/69829/1 accepted/tizen/common/20160517.174302 accepted/tizen/ivi/20160518.003747 accepted/tizen/mobile/20160518.003726 accepted/tizen/tv/20160518.003738 accepted/tizen/wearable/20160518.003731 submit/tizen/20160517.061946
jooseong lee [Tue, 17 May 2016 02:59:20 +0000 (11:59 +0900)]
Change a user/group from root to security_fw for root minimization

Change-Id: Iaf52426877f065f4e2f80510fbd5163572b1750c
Signed-off-by: jooseong lee <jooseong.lee@samsung.com>
8 years agoFix a typo in auth-fw.service 28/69828/1
jooseong lee [Tue, 17 May 2016 02:39:45 +0000 (11:39 +0900)]
Fix a typo in auth-fw.service

Change-Id: I3dc97ef1f95311877a033f0cc6241395d11f06fe
Signed-off-by: jooseong lee <jooseong.lee@samsung.com>
8 years agoUpdate auth-passwd and auth-passwd-admin header 94/64594/4
jooseong lee [Mon, 4 Apr 2016 05:19:51 +0000 (14:19 +0900)]
Update auth-passwd and auth-passwd-admin header

Change-Id: I3722c3a346d71d2d09962ff0ea5d3f0798bb14e8
Signed-off-by: jooseong lee <jooseong.lee@samsung.com>
8 years agoApply on-demand activation 36/63336/3 accepted/tizen/common/20160323.185308 accepted/tizen/ivi/20160323.140846 accepted/tizen/mobile/20160323.135506 accepted/tizen/tv/20160323.135736 accepted/tizen/wearable/20160323.135503 submit/tizen/20160323.090454
jooseong.lee [Wed, 23 Mar 2016 08:05:14 +0000 (17:05 +0900)]
Apply on-demand activation

Change-Id: I3e098348ea78086c9a90b6eb0977c35465ba913c
Signed-off-by: jooseong.lee <jooseong.lee@samsung.com>
8 years agoCoding style check/fixed with cpplint_tizen.py 28/62328/1
Kyungwook Tak [Tue, 15 Mar 2016 11:16:43 +0000 (20:16 +0900)]
Coding style check/fixed with cpplint_tizen.py

Checker/Guide in http://10.113.136.204/confluence/pages/viewpage.action?pageId=44567756

Member function definitions in headers are checked as brace-breaking or not in some cases
They are checked by ID [M10][SPC_M_SEP] 'Space' category.
Anyway this patch follows cpplint_tizen.py checker and 0 item defected.

Change-Id: I19fbddbaf5792f8949db3232497354540bfd73a4
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoCommon library visibility to hidden 34/62134/3 accepted/tizen/common/20160315.221655 accepted/tizen/ivi/20160315.123126 accepted/tizen/mobile/20160315.123016 accepted/tizen/tv/20160315.123040 accepted/tizen/wearable/20160315.123106 submit/tizen/20160315.072709
Kyungwook Tak [Mon, 14 Mar 2016 12:45:34 +0000 (21:45 +0900)]
Common library visibility to hidden

Change-Id: I731f3d59c15cc85f1b42f01a0567c279836733fd
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoUse errnoToString instead of strerror 30/62130/1
Kyungwook Tak [Mon, 14 Mar 2016 12:08:00 +0000 (21:08 +0900)]
Use errnoToString instead of strerror

Change-Id: I244e70b9f6dbcbc580b071c408c3531f8c0ffa22
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoHotfix: build error fix on emul64 by sign-compare warning 00/62100/1 accepted/tizen/common/20160315.074317 accepted/tizen/ivi/20160314.100649 accepted/tizen/mobile/20160314.100557 accepted/tizen/tv/20160314.100615 accepted/tizen/wearable/20160314.100636 submit/tizen/20160314.094033
Kyungwook Tak [Mon, 14 Mar 2016 09:32:00 +0000 (18:32 +0900)]
Hotfix: build error fix on emul64 by sign-compare warning

Change-Id: I7e34b3e278db8d1da6f6949e0438a52030262e7d
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoChange sbin dir from TZ_SYS_SBIN to /sbin 89/62089/1 submit/tizen/20160314.085839
Kyungwook Tak [Mon, 14 Mar 2016 08:36:44 +0000 (17:36 +0900)]
Change sbin dir from TZ_SYS_SBIN to /sbin

To use TZ_SYS_SBIN/ldconfig makes image creation failure

Change-Id: I809d00d82837c9134d4029d306735fd43d40b5c2
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoChange forbidden password data struct to std::set 02/61602/1
Kyungwook Tak [Wed, 9 Mar 2016 06:20:11 +0000 (15:20 +0900)]
Change forbidden password data struct to std::set

Change-Id: I738984b9ea76511f5a258d44755fe870b8fe666e
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoMake Policy Serializable 01/61601/1
Kyungwook Tak [Wed, 9 Mar 2016 05:51:41 +0000 (14:51 +0900)]
Make Policy Serializable

Change-Id: I7b95ec379243460802e1c36594b58671edeffd8b
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoMove auth_password_policy to AuthPasswd namespace 93/61593/2
Kyungwook Tak [Wed, 9 Mar 2016 05:19:37 +0000 (14:19 +0900)]
Move auth_password_policy to AuthPasswd namespace

Change-Id: I82725177a1c9f5e9a25e9a9c0f472075091adfc1
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoAdhere C naming style to admin C APIs 21/61521/1 accepted/tizen/common/20160310.080636 accepted/tizen/ivi/20160310.053508 accepted/tizen/mobile/20160310.053407 accepted/tizen/tv/20160310.053430 accepted/tizen/wearable/20160310.053445 submit/tizen/20160309.030347
Kyungwook Tak [Tue, 8 Mar 2016 11:13:04 +0000 (20:13 +0900)]
Adhere C naming style to admin C APIs

Change-Id: Ie4274f9560377d743aeab6d9c5c324a526572288
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoChange service name to auth-fw 09/61509/2
Kyungwook Tak [Tue, 8 Mar 2016 09:36:32 +0000 (18:36 +0900)]
Change service name to auth-fw

Change-Id: I2aad3af2d69b10059339c137bc46a9bf5dfd39ec
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoRemove const specifier on call-by-value params 38/60338/4
Kyungwook Tak [Thu, 25 Feb 2016 06:46:03 +0000 (15:46 +0900)]
Remove const specifier on call-by-value params

Change-Id: I6c803f31a134223f62b4234d6cec9375acdb8193
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoUse useful macros and define common variables 36/60336/3
Kyungwook Tak [Thu, 25 Feb 2016 04:55:25 +0000 (13:55 +0900)]
Use useful macros and define common variables

Change-Id: I106b812eef2540ce77fe707a0c998d55ccf51538
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoFix group according to tizen wiki guidelines 35/60335/4
Kyungwook Tak [Thu, 25 Feb 2016 04:39:54 +0000 (13:39 +0900)]
Fix group according to tizen wiki guidelines

Refered https://wiki.tizen.org/wiki/Packaging/Guidelines#Group_Tag

Change-Id: I26d1a651ffaab364421a5fa97af8aa7d8af93142
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoRemove unused defined variables 34/60334/4
Kyungwook Tak [Thu, 25 Feb 2016 04:37:55 +0000 (13:37 +0900)]
Remove unused defined variables

Change-Id: I41edb3f9292038c5033b51720a4f2f7eb3a3d572
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoFix typo in socket file 90/61290/1
Kyungwook Tak [Mon, 7 Mar 2016 07:42:39 +0000 (16:42 +0900)]
Fix typo in socket file

Change-Id: I273ed2a3c7d646ae461d3fca10d0a2b4ce716614
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoFix serialize/deserialize order sync for reset API 89/61289/1
Kyungwook Tak [Mon, 7 Mar 2016 07:42:20 +0000 (16:42 +0900)]
Fix serialize/deserialize order sync for reset API

Change-Id: Ie1a5c9f9bc8ea216074a9a0d80d9a519cd1d3539
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoFix to be built on 64bit arch 48/61248/1 accepted/tizen/common/20160308.142125 accepted/tizen/ivi/20160307.105534 accepted/tizen/mobile/20160307.105442 accepted/tizen/tv/20160307.105458 accepted/tizen/wearable/20160307.105522 submit/tizen/20160307.045415
Kyungwook Tak [Mon, 7 Mar 2016 04:15:24 +0000 (13:15 +0900)]
Fix to be built on 64bit arch

Change-Id: Ie2fd989e61c5954cf82c39025d3c15a583795fca
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoUse strncpy instead of strcpy 34/61234/1 submit/tizen/20160307.021602
Kyungwook Tak [Mon, 7 Mar 2016 02:11:54 +0000 (11:11 +0900)]
Use strncpy instead of strcpy

Change-Id: Iac8464acc32bc4e564b5ff5851cdaba5c16de047
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoImplement-password-policy-management 91/60791/4
jooseong.lee [Wed, 2 Mar 2016 08:18:43 +0000 (17:18 +0900)]
Implement-password-policy-management

Change-Id: I4d3e47e9196efdc7cd185e7abc2d1668626b0aa0
Signed-off-by: jooseong.lee <jooseong.lee@samsung.com>
8 years agoAdd gitignore file 23/60323/1
Kyungwook Tak [Thu, 25 Feb 2016 04:28:41 +0000 (13:28 +0900)]
Add gitignore file

Change-Id: I029c90903f59fd903d2ca7daeb088fe086618d4c
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoImplement authentication service 40/59840/2
jooseong.lee [Fri, 19 Feb 2016 02:56:25 +0000 (11:56 +0900)]
Implement authentication service

* Authentication-server (password check/set/recovery)
* Authentication-server-admin (password reset)
* Authenticate each user via password

Change-Id: I8c524fe1bce8df4aa68c0ca28f2c19f96e8bb6fb
Signed-off-by: jooseong.lee <jooseong.lee@samsung.com>
8 years agoInitial empty repository master submit/trunk/20190812.110839
seonil kim [Thu, 14 Jan 2016 02:40:23 +0000 (18:40 -0800)]
Initial empty repository