Hi Jose is correct. DBus notifications for user add/remove already exists. More precisely, dbus notification is at this place: https://review.tizen.org/gerrit/gitweb?p=platform/upstream/gumd.git;a=blob;f=src/daemon/dbus/gumd-dbus-user-service-adapter.c;h=6cd37b9dcd94908349574b049fb386123c0f3d88;hb=refs/heads/upstream#l150
Krzysztof! one question from you: - We can add user/group add/remove notifications in library libgum which provides (GObject/C) interface to gumd dbus interface provided your components (Buxton, Cynara) can link to the library directly and makes your life easier. So would such solution can help you more or dbus notifications are enough? Btw we have recently added support for adding scripts in gumd which will be run: a- after a user is added b- before a user is about to be deleted c- after a group is added d- before a group is about to be deleted. So the (required) components can add their shell script under e.g. /etc/gumd/useradd.d/ and /etc/gumd/userdel.d/ folders and it will be run (in sorted order) Here is the commit https://review.tizen.org/gerrit/gitweb?p=platform/upstream/gumd.git;a=commit;h=9406e2c5eade7e8798771b5ecf1164a005bd5315 Please don't hesitate to ask if you have more questions. BR imran ________________________________________ From: Dev [dev-boun...@lists.tizen.org] on behalf of Krzysztof Sasiak [k.sas...@samsung.com] Sent: 25 August 2014 17:57 To: José Bollo Cc: dev@lists.tizen.org Subject: Re: [Dev] [Mulituser] user creation/removal notification Thank You for pointing this out. On 25.08.2014 15:58, José Bollo wrote: On lun, 2014-08-25 at 15:36 +0200, Krzysztof Sasiak wrote: Hello, I'd like to propose a new feature for gumd - user added/removed notifications. This functionnalities are already upstream in GUMD: see src/daemon/gumd-daemon.c function gumd_daemon_class_init. After analysis of the architecture of the current service daemons running on Tizen, a conclusion has been reached that it would be beneficiary to have notifications whenever a user is added or removed. As gumd already uses dbus for communication between service and client, I propose to use it also for notification about the above mentioned events. Clients could register signal handlers and then a predefined callback function would be run. Example usecases: 1. Buxton: Whenever a user is removed, all per user entries would also be removed 2. Cynara: User privilege entries are removed, as soon as user is removed Correct me if I'm wrong - I've already checked gumd for this feature, but didn't find anything. Please state Your opinion. -- Samsung_Logo_for_Mail_Signature Krzysztof Sasiak Samsung R&D Institute Poland Samsung Electronics k.sas...@samsung.com<mailto:k.sas...@samsung.com> _______________________________________________ Dev mailing list Dev@lists.tizen.org<mailto:Dev@lists.tizen.org> https://lists.tizen.org/listinfo/dev -- [Samsung_Logo_for_Mail_Signature] Krzysztof Sasiak Samsung R&D Institute Poland Samsung Electronics k.sas...@samsung.com<mailto:k.sas...@samsung.com> --------------------------------------------------------------------- Intel Finland Oy Registered Address: PL 281, 00181 Helsinki Business Identity Code: 0357606 - 4 Domiciled in Helsinki This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.
_______________________________________________ Dev mailing list Dev@lists.tizen.org https://lists.tizen.org/listinfo/dev