summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Konrad Lipinski [Tue, 22 Nov 2016 15:43:04 +0000 (16:43 +0100)]
remove unused g_udesc.{user,group}
Change-Id: I767b9c7b095692466c0bb4d25cb8ed707e088a23
Konrad Lipinski [Thu, 24 Nov 2016 14:37:09 +0000 (15:37 +0100)]
libdbuspolicy.spec: disable tests [fix critical runtime breakage]
Change-Id: I9c3be5ccbbd1f5326542d11ac818b350038076f6
Kazimierz Krosman [Thu, 29 Sep 2016 13:13:18 +0000 (15:13 +0200)]
tests: Add test package for libdbuspolicy
This patch introduces several modification that
allows test package building.
* Test version of libdbuspolicy shared library reads
policy files from /usr/lib/dbus-tests/config/ instead
of /etc/dbus-1/ ...
* new package libdbuspolicy1-test contains test
version of libdbuspolicy library with test policies
and test binaries.
* test-runner binary is compatible with dbus tests
framework.
Change-Id: I87bffc8bd24c05180441d74df546d4148a238ef1
Konrad Lipinski [Wed, 9 Nov 2016 08:59:35 +0000 (09:59 +0100)]
remove unnecessary cynara_finish() call
Change-Id: Ifcf14f42b8fc2b65c8a5598525b7b0a905f42aee
Konrad Lipinski [Mon, 7 Nov 2016 18:03:53 +0000 (19:03 +0100)]
circumvent destruction of ::policy_checker, remove destructors that are empty or never called
Motivated by KONA bugs (ex.
DF161028-00875). VD product environment
apparently likes calling libdbuspolicy1 public functions while exit
handlers are being called (and thus global objects are being destroyed).
Solution: circumvent destruction of relevant globals altogether.
Change-Id: Ibeab05ed83cc24dc6a5da926fb542f31d8a33af1
Konrad Lipinski [Mon, 7 Nov 2016 16:05:44 +0000 (17:05 +0100)]
turn DbAdapter into direct member of XmlParser
Change-Id: Ic807550cabd2cad3177c35a6af14d142b29eaf0b
Konrad Lipinski [Mon, 7 Nov 2016 12:43:48 +0000 (13:43 +0100)]
remove unused PolicyIterator
Change-Id: I06de62c3359186b094b51def7beff47752bfa998
INSUN PYO [Mon, 7 Nov 2016 23:49:12 +0000 (15:49 -0800)]
Merge "Removes file xml_policy.hpp. It is part of old implementation and is no longer used." into tizen
Michal Bloch [Mon, 24 Oct 2016 16:06:43 +0000 (18:06 +0200)]
Remove a redundant line
Change-Id: Ic41712669be7b626c0eee19a0177b45b495f21d0
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
Karol Lewandowski [Mon, 17 Oct 2016 13:54:33 +0000 (06:54 -0700)]
Merge "Minor fix to failed test output" into tizen
Konrad Lipinski [Thu, 29 Sep 2016 11:59:14 +0000 (13:59 +0200)]
-Wextra -Werror
Change-Id: I1b74a76cff3ecb38b646a3dd9a7327d25e5fa1d7
Michal Bloch [Fri, 23 Sep 2016 14:05:31 +0000 (16:05 +0200)]
Minor fix to failed test output
Change-Id: I4302b4d836852021a93078ed0a717a5caff6df01
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
Karol Lewandowski [Tue, 13 Sep 2016 13:01:20 +0000 (06:01 -0700)]
Merge changes I097ff109,Ie115904d into tizen
* changes:
Added doxygen documentation.
Adds creation of doxygen documentation package.
Krystian Kisielak [Mon, 29 Aug 2016 13:13:46 +0000 (15:13 +0200)]
Added doxygen documentation.
Change-Id: I097ff1090998637d5c51ffbfa6023bfd0c04e405
Signed-off-by: Krystian Kisielak <k.kisielak@samsung.com>
sanghyeok.oh [Fri, 9 Sep 2016 07:34:17 +0000 (16:34 +0900)]
svace:change strcat to strncat
Change-Id: I546599c8f5c850eda6374a792492e7db1e9dcf7a
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
Hyotaek Shim [Mon, 5 Sep 2016 02:38:59 +0000 (19:38 -0700)]
Merge "Added description label to libdbuspolicy kdbus connection" into tizen
Hyotaek Shim [Mon, 5 Sep 2016 02:20:02 +0000 (19:20 -0700)]
Merge "Fix: free memory by KDBUS_CMD_FREE ioctl" into tizen
Krystian Kisielak [Thu, 25 Aug 2016 15:38:21 +0000 (17:38 +0200)]
Adds creation of doxygen documentation package.
Change-Id: Ie115904d41dea90d5c26844c483ebc0c87fbaa7e
Signed-off-by: Krystian Kisielak <k.kisielak@samsung.com>
Krystian Kisielak [Fri, 2 Sep 2016 13:40:41 +0000 (15:40 +0200)]
Removes file xml_policy.hpp. It is part of old implementation and is no longer used.
Change-Id: Ife804864f767ddd92a979e983cd45164e89c6315
Signed-off-by: Krystian Kisielak <k.kisielak@samsung.com>
Hyotaek Shim [Fri, 2 Sep 2016 11:19:57 +0000 (04:19 -0700)]
Merge "Bugfix:wrong gid/uid converting" into tizen
Kazimierz Krosman [Thu, 1 Sep 2016 09:27:30 +0000 (18:27 +0900)]
Bugfix:wrong gid/uid converting
if input is as below,
<policy group="%{TZ_SYS_USER_GROUP}">
DbAdapter::convertToUid / Gid function return 0, not -1.
Change-Id: I4a36e0b387bd532b72e37a339c1a308ad8bf55f8
Krystian Kisielak [Tue, 30 Aug 2016 10:42:36 +0000 (12:42 +0200)]
Fixes policy "*" names issue. Adds related test.
Change-Id: I3bb40c1ccc47de02d06837d1e36bb64be6b4b3b7
Kazimierz Krosman [Fri, 26 Aug 2016 13:39:47 +0000 (15:39 +0200)]
Fix: wrong data preparation for policy requests
Additional Fix: wrong assertion (name validation)
Change-Id: I79fa2bc27f8a8406f067bc7e4299bdc422c79b37
Kazimierz Krosman [Mon, 29 Aug 2016 11:05:05 +0000 (13:05 +0200)]
Revert "revert changes:revert commit id
dc3048a8de00c01514c14ef465a87b8ca9a7c704"
This reverts commit
1b4d4f2311ae31440417fafd3233177d39bfd768.
This revert is not nessesary- it requiers only simple fix.
Change-Id: I4591012edd0d039b1eb7bb382cf0b34b8e5e6771
sanghyeok.oh [Mon, 29 Aug 2016 05:03:54 +0000 (14:03 +0900)]
revert changes:revert commit id
dc3048a8de00c01514c14ef465a87b8ca9a7c704
previous submit has bug, and revert it
"Prefix tree search for ownership rules, removed virtual methods."
id :
dc3048a8de00c01514c14ef465a87b8ca9a7c704
Change-Id: I0a73eab24c95f1a6cc3a4e37a9ffb0d2da943e3f
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
Kazimierz Krosman [Thu, 25 Aug 2016 15:48:16 +0000 (17:48 +0200)]
Added description label to libdbuspolicy kdbus connection
Change-Id: I3c17aa33ea71f9eab6cd2bd161500b1363804389
Kazimierz Krosman [Thu, 25 Aug 2016 13:25:52 +0000 (15:25 +0200)]
Fix: free memory by KDBUS_CMD_FREE ioctl
Change-Id: I6252c1783fa9dd52343bd128fa975b38191247f3
Kazimierz Krosman [Wed, 24 Aug 2016 14:48:55 +0000 (16:48 +0200)]
Fix: enable libdbuspolicy for multiple init.
Change-Id: I5ffea43051cb5bd51320333fde273815e12801ae
Karol Lewandowski [Tue, 23 Aug 2016 10:38:22 +0000 (03:38 -0700)]
Merge "Fixes coding style issues." into tizen
Karol Lewandowski [Tue, 23 Aug 2016 10:38:13 +0000 (03:38 -0700)]
Merge "Prefix tree search for ownership rules, removed virtual methods." into tizen
Krystian Kisielak [Tue, 23 Aug 2016 08:44:34 +0000 (10:44 +0200)]
Fixes coding style issues.
Change-Id: Ibbbaab71538906fa123156c3260707b9edef4bcc
Signed-off-by: Krystian Kisielak <k.kisielak@samsung.com>
sanghyeok.oh [Tue, 23 Aug 2016 03:00:30 +0000 (12:00 +0900)]
bug fix:wrong index of kdbus_unique_id
Change-Id: I374bf3de298adf49d67e48b199590a1aa164d0a5
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
Konrad Lipinski [Mon, 22 Aug 2016 11:19:38 +0000 (13:19 +0200)]
kdbus_unique_id fix
Change-Id: Ice25972fdc38e032f8d06ccb66eec8e3f202337a
Krystian Kisielak [Fri, 10 Jun 2016 10:01:59 +0000 (12:01 +0200)]
Prefix tree search for ownership rules, removed virtual methods.
Change-Id: I90909b035da16dce39ac28278c1561eca0396335
Signed-off-by: Krystian Kisielak <k.kisielak@samsung.com>
Karol Lewandowski [Fri, 12 Aug 2016 09:51:05 +0000 (11:51 +0200)]
kdbus: synchronize kdbus interface header between repositories
Change-Id: I8e47edf8c61699a99523dead09bb3ef321894d31
Kazimierz Krosman [Wed, 10 Aug 2016 11:02:04 +0000 (13:02 +0200)]
Change in API to return internal errors by libdbuspolicy
Libdbuspolicy now returns error codes via main API
(check_out and check_int functions):
DBUSPOLICY_RESULT_ALLOW 1
DBUSPOLICY_RESULT_DENY 0
DBUSPOLICY_RESULT_DEST_NOT_AVAILABLE -1
DBUSPOLICY_RESULT_KDBUS_ERROR -2
DBUSPOLICY_RESULT_CYNARA_ERROR -3
it is needed by gdbus and libdbus to make better descripted logs.
Change-Id: I060de3ec0a767ee56dfd5ae8f6aa4475dd25ffa4
INSUN PYO [Mon, 25 Jul 2016 02:38:09 +0000 (19:38 -0700)]
Merge "Fix copying to empty string." into tizen
Krystian Kisielak [Fri, 22 Jul 2016 13:23:09 +0000 (15:23 +0200)]
Fix copying to empty string.
Change-Id: I0d2e111372cbe62fc3ebe9b4211e90b89a335dbf
Karol Lewandowski [Fri, 22 Jul 2016 13:02:02 +0000 (06:02 -0700)]
Merge "Added test description to make test better described" into tizen
Hyotaek Shim [Fri, 15 Jul 2016 05:20:13 +0000 (14:20 +0900)]
add LICENSE.APACHE2.0
Change-Id: Icb8da89c7d0413a6b2bdb79cb59cb75edb9f9b5c
Kazimierz Krosman [Wed, 1 Jun 2016 17:06:14 +0000 (19:06 +0200)]
Added test description to make test better described
Change-Id: I90909b035da16dce39ac28278c1561ecf0396335
sanghyeok.oh [Tue, 14 Jun 2016 09:04:05 +0000 (18:04 +0900)]
svace
Change-Id: I745773662dc8578fce7590bd1b3bc2bde3ede5ed
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
Kazimierz Krosman [Mon, 30 May 2016 13:43:01 +0000 (15:43 +0200)]
Fix: xml parser + minor fixes
Fixed xml parser bug that causes that only first <includedir>
works as it should.
Removed deadlock in init when logs are enabled
Minor refactors
Change-Id: I94c97efff478cf919cc5809f106bca1bb1465889
Kazimierz Krosman [Fri, 20 May 2016 15:23:39 +0000 (17:23 +0200)]
libdbuspolicyt refactoring to meet Tizen coding style
Change-Id: I9765dd74342d695d50b223185c71a84d7f0f1aa3
Kazimierz Krosman [Fri, 20 May 2016 11:15:10 +0000 (13:15 +0200)]
Tree policy engine decision checker replacement
Tree policy engine decision checker was replaced by naive
search algorithm. For each check call, libdbuspolicy iterate via
policy rules in the reverse order. First rule that matches request
is used to return decision.
Multiple sender's and receiver's names are proceeded during search
procedure (algorithm try to match current rule for each name). Previous version
search all database for each name.
Added unit tests (make check)
Change-Id: Ie78ae8eec285a7042d275d02333372bca4d76d28
Kazimierz Krosman [Fri, 27 May 2016 09:24:06 +0000 (11:24 +0200)]
Allow incremental build
Change-Id: Id8c02912d1ddf0d3a86bb5e5f999a1dbce035943
Konrad Lipinski [Wed, 13 Apr 2016 08:58:43 +0000 (10:58 +0200)]
Fixed series of bugs and optimalised arguments preparation
Fixed kdbus pool memory managment.
Refactored tslog (getenv called only once).
Removed duplicated credential information.
Dropped unused timeouts.
Added lockless calls when logs are disabled.
Removed udesc allocation.
Decreased KDBUS_POOL_SIZE from 16M to 1M.
Minor fixes.
Change-Id: I1e5fda8df4dbd1dd6dfecae60aff6d7d67705a3b
Karol Lewandowski [Thu, 28 Apr 2016 12:06:38 +0000 (14:06 +0200)]
Initialize policy database based on bus path
Currently library has no reliable way of determining which path was
already opened by libdbus/glib when only bus type is given.
This commit changes API to allow client libraries pass bus path directly
eliminating possible ambiguities.
Change-Id: I732c391898f661b923fa61d4a2aebb402fb0ec3c
Karol Lewandowski [Wed, 27 Apr 2016 14:03:03 +0000 (16:03 +0200)]
Janitorial: use snprintf() for string operations
snprintf() guarantees terminating \0 byte for given
size.
Change-Id: I65cb90ea4466d0356cc02919d269da8843a7302f
Karol Lewandowski [Wed, 27 Apr 2016 14:00:32 +0000 (16:00 +0200)]
Fix: ensure Smack label is null terminated in internal representation
Change-Id: Ifbb8d651b407111668ba61d1e279938fb6509589
Karol Lewandowski [Wed, 27 Apr 2016 13:18:47 +0000 (15:18 +0200)]
Fix: do not call get(pw/gr)uid on uninitialized memory
This commit fixes bug introduced in commit
869f3003 ("Fix: close file
descriptior leak in dbuspolicy_init error path").
Change-Id: Ieec0fdb4b23a014f25c20aecb731ff2e14a8864a
Karol Lewandowski [Tue, 26 Apr 2016 13:05:09 +0000 (15:05 +0200)]
dbuspolicy: fix initialization
Change-Id: Ib904512ef25e3da70f784dcd3662f0afd272e3c8
Lukasz Skalski [Mon, 25 Apr 2016 11:35:24 +0000 (13:35 +0200)]
Fix: properly check getgrgid_r() and getpwuid_r() function results
Change-Id: I3c780f9067d1b4aca2a0bc40f6ff2d2a1adf0347
sanghyeok.oh [Wed, 20 Apr 2016 03:41:48 +0000 (12:41 +0900)]
svace:delete double free
Change-Id: Ieeeef6057ec005206d9d4d29f7ce682f991e13b4
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
Karol Lewandowski [Fri, 8 Apr 2016 13:04:59 +0000 (15:04 +0200)]
refactor: drop unused variable
Change-Id: I7069cabbf73110823eb7ae2a8806405fdb278d56
Karol Lewandowski [Fri, 8 Apr 2016 13:04:27 +0000 (15:04 +0200)]
packaging: Do not strip binaries on install
Having debug info will allow debug information to be extracted and placed
into separate .debug{info,source} packages automatically.
Change-Id: I64d7dd1468c58a32fdb9d978f07547e3fc65fd18
Karol Lewandowski [Thu, 7 Apr 2016 15:51:46 +0000 (17:51 +0200)]
Change default configuration files as used from dbus-1.10
Change-Id: Ib986f757efe923b7c2003d89fbcbfe15370f1ba7
Karol Lewandowski [Wed, 6 Apr 2016 14:29:47 +0000 (16:29 +0200)]
Fix: close file descriptior leak in dbuspolicy_init error path
Refactor initialization to be able to provide error handling
easily.
Change-Id: Ibe69e8894b93590e21b3c37b6d08cb394bce6b1b
Karol Lewandowski [Wed, 6 Apr 2016 14:19:51 +0000 (16:19 +0200)]
Fix: remove errnous printing to stdout (stderr)
Not acceptable for library code.
Change-Id: Ife043c9e38d4ddc36f2b2a68ca5a4d52e748f8c3
Arek Antoniak [Fri, 19 Feb 2016 14:17:44 +0000 (15:17 +0100)]
Added two prioritized configuration file paths, primary and secondary
Change-Id: I9608d089019ce58208b8e1ead304ae353ebd31c0
sanghyeok.oh [Tue, 29 Mar 2016 05:57:32 +0000 (14:57 +0900)]
libdbuspolicy:svace
Change-Id: I3bce387ce6d97483a90bdda41025bf1e3e753bb7
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
sanghyeok.oh [Thu, 24 Mar 2016 06:17:38 +0000 (15:17 +0900)]
libdbuspolicy:svace
Change-Id: If853b56a78ea6b14829fbdc9f6708329a7f52936
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
Kazimierz Krosman [Fri, 18 Mar 2016 10:38:29 +0000 (11:38 +0100)]
libdbuspolicy:svace
Change-Id: Ibb899e8d6a56b99343ffe2d7b7f427b179b863f1
sanghyeok.oh [Thu, 17 Mar 2016 08:03:49 +0000 (17:03 +0900)]
libdbuspolicy:svace
Change-Id: I443ae46a8f1e8e3de55982576a58be1f67410a78
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
sanghyeok.oh [Tue, 15 Mar 2016 07:00:18 +0000 (16:00 +0900)]
libdbuspolicy:SVACE
Change-Id: Ibc20b589385c92397a9a27baacba6bcd12c0ae03
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
Kazimierz Krosman [Fri, 4 Mar 2016 14:29:51 +0000 (15:29 +0100)]
Fix Require dependency in spec file
Added devel package for libdbuspolicy
Change-Id: I60690ded104f1c766866bb1e11fd9c73cd11e0e5
Kazimierz Krosman [Thu, 4 Feb 2016 16:42:51 +0000 (17:42 +0100)]
Fix: get kdbus_creds when there is only unique_id
Change-Id: I7200fa5bb5bbe9cd926fb7021bb3bbe57e24d51f
Arek Antoniak [Thu, 4 Feb 2016 11:37:04 +0000 (12:37 +0100)]
Bugfix for 'own_prefix' support - changed obfuscation scheme
Change-Id: I18fc0d543dc7c0f2ed548771c755c5878c8a7837
Kazimierz Krosman [Wed, 3 Feb 2016 16:18:20 +0000 (17:18 +0100)]
Fix: not calling can_send when sender or dest=""
Change-Id: I27bb2d1bb76c5536757c5d0cb9441722adabbc4a
Adrian Szyndela [Tue, 2 Feb 2016 14:11:27 +0000 (15:11 +0100)]
Fix: double-free in case of NULL sender
Change-Id: Ibc4f218979b7969ecfd8c5a3e6122124ff2ddf03
Lukasz Skalski [Thu, 14 Jan 2016 16:12:02 +0000 (17:12 +0100)]
Add manifest file
Change-Id: I4be84c8f70c4dc663767d449da146522c1598f48
Arek Antoniak [Thu, 14 Jan 2016 10:57:11 +0000 (11:57 +0100)]
Patch for 'own_prefix' support, logging enabling, init timeout
Change-Id: I63edf55513a3471c90967d415ab654647b1fb822
Arek Antoniak [Fri, 11 Dec 2015 14:23:39 +0000 (15:23 +0100)]
Add kdbus interface header
Change-Id: I28578a05b019726323fbbd9a35c0fb80284a6b8c
Arek Antoniak [Fri, 11 Dec 2015 14:23:27 +0000 (15:23 +0100)]
Add libdbuspolicy library
Library implements dbus-daemon policy checking logic as standalone
library, it complies with dbus-daemon policy specification and supports
Tizen's Cynara extensions ("check" tag).
libdbuspolicy uses kdbus directly to gain peer credentials.
Authors:
Kazimierz Krosman <k.krosman@samsung.com>
Arek Antoniak <a.antoniak2@samsung.com>
Change-Id: I7e637000a90b4194350b69d460ddb0da2b02b983
KyungMi Lee [Wed, 2 Dec 2015 23:41:10 +0000 (15:41 -0800)]
Initial empty repository