platform/core/security/askuser.git
6 years agoChange visibility to hidden for client API 97/137397/2
Piotr Sawicki [Wed, 5 Jul 2017 06:45:51 +0000 (08:45 +0200)]
Change visibility to hidden for client API

Change-Id: Icf6acc6bbd2c5195f3ed1d750ab01d66668a6d78

6 years agoMove protocol to ipc-lib 21/136221/20
Piotr Sawicki [Wed, 28 Jun 2017 14:06:22 +0000 (16:06 +0200)]
Move protocol to ipc-lib

Change-Id: I42f4b1f3f8b28f7f1da52a281984e27e49768130

6 years agoAdd a skeleton of CAPI 05/135805/22
Piotr Sawicki [Mon, 26 Jun 2017 14:12:49 +0000 (16:12 +0200)]
Add a skeleton of CAPI

Change-Id: I0dc73a7f1169f7857804a11c8a9a76c5a468959d

6 years agoAdd a skeleton of client API implementation 04/135804/13
Piotr Sawicki [Thu, 22 Jun 2017 11:53:56 +0000 (13:53 +0200)]
Add a skeleton of client API implementation

Change-Id: I067a35ae6b712c7f67076e30a29efdbf0ced6d79

6 years agoMove policy to commons library 91/136891/2
Zofia Abramowska [Mon, 3 Jul 2017 09:09:34 +0000 (11:09 +0200)]
Move policy to commons library

* bring back commons library and rpm
* move Policy and PkgInfo to commons

Change-Id: Ic5e5c1f4ffc642e09100ac3f7a3cb6dc2d7db0d4

6 years agoCheck if popup should be shown 69/135969/3
Zofia Abramowska [Fri, 30 Jun 2017 16:32:12 +0000 (18:32 +0200)]
Check if popup should be shown

Application can use askuser-notification API to show user
popup requesting permission to privilege. These popups have
high priority and abusing this API might make system unusable.
This commit makes askuser-notification check if policy for
application is not yet set (is not "Allow" or "Deny"). Only then
requested popup is shown.

Change-Id: Ibc9696bea24831f77c1ca71314122dca0b52798f

6 years agoRedo askuser-notification 39/135939/4
Zofia Abramowska [Fri, 23 Jun 2017 18:09:07 +0000 (20:09 +0200)]
Redo askuser-notification

* Remove redundant event/element ids
* Move PolicyUpdater to askuser-notification
* Implement new logic of askuser-notification

Change-Id: I32f104f20bcb640f00e05c6edfc140786e73c2de

6 years agoMerge spec files 96/135796/2
Zofia Abramowska [Thu, 22 Jun 2017 12:22:05 +0000 (14:22 +0200)]
Merge spec files

Separate spec files are no longer needed

Change-Id: Icb2d0a15d55b034cb816c57791521fd5b82d29d6

6 years agoMove daemon sources higher in source tree 92/135492/3
Zofia Abramowska [Thu, 22 Jun 2017 12:05:06 +0000 (14:05 +0200)]
Move daemon sources higher in source tree

Askuser-notification is no longer a part of askuser agent.

Change-Id: Ib01f37ae9875f4ac034bac52aeeb115c36c7e50c

6 years agoRemove building of unnecessary components 00/135300/3
Zofia Abramowska [Thu, 22 Jun 2017 11:58:05 +0000 (13:58 +0200)]
Remove building of unnecessary components

Remove:
* askuser agent
* askuser privacy plugins
* askuser client plugin
* askuser commons

Change-Id: I4f9e0e768be6e2ea46aa830bb9a9da101ed326bc

6 years agoSimplify service plugin 99/135299/2
Zofia Abramowska [Wed, 21 Jun 2017 16:31:00 +0000 (18:31 +0200)]
Simplify service plugin

Service side plugin supports Ask user policy and translates
it to DENY.

Change-Id: If9a8601e18da68d59b116a2b5d8f6f0872748a4e

6 years agoUpdate service side to new requirements 97/135297/2
Zofia Abramowska [Wed, 21 Jun 2017 14:38:59 +0000 (16:38 +0200)]
Update service side to new requirements

* No more toasts - remove datagram socket
* Popup request passes only privilege as argument
* Add credentials to service callbacks

Change-Id: I86ef7253490dcd2c063943f9225dacc6b0f626bc

7 years agoFix possible use after free 44/123144/1 submit/tizen/20170405.143506
Zofia Abramowska [Tue, 4 Apr 2017 15:40:07 +0000 (17:40 +0200)]
Fix possible use after free

Change-Id: Ia146fbf57bb2bad47b931212da3224a687590ca9

7 years agoHandle exceptions from popup/toast creation 43/123143/1
Zofia Abramowska [Tue, 4 Apr 2017 15:36:34 +0000 (17:36 +0200)]
Handle exceptions from popup/toast creation

Return error when creating popup/toast fails

Change-Id: Ica628d41e23707d485ecf40a2f45d0d12c6da85f

7 years agoFix hw key handler segfault 41/123141/2
Zofia Abramowska [Tue, 4 Apr 2017 15:09:09 +0000 (17:09 +0200)]
Fix hw key handler segfault

Hardware key can be intercepted when no popup is visible

Change-Id: I0c3b562962393d2297aecdedb655811b81be4be8

7 years agoMerge "Fix hw key handling bug" into tizen
Rafal Krypa [Tue, 4 Apr 2017 13:41:39 +0000 (06:41 -0700)]
Merge "Fix hw key handling bug" into tizen

7 years agoMerge "Add ASKUSER_NONE response to libaskuser-notification" into tizen
Rafal Krypa [Tue, 4 Apr 2017 13:41:12 +0000 (06:41 -0700)]
Merge "Add ASKUSER_NONE response to libaskuser-notification" into tizen

7 years agoFix hw key handling bug 90/123090/6
Yunjin Lee [Tue, 4 Apr 2017 10:38:12 +0000 (19:38 +0900)]
Fix hw key handling bug

- hwKeyClickedCb passed meaningless value to response handler
- remove meaningless class member m_currentElementId and replace it to m_elementPtr->getId() to handle h/w input properly
- fix passed response type to NResponse::None

Change-Id: I7ff41bcea76b27aa4e2d295ccb63cbd62df89b8a
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
7 years agoAdd ASKUSER_NONE response to libaskuser-notification 12/123112/1
Zofia Abramowska [Tue, 4 Apr 2017 11:57:15 +0000 (13:57 +0200)]
Add ASKUSER_NONE response to libaskuser-notification

H/W key pressed will generate ASKUSER_NONE response
instead of ASKUSER_DENY_ONCE

Change-Id: I268f7b1573dad56279f733e5f562762df2a769d1

7 years agoUpdate message strings and language files 33/122933/6
Yunjin Lee [Tue, 4 Apr 2017 04:29:00 +0000 (13:29 +0900)]
Update message strings and language files

Change-Id: If25b2b597d2a05740e043cb2527ea164bd6b1305
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
7 years agoRename libaskuser-notification-ipc to libaskuser-notification 61/122861/2
Rafal Krypa [Mon, 3 Apr 2017 21:27:30 +0000 (23:27 +0200)]
Rename libaskuser-notification-ipc to libaskuser-notification

Keep the names simple. The CMake name conflict can be avoided.
Additionally fixed some coupling:
- don't include local copy of procotocol headers in plugin and agent code
- do a pkg-config module check on libaskuser-notification in plugin CMake

Change-Id: I539fe5a5325ac45575d2a19de0c9e39aeae5bca0
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
7 years agoPackaging refactoring 60/122860/2
Rafal Krypa [Mon, 3 Apr 2017 19:18:44 +0000 (21:18 +0200)]
Packaging refactoring

Fix broken package separation between askuser and askuser-notification:
- Build askuser-notification-ipc together with askuser-notification, not
  askuser. This breaks a dependency cycly: askuser -> security-manager ->
  askuser-notificattion-ipc -> askuser
- Move askuser-notification-test to a separate package, breaking another cycle
- Put all Cynara plugins in single package, don't split them
- Don't keep the same manifest file in separate copies
- Adapt package names to RPM convention

Change-Id: If814da04e65f02d0292e9e9b206629b4774bdb69
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
7 years agoMerge "Add build dependency for libaskuser-notification to askuser" into tizen
Rafal Krypa [Mon, 3 Apr 2017 19:04:54 +0000 (12:04 -0700)]
Merge "Add build dependency for libaskuser-notification to askuser" into tizen

7 years agoTrigger toast messages in cynara PrivacyPlugin, once per session 59/122859/1
Rafal Krypa [Mon, 3 Apr 2017 19:00:34 +0000 (21:00 +0200)]
Trigger toast messages in cynara PrivacyPlugin, once per session

Toast messages will be generated from server side cynara plugin. The answer
is then cached on client as long as the session parameter of cynara check
is unchanged. When client performs a check with changes session argument,
the cached value will be discarded, client will send check request to cynara
service again, triggering another pop-up.

Change-Id: I28d2eb43bdbf54362c9088dfb1405016a4bd271a
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
7 years agoChange implementation of string splitting to support zero-length components 32/122832/2
Rafal Krypa [Mon, 3 Apr 2017 10:56:58 +0000 (12:56 +0200)]
Change implementation of string splitting to support zero-length components

Previous code responsible from splitting a space-separated string used
stringstream for this purpose. If one of the components used to create such
string was empty, it resulted in two consecutive spaces that were "swallowed"
by stringstream.

Now the string is parsed using std::string::find method to manually detect
locations of delimiting spaces and cut the string to pieces.

Change-Id: I2aa964716f0d41f13807bbef5c8aab6c55715a34
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
7 years agoAdd build dependency for libaskuser-notification to askuser 58/122858/1
Rafal Krypa [Mon, 3 Apr 2017 18:39:21 +0000 (20:39 +0200)]
Add build dependency for libaskuser-notification to askuser

Although askuser doesn't need libaskuser-notification for now, it build
depends on libsecurity-manager-client, which is linked against
libaskuser-notification.
Such dependency should be resolved automatically by gbs, but it's not for
some reason. Probably gbs doesn't handle too well dependencies between
two spec files built from single repository.

Adding this dependency manually. It will be need anyway soon, when askuser
original functionality is restored for run-time pop-ups.

Change-Id: Ief4084d90094070e609d21575aee246acb747f4a
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
7 years agoFix privilege info 03/122503/9
Zofia Abramowska [Sun, 2 Apr 2017 12:50:26 +0000 (14:50 +0200)]
Fix privilege info

* Fix possible incorrect memory access (use after free)
* Don't throw when privilege_info fails, return input parameter
instead (behave like dgettext)

Change-Id: Ia3ef07e06282a88c39d9a6dd98644f5bbda40dc9

7 years agoSwitch to new implementation 90/122490/13
Zofia Abramowska [Fri, 31 Mar 2017 19:48:50 +0000 (21:48 +0200)]
Switch to new implementation

Remove unused AskUserTalker and GuiRunner.
Switch to Logic class in main.

Change-Id: I7b109c2bbcc6253b845b3d51ecbc702c4b8b0d9d

7 years agoImplement logic 10/122210/17
Zofia Abramowska [Mon, 3 Apr 2017 17:51:22 +0000 (19:51 +0200)]
Implement logic

Implement whole logic of new askuser-notification.

Change-Id: I9d8f2df3530c1607020ee058028617e3c6f92800

7 years agoImplement ServiceCallbacks 08/122208/16
Zofia Abramowska [Thu, 30 Mar 2017 13:05:10 +0000 (15:05 +0200)]
Implement ServiceCallbacks

Add implemenation of ServiceCallbacks for handling
client requests.

Change-Id: I7fd1bde8bfc9f2ba3d630375aadfdcf16028effc

7 years agoAdd UI request Events 07/122207/16
Zofia Abramowska [Thu, 30 Mar 2017 13:03:26 +0000 (15:03 +0200)]
Add UI request Events

Add classes processing libaskuser-notification UI requests.

Change-Id: I983e85daafc0dc649db2a84d52f4072673fb1606

7 years agoAdd UI controller class 06/122206/15
Zofia Abramowska [Thu, 30 Mar 2017 13:02:51 +0000 (15:02 +0200)]
Add UI controller class

Add popupper class responsible for creating proper popups and toast,
destroying them and listening on UI events

Change-Id: I2cee78ac35108b31d36c77d0c70d5ea8a9b71f02

7 years agoAdd answerable interface for popups 09/122209/11
Zofia Abramowska [Mon, 3 Apr 2017 17:44:56 +0000 (19:44 +0200)]
Add answerable interface for popups

Add class for evaluating answers from popups (with buttons
and with or without checkbox).

Change-Id: I88cdf10ede966a8de1510284432b8563abc1e180

7 years agoAdd popups/toast implementation 04/122204/10
Zofia Abramowska [Thu, 30 Mar 2017 13:01:41 +0000 (15:01 +0200)]
Add popups/toast implementation

Add classes to separate popup creation.
Add implementation for old check popup and new launch popup.
Use libnotification to display toasts.

Change-Id: I109edbd1e0c2ea5311fe1b1d04861ed48991868b

7 years agoAdd translation wrapper 05/122205/10
Zofia Abramowska [Thu, 30 Mar 2017 13:02:20 +0000 (15:02 +0200)]
Add translation wrapper

Add classes wrapping po transaltion for popup messages

Change-Id: Icd4d360742231ffe18c8ca459f47aa9dc9a1bcb9

7 years agoAdd example translations for new popup/toast messages 03/122203/7
Zofia Abramowska [Thu, 30 Mar 2017 12:59:45 +0000 (14:59 +0200)]
Add example translations for new popup/toast messages

Add example translation for launch popup, launch toast
and deny toast in polish and english.

Change-Id: I9eca06aa661ffcaf2f70d173a1a520f1d9f7b0d0

7 years agoRemove redundant language setting 02/122202/7
Zofia Abramowska [Tue, 28 Mar 2017 17:11:26 +0000 (19:11 +0200)]
Remove redundant language setting

Change-Id: I2dc8e2b61133e7cb7a49ef972536f8e02668f54c

7 years agoMove PkgInfo to separate file 01/122201/7
Zofia Abramowska [Tue, 28 Mar 2017 17:11:13 +0000 (19:11 +0200)]
Move PkgInfo to separate file

PkgInfo will be used separately from Policy wrappers

Change-Id: I33cd2643b2f854f991a9db9bb98e809f009ed0e9

7 years agoFix errors in askuser-notification library 89/122489/13
Bartlomiej Grzelewski [Sun, 2 Apr 2017 12:15:47 +0000 (14:15 +0200)]
Fix errors in askuser-notification library

* Fix name conflict between askuser-notification service and
  askuser-notification library
* The datagram socket was marked as stream socket.
* The stream socket was marked as datagram socket.
* Change order of calls: updateFd and erase descriptor.
* Add stream socket and datagram socket to askuser-notification.service.

Change-Id: I05d097ba15f038a4f7e88c323ae8790fe7d3eb14

7 years agoDon't auto start askuser-notification daemon 30/122830/3
Rafal Krypa [Mon, 3 Apr 2017 13:14:16 +0000 (15:14 +0200)]
Don't auto start askuser-notification daemon

This service is socket activated. There is no need to start it automatically.

Change-Id: I4be0f5ddca3ff748610abf0717fbe9b9ccf0668e
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
7 years agoSet access mode of askuser-notification socket files to 0777 29/122829/2
Rafal Krypa [Mon, 3 Apr 2017 13:12:44 +0000 (15:12 +0200)]
Set access mode of askuser-notification socket files to 0777

The socket files are created in /run/user_ext/UID/ directory. It is accessible
to the owner (UID) and system_share group.
Allowing full access to the socket files will make them accessible to members
of system_share group. This is needed to allow access from the context of
cynara service daemon.

Change-Id: I61ad34bca03a87dc317d04b0a704b1d3bf892c5d
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
7 years agoFix receiving sockets from systemd in libaskuser-notification 48/122848/1
Rafal Krypa [Mon, 3 Apr 2017 15:10:02 +0000 (17:10 +0200)]
Fix receiving sockets from systemd in libaskuser-notification

The error was in setting listening=1 argument in sd_is_socket_unix().
We are serving both stream and datagram socket and listening is valind only
for stream sockets. This lead to not catching the datagram socket.

Change-Id: Ie10b289870e12a895a3d8799788f2da4379da06f
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
7 years agoFix building libaskuser-notification against libsystemd 28/122828/1
Rafal Krypa [Mon, 3 Apr 2017 12:41:13 +0000 (14:41 +0200)]
Fix building libaskuser-notification against libsystemd

NOTE: this fix works correctly when BUILD_WITH_SYSTEMD_DAEMON is set but
will fail to build if it's not set and systemd build dependencies are not
installed.

Such case is not cover for a simple reason - this flaw is already present
in several places of this project. It should be fixed in general way by
some other commit.

Change-Id: I422cedcc9f84faaf757a75a72c8a01e37bbe17b7
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
7 years agoUpdate systemd configuration 83/122483/2
Bartlomiej Grzelewski [Fri, 31 Mar 2017 14:54:16 +0000 (16:54 +0200)]
Update systemd configuration

Change-Id: I8f20ce296a0086f912b3d0d19427a6607447005c

7 years agoAdd ipc library to build and packaging process 81/122481/3
Dariusz Michaluk [Fri, 31 Mar 2017 08:36:05 +0000 (10:36 +0200)]
Add ipc library to build and packaging process

Change-Id: Ie698e594751c65a915d6f964a847b1c8485815e3

7 years agoAdd ipc library for ask-user 14/120914/11
Bartlomiej Grzelewski [Fri, 24 Mar 2017 16:30:07 +0000 (17:30 +0100)]
Add ipc library for ask-user

This library is used in communication between privacy denied
plugin/security manager and ask user service.

Change-Id: If9e71a3a716095eba8b909cc28d08a1853ba2951

7 years agoMake askuser-notification independent from cynara 87/121587/10
Dariusz Michaluk [Tue, 28 Mar 2017 07:44:40 +0000 (09:44 +0200)]
Make askuser-notification independent from cynara

Change-Id: Ia5e1d85eba1d007f01e2b926a4ac433f6f2b452d

7 years agoMake askuser-notification independent from security-manager 92/120892/11
Dariusz Michaluk [Fri, 24 Mar 2017 08:03:33 +0000 (09:03 +0100)]
Make askuser-notification independent from security-manager

Change-Id: I65ebc0780e0fe34770523d7db9dc1bee2bc7953b

7 years agoSplit askuser and askuser-notification to separate spec files 67/120667/9
Dariusz Michaluk [Thu, 23 Mar 2017 09:25:41 +0000 (10:25 +0100)]
Split askuser and askuser-notification to separate spec files

Change-Id: I9a1a46fcbb7840bd5f4208b8587acb42f8ac2de4

7 years agoPrivacyDenied plugin implementation 92/120392/9
Bartlomiej Grzelewski [Wed, 22 Mar 2017 14:16:07 +0000 (15:16 +0100)]
PrivacyDenied plugin implementation

Some tizen 2.4 applications are crashing while waiting
for popup answer. New plugins return answer immediately.

Change-Id: Idc11ad818ebdf404245e81d2e18cfe3c21c519d8

7 years agoFix installation of systemd unit files 31/122431/1
Bartlomiej Grzelewski [Fri, 31 Mar 2017 08:50:40 +0000 (10:50 +0200)]
Fix installation of systemd unit files

All service/socket files should be installed in directories
pointed by _unitdir and _unitdir_user values.

Change-Id: I483b514e6ac1c16cc1a7dfa677d6dfe21588e283

7 years agoRemove dependency between Ask User and DBUS 96/116696/2
Bartlomiej Grzelewski [Mon, 27 Feb 2017 14:52:59 +0000 (15:52 +0100)]
Remove dependency between Ask User and DBUS

Change-Id: Ifbaafc59a624e53e7f9b6680f6eecec5a8c3cd87

7 years agoVersion 0.1.13 55/119055/1 accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable accepted/tizen/common/20170315.124956 accepted/tizen/ivi/20170315.105511 accepted/tizen/mobile/20170315.105413 accepted/tizen/tv/20170315.105439 accepted/tizen/unified/20170315.105527 accepted/tizen/wearable/20170315.105454 submit/tizen/20170315.090201 tizen_4.0.m1_release
Yunjin Lee [Wed, 15 Mar 2017 08:59:06 +0000 (17:59 +0900)]
Version 0.1.13

changes:
Remove Profile Build Dependency: Do it at runtime

Change-Id: Ie2b32331ff9bbd10360454c4e84691bac7f7c4bf
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
7 years agoMerge "Remove Profile Build Dependency: Do it at runtime" into tizen
Kim Kidong [Wed, 15 Mar 2017 08:55:23 +0000 (01:55 -0700)]
Merge "Remove Profile Build Dependency: Do it at runtime" into tizen

7 years agoRemove Profile Build Dependency: Do it at runtime 09/116009/6
Yunjin Lee [Wed, 22 Feb 2017 09:57:06 +0000 (18:57 +0900)]
Remove Profile Build Dependency: Do it at runtime

- This is for Tizen 4.0.

  : Tizen 4.0 Configurability and Build Blocks require
    to remove all profile-depending build options in spec files.
  (No More profile macros)

- It is recommended to distinguish features/profiles at runtime.
 unless it incurs too much overhead, which requires you to
 create multiple binaries and subpackages.

Change-Id: I4cdc99aa36ad67da39e93ce494ce8d28930ea935
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
7 years agoRelease 0.1.12 57/118757/2 accepted/tizen/common/20170314.173054 accepted/tizen/ivi/20170314.075721 accepted/tizen/mobile/20170314.075634 accepted/tizen/tv/20170314.075652 accepted/tizen/unified/20170314.075743 accepted/tizen/wearable/20170314.075708 submit/tizen/20170314.055142
jin-gyu.kim [Tue, 14 Mar 2017 03:45:30 +0000 (12:45 +0900)]
Release 0.1.12

changes:
Remove systemctl enable command.
Handle H/W key input
Enable showing indicator when privacy popup is displayed
Check POLLIN revent before POLLHUP.
Support RTL language.

Change-Id: I4aee77702b798a4317f216522645620b7baf48cf

7 years agoMerge "Check POLLIN revent before POLLHUP." into tizen
jin-gyu.kim [Tue, 14 Mar 2017 01:34:47 +0000 (18:34 -0700)]
Merge "Check POLLIN revent before POLLHUP." into tizen

7 years agoSupport RTL language. 43/117143/4
jin-gyu.kim [Fri, 3 Mar 2017 03:58:42 +0000 (12:58 +0900)]
Support RTL language.

- Using 'elm_language_set' change the alignment for RTL automatically.

Change-Id: I0d5d962df0047de19d7352b0d785d0e6a60e6506

7 years agoCheck POLLIN revent before POLLHUP. 45/118445/1
jin-gyu.kim [Fri, 10 Mar 2017 10:28:59 +0000 (19:28 +0900)]
Check POLLIN revent before POLLHUP.

- Askuser does not work well with the emulator.
- This is due to that POLLHUP can be came in case of EOF.

Change-Id: If668886b050e07a8606e45fdd6d54cbb70ed2208

7 years agoEnable showing indicator when privacy popup is displayed 47/117047/1
Yunjin Lee [Thu, 2 Mar 2017 11:34:02 +0000 (20:34 +0900)]
Enable showing indicator when privacy popup is displayed

Change-Id: Iba989036e94638d62147e025b868a1ba42f2d01c
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
7 years agoHandle H/W key input 60/115260/5
Yunjin Lee [Fri, 17 Feb 2017 05:54:14 +0000 (14:54 +0900)]
Handle H/W key input

- Respond as if user select "Deny once" when H/W Home key or Back key pressed.

Change-Id: I9719981e962d54394060c5cce72b6cc50809627c
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
7 years agoRemove systemctl enable command. 18/116218/2
jin-gyu.kim [Thu, 23 Feb 2017 10:01:21 +0000 (19:01 +0900)]
Remove systemctl enable command.

- "/etc/systemd/system" points "/opt/etc/systemd/system".
- It is RW file system, but service file only should be in RO.
- Also all other service files are in ${_unitdir}.
- Therefore remove systemctl enable, add link manually.

Change-Id: Ibf2de46ff211c610df8042c3f1c12ea030d5b853

7 years agoRelease 0.1.11 45/115445/1 accepted/tizen/common/20170220.144204 accepted/tizen/ivi/20170220.223111 accepted/tizen/mobile/20170220.223011 accepted/tizen/tv/20170220.223024 accepted/tizen/unified/20170309.033409 accepted/tizen/wearable/20170220.223038 submit/tizen/20170220.042404 submit/tizen_unified/20170308.100408
jin-gyu.kim [Mon, 20 Feb 2017 04:13:43 +0000 (13:13 +0900)]
Release 0.1.11

changes:
Set the privacy popup to have the utmost window priority.

Change-Id: I5ee8e984a3fe7e5f93b2ee6d55701a280e304c57

7 years agoSet the privacy popup to have the utmost window priority. 37/115437/1 submit/tizen/20170220.034519
jin-gyu.kim [Mon, 20 Feb 2017 03:33:43 +0000 (12:33 +0900)]
Set the privacy popup to have the utmost window priority.

Change-Id: I4cd7765084dd542412722be47ba7f0e127152af9

7 years agoRelease 0.1.10 99/114399/1 accepted/tizen/common/20170213.174642 accepted/tizen/ivi/20170214.010338 accepted/tizen/mobile/20170214.010200 accepted/tizen/tv/20170214.010227 accepted/tizen/wearable/20170214.010256 submit/tizen/20170213.090747
jin-gyu.kim [Mon, 13 Feb 2017 08:21:51 +0000 (17:21 +0900)]
Release 0.1.10

changes:
Adjust window level for askuser popup.
Support rotation changes.

Change-Id: Ied7c699e1589eefc6cfe183d718a4c1604c57288

7 years agoSupport rotation changes 98/114298/4
Yunjin Lee [Mon, 13 Feb 2017 01:43:29 +0000 (10:43 +0900)]
Support rotation changes

Change-Id: Iee413843a238779f37ee21177ddc46b380212d31
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
7 years agoAdjust window level for askuser popup. 29/114129/1
jin-gyu.kim [Fri, 10 Feb 2017 05:54:18 +0000 (14:54 +0900)]
Adjust window level for askuser popup.

- askuser popup is displayed on the lockscreen.
- We don't want to corrupt the lockscreen, so adjust window level.

Change-Id: I9b685b7a233da8b539da38a9b59db9179403b70a

7 years agoRelease 0.1.9 70/110970/2 accepted/tizen/common/20170119.171844 accepted/tizen/ivi/20170119.222602 accepted/tizen/mobile/20170119.222543 accepted/tizen/tv/20170119.222551 accepted/tizen/wearable/20170119.222556 submit/tizen/20170119.060252
Yunjin Lee [Thu, 19 Jan 2017 05:10:18 +0000 (14:10 +0900)]
Release 0.1.9

changes:
Modify privacy request popup to get utmost window priority

Change-Id: Id919adc741b61f990ccb6516dc669d8f06f162e6
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
7 years agoModify privacy request popup to get utmost window priority 66/110966/1
Yunjin Lee [Thu, 19 Jan 2017 04:45:29 +0000 (13:45 +0900)]
Modify privacy request popup to get utmost window priority

Change-Id: Ic9608f1a86f1d8393921f8ad2a5389e2a441d907
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
7 years agoMerge "Release 0.1.8" into tizen accepted/tizen/common/20170116.181546 accepted/tizen/ivi/20170116.090319 accepted/tizen/mobile/20170116.090226 accepted/tizen/tv/20170116.090244 accepted/tizen/wearable/20170116.090301 submit/tizen/20170116.054522
Kim Kidong [Mon, 16 Jan 2017 05:22:11 +0000 (21:22 -0800)]
Merge "Release 0.1.8" into tizen

7 years agoRelease 0.1.8 56/110356/1
jin-gyu.kim [Mon, 16 Jan 2017 05:17:10 +0000 (14:17 +0900)]
Release 0.1.8

change:
Fix bad if condition in spec file.
Change askuser to non-root daemon.

Change-Id: Ibd96791852b2f89237f15b57f98a94c633996343

7 years agoRelease 0.1.8
jin-gyu.kim [Mon, 16 Jan 2017 05:17:10 +0000 (14:17 +0900)]
Release 0.1.8

change :
Fix bad if condition in spec file.
Change askuser to non-root daemon.

Change-Id: Ibd96791852b2f89237f15b57f98a94c633996343

7 years agoMerge "Change askuser to non-root daemon." into tizen
Kim Kidong [Mon, 16 Jan 2017 05:09:45 +0000 (21:09 -0800)]
Merge "Change askuser to non-root daemon." into tizen

7 years agoChange askuser to non-root daemon. 60/109960/1
jin-gyu.kim [Wed, 4 Jan 2017 05:36:12 +0000 (14:36 +0900)]
Change askuser to non-root daemon.

- Use '/run/user_ext' for askuser-notification.socket
- Set uid and gid for askuser service.

Change-Id: If709f1e5d5e20e9a3863bed6ee54a12b23d074a7

7 years agoFix bad if condition in spec file. 97/109597/1
jin-gyu.kim [Wed, 11 Jan 2017 01:31:50 +0000 (10:31 +0900)]
Fix bad if condition in spec file.

- Add quotation marks in if condition to avoid build error.

Change-Id: I7dda0b8e14c4f5a6d0a8ef616726c30e02269377

7 years agoRelease 0.1.7 15/104815/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.141650 accepted/tizen/3.0.m2/tv/20170104.142112 accepted/tizen/3.0.m2/wearable/20170104.142404 accepted/tizen/3.0/common/20161215.163856 accepted/tizen/3.0/ivi/20161215.045127 accepted/tizen/3.0/mobile/20161215.045031 accepted/tizen/3.0/tv/20161215.045044 accepted/tizen/3.0/wearable/20161215.045056 accepted/tizen/common/20161214.160948 accepted/tizen/ivi/20161215.073216 accepted/tizen/mobile/20161215.072810 accepted/tizen/tv/20161215.072844 accepted/tizen/wearable/20161215.072902 submit/tizen/20161214.103013 submit/tizen_3.0.m2/20170104.093751 submit/tizen_3.0/20161214.090930
jin-gyu.kim [Wed, 14 Dec 2016 10:23:57 +0000 (19:23 +0900)]
Release 0.1.7

change:
Add missing break in switch case
Do not use the vulnerable function

Change-Id: Ib12e239336edfc2c04a455f61ac8cb60f99f5cae

7 years agoMerge "Add missing break in switch case" into tizen
Tomasz Swierczek [Wed, 14 Dec 2016 10:19:40 +0000 (02:19 -0800)]
Merge "Add missing break in switch case" into tizen

7 years agoMerge "Do not use the vulnerable function." into tizen
Tomasz Swierczek [Wed, 14 Dec 2016 10:18:23 +0000 (02:18 -0800)]
Merge "Do not use the vulnerable function." into tizen

7 years agoAdd missing break in switch case 85/104685/1
jin-gyu.kim [Wed, 14 Dec 2016 05:58:23 +0000 (14:58 +0900)]
Add missing break in switch case

Change-Id: I7c79f834aa16548868d28594ef6f15149295e11a

7 years agoRelease 0.1.6 62/104662/1 accepted/tizen/3.0/common/20161214.074632 accepted/tizen/3.0/ivi/20161214.070838 accepted/tizen/3.0/mobile/20161214.070801 accepted/tizen/3.0/tv/20161214.070812 accepted/tizen/3.0/wearable/20161214.070818 accepted/tizen/common/20161214.160827 accepted/tizen/ivi/20161214.085716 accepted/tizen/mobile/20161214.085625 accepted/tizen/tv/20161214.085648 accepted/tizen/wearable/20161214.085657 submit/tizen/20161214.045057 submit/tizen_3.0/20161214.045158
jooseong lee [Wed, 14 Dec 2016 04:47:42 +0000 (13:47 +0900)]
Release 0.1.6

change:
 Fix typo and remove old changlog

Change-Id: I1b9166d72a0aa5213f044bcd4790636880c353db
Signed-off-by: jooseong lee <jooseong.lee@samsung.com>
7 years agoFix typo and remove old changlog 59/104659/1
jooseong lee [Wed, 14 Dec 2016 04:44:49 +0000 (13:44 +0900)]
Fix typo and remove old changlog

Change-Id: I71cb5e90326470b40459827aec6b5b2531241d7e
Signed-off-by: jooseong lee <jooseong.lee@samsung.com>
7 years agoRelease 0.1.5 42/104642/1 submit/tizen/20161214.030042 submit/tizen_3.0/20161214.025951
jooseong lee [Wed, 14 Dec 2016 02:55:25 +0000 (11:55 +0900)]
Release 0.1.5

Change-Id: Iabb222e9960757daf60ce386a6747a2fceb6e710
Signed-off-by: jooseong lee <jooseong.lee@samsung.com>
7 years agoSend policy updates independently from askuser agent 73/104573/5
Zofia Abramowska [Tue, 13 Dec 2016 16:27:19 +0000 (17:27 +0100)]
Send policy updates independently from askuser agent

Move policy update to other thread so it doesn't block
other agent requests.

Change-Id: I0b9187b63fe7960c979379737decd521b8fd7eaf

7 years agoDo not use the vulnerable function. 84/104284/2
jin-gyu.kim [Tue, 13 Dec 2016 04:07:11 +0000 (13:07 +0900)]
Do not use the vulnerable function.

- Replace strerror to strerror_r.

Change-Id: I8a9b6040a91471e59024a25f9b07599e776f5cf3

7 years agoSet pkg_label also in case of hybrid applications 97/103797/4
Krzysztof Jackiewicz [Fri, 9 Dec 2016 11:57:54 +0000 (12:57 +0100)]
Set pkg_label also in case of hybrid applications

Change-Id: I3386cf55b0d83a5eeb15a5ff19b056f4d7fc2937

7 years agoDelete window before reinitialization 72/103872/3
Zofia Abramowska [Fri, 9 Dec 2016 13:48:42 +0000 (14:48 +0100)]
Delete window before reinitialization

Additionally:
* Remove dismiss descriptors inside ecore loop
* Properly iterate over loop before exit

Change-Id: I0c5b16498dbf904db8c649623a2e3d98989a3462

7 years agoApply on-demand activation on askuser-notification service 49/103449/3
jooseong lee [Thu, 8 Dec 2016 10:07:39 +0000 (19:07 +0900)]
Apply on-demand activation on askuser-notification service

Temporary fix for continuous memory consumption :
Put askuser-notification to sleep when idle for over 1sec.

Change-Id: I2245ac741de230b121869f9984fa03d8a76dcf14
Signed-off-by: jooseong lee <jooseong.lee@samsung.com>
7 years agoSet window level for the case several popups are launched at the same time 32/102732/1 accepted/tizen/3.0/common/20161207.194805 accepted/tizen/3.0/ivi/20161207.013314 accepted/tizen/3.0/mobile/20161207.013215 accepted/tizen/3.0/tv/20161207.013233 accepted/tizen/3.0/wearable/20161207.013254 accepted/tizen/common/20161206.131811 accepted/tizen/ivi/20161207.030345 accepted/tizen/mobile/20161207.030251 accepted/tizen/tv/20161207.030309 accepted/tizen/wearable/20161207.030326 submit/tizen/20161206.113322 submit/tizen_3.0/20161206.113810
Yunjin Lee [Tue, 6 Dec 2016 10:38:29 +0000 (19:38 +0900)]
Set window level for the case several popups are launched at the same time

Change-Id: I4961c149e84ba369e3983326aeadd631d171ac4d
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
7 years agoApply layout on mobile ui 61/102561/1
Yunjin Lee [Tue, 6 Dec 2016 06:00:08 +0000 (15:00 +0900)]
Apply layout on mobile ui

Change-Id: Ib7eb8769d3011008128d54920c0de6344164fd37
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
7 years agoModify identifyApp to get both appid and pkglabel for display 80/102180/2 accepted/tizen/3.0/common/20161206.125312 accepted/tizen/3.0/ivi/20161205.234435 accepted/tizen/3.0/mobile/20161205.234250 accepted/tizen/3.0/tv/20161205.234341 accepted/tizen/3.0/wearable/20161205.234407 submit/tizen_3.0/20161205.022357
Yunjin Lee [Mon, 5 Dec 2016 07:01:25 +0000 (16:01 +0900)]
Modify identifyApp to get both appid and pkglabel for display

Change-Id: Id23279085b3df45587ad7d4b591949181187f78b
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
7 years agoModify ui and add language files 17/101817/4
Yunjin Lee [Fri, 2 Dec 2016 07:38:05 +0000 (16:38 +0900)]
Modify ui and add language files

- modify to get package label and privacy name instead of appid and privilege name
- add language files to support multi lang

Change-Id: Iefc6169c42e8a2fae7140cedcfc358ef492aa926
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
7 years agoAdd ui for wearable 29/101629/2
Zofia Abramowska [Thu, 1 Dec 2016 17:12:48 +0000 (18:12 +0100)]
Add ui for wearable

* Switch between mobile and wearable profiles
* Add icons and edc file
* Create different popup for wearable profile
* Display appId/main appId instead of smack label

Change-Id: I4fa609959525fc77f75d2b6fb7d5f39413e19006

7 years agoFix askuser tools 28/101628/2
Zofia Abramowska [Thu, 1 Dec 2016 14:51:38 +0000 (15:51 +0100)]
Fix askuser tools

Change-Id: I5095eb0bfd76912f86963a3f89b655b425119830

7 years agoDisable NoNewPrivileges due to lack of support in wearable kernel 06/101506/4
Krzysztof Jackiewicz [Thu, 1 Dec 2016 09:19:28 +0000 (10:19 +0100)]
Disable NoNewPrivileges due to lack of support in wearable kernel

Change-Id: Ifb70144cdc03a5c678b94df5f6334f9c7365275e

7 years agoMake "Allow" work as "AllowAlways" 05/101505/4
Krzysztof Jackiewicz [Thu, 1 Dec 2016 09:16:56 +0000 (10:16 +0100)]
Make "Allow" work as "AllowAlways"

This is what UX guideline requires.

Change-Id: I141a2f9a2c94b369ac3609eb517716c3c80802c1

7 years agoAlign UI with guide 19/101319/4
Krzysztof Jackiewicz [Wed, 30 Nov 2016 22:12:22 +0000 (23:12 +0100)]
Align UI with guide

Change-Id: I445d29bee04fee8cd55773c1889551d18b987af2

7 years agoAdd additional function to askuser-test 15/101315/1
Bartlomiej Grzelewski [Wed, 30 Nov 2016 15:37:49 +0000 (16:37 +0100)]
Add additional function to askuser-test

Change-Id: I5c80c5dbfa4ad9bcd5288f914cfdae32bed8398b

7 years agoPrevent from memory corruption 14/101314/1
Bartlomiej Grzelewski [Wed, 30 Nov 2016 18:17:30 +0000 (19:17 +0100)]
Prevent from memory corruption

Change-Id: Ieb8312031d606cc02ef2637cfece19f48cb0ba82

7 years agoUse systemd to start askuser service 82/101282/1
Bartlomiej Grzelewski [Tue, 29 Nov 2016 17:32:28 +0000 (18:32 +0100)]
Use systemd to start askuser service

Change-Id: Idade3761e2affa9ea9d99384ed4a3d991d852b73

7 years agoIntegration with Package Manager 81/101281/1
Bartlomiej Grzelewski [Tue, 29 Nov 2016 12:56:20 +0000 (13:56 +0100)]
Integration with Package Manager

Package Manager is required to translate
pkgId to appId for non-hybrid applications.

Change-Id: I2fe7abee6b3e2825f697ff5470bc9bed677b0be2