Łukasz Stelmach [Mon, 17 Nov 2014 15:04:35 +0000 (16:04 +0100)]
spec: fix unifdef exit status detection
Change-Id: I6b6507d1fe362d0f8b91a07be2c9a3697c01edf6
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Łukasz Stelmach [Mon, 17 Nov 2014 15:04:16 +0000 (16:04 +0100)]
Add a script to update Version automatically
The script derives the package version from the upstream commit used as
a base for the package release. Proper upstream/ tag is also created.
Change-Id: I66987c225bb4a994c0312f4cf6a3f537cd8130f0
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Karol Lewandowski [Fri, 30 May 2014 13:13:49 +0000 (15:13 +0200)]
Try to make use of security hooks only if these are available
Change-Id: I457ebff66a6136b5ab442a3386c11325ae54d6bc
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
Karol Lewandowski [Fri, 14 Feb 2014 13:56:30 +0000 (14:56 +0100)]
tests: Add standalone msg_send application
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
[Fix some compilation and runtime problems with test-kdbus-send]
Signed-off-by: Paul Moore <pmoore@redhat.com>
Karol Lewandowski [Mon, 12 May 2014 17:03:34 +0000 (19:03 +0200)]
Introduce lsm hooks for kdbus
This is combination of work by Karol Lewandowski and Paul Moore
on LSM hooks for kdbus.
[v1 Initial version]
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
[v2 added: memfd_seal
added: bus_alloc/free
added: ep_create ; ep_setpolicy ; ep_create
added: read ; write ]
Signed-off-by: Paul Moore <pmoore@redhat.com>
[v3 Rebased on top of
11f6693c1 (compatible with systemd v212),
dropped: memfd_seal - will be addressed in separately,
renamed: ep_create -> ep_alloc (for consistency),
renamed: send+recv -> talk,
renamed: read -> recv ; write -> send,
added: domain_alloc/free
added: ep_free ]
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
[v4 Reverted many of v3 changes after comments by Paul
renamed: ep_alloc -> ep_create (as introduced in v2)
dropped: ep_free
changed: send+recv takes (kdbus_conn *, kdbus_bus *) params
changed: name_acquire takes kdbus_conn * param (as in v2)]
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
Maciej Wereski [Thu, 8 May 2014 13:13:49 +0000 (15:13 +0200)]
Don't use nonexistent member of kdbus_pool_slice
Change-Id: I4e82f7a2eb67a2e8f03f1233f8e5113050ea4790
Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
Maciej Wereski [Thu, 8 May 2014 11:41:03 +0000 (13:41 +0200)]
Add missing include
Change-Id: Id17a7a42c866063cab889ca955655f4b4d5b23ba
Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
Maciej Wereski [Thu, 8 May 2014 11:38:45 +0000 (13:38 +0200)]
Add modprefix macro
It makes it possible to build package with kernel for RD_PQ.
Change-Id: I89a7a8f134da50cec98ee54fd4be743bfbe8d62f
Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
Maciej Wereski [Thu, 8 May 2014 11:31:19 +0000 (13:31 +0200)]
Update to 0.
20140325.112233cet
Change-Id: I09d20fe82a92eb0b9cda81b882d622b496b9cc6b
Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
Maciej Wereski [Wed, 5 Mar 2014 08:51:02 +0000 (09:51 +0100)]
Update to 0.
20140224.202407cet
Change-Id: Ie211816178580e54b84af375e74f2bcb0e30b1d6
Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
Maciej Wereski [Tue, 25 Feb 2014 11:48:50 +0000 (12:48 +0100)]
Update to 0.
20140221.145534cet
Change-Id: I4be4430dcdbc7d2bba288906d377a912f14c11a5
Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
Karol Lewandowski [Mon, 27 Jan 2014 13:22:22 +0000 (14:22 +0100)]
packaging: Use date-based version string
kdbus doesn't have any release version we could use, fall back
to 0.<DATE>.<TIME> format for packaging purposes.
Karol Lewandowski [Fri, 24 Jan 2014 16:10:52 +0000 (17:10 +0100)]
packaging: Bump release
Karol Lewandowski [Fri, 24 Jan 2014 16:09:48 +0000 (17:09 +0100)]
packaging: Rename .spec to match real package name
Karol Lewandowski [Fri, 24 Jan 2014 16:09:22 +0000 (17:09 +0100)]
packaging: Fix various rpmlint errors
Karol Lewandowski [Fri, 24 Jan 2014 15:45:52 +0000 (16:45 +0100)]
packaging: Bump version
Karol Lewandowski [Tue, 29 Oct 2013 17:27:43 +0000 (18:27 +0100)]
Revert "catch up with final working version of cgroups string interface"
This reverts commit
27940fdc7769131c6d18c7fd2d1e8f61cf952fd0.
Required for pre-3.11 compatibility.
Change-Id: I90a0b7966535aa4d0d48687d88da4febd0d86634
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
Karol Lewandowski [Mon, 28 Oct 2013 15:09:04 +0000 (16:09 +0100)]
Bring task_cgroup_path_from_hierarchy() back for pre-3.11 compatiblity
This commit partially reverts
ea2b8c798cd34149fa13010d24 ("message.c:
task_cgroup_path_from_hierarchy is now in 3.11-rc1, so remove it from
here").
We still require it for pre-3.11 kernels that Tizen is shipping.
Change-Id: I05568c5d8d473bb5257d3aa64f8a84b03e6da117
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
Karol Lewandowski [Wed, 22 Jan 2014 17:53:03 +0000 (18:53 +0100)]
Rebase to newest upstream and bump version
Rebased on top of
761aff75b ("connection: kill unneeded include").
Karol Lewandowski [Wed, 22 Jan 2014 16:49:11 +0000 (17:49 +0100)]
packaging: Provide -devel package with kdbus.h
Karol Lewandowski [Fri, 3 Jan 2014 17:28:24 +0000 (18:28 +0100)]
packaging: Fix spec to make kdbus work on ivi
Karol Lewandowski [Fri, 3 Jan 2014 14:25:40 +0000 (15:25 +0100)]
Add packaging to kdbus-bus package to be build from obs/gbs.
Change-Id: I3b630841956115d20e3d12a2d7dad45f21a2d75e
Signed-off-by: Jacek Pielaszkiewicz <j.pielaszkie@samsung.com>
[ Rebased to newest upstream ]
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
Daniel Mack [Tue, 25 Mar 2014 10:22:33 +0000 (11:22 +0100)]
pool: cosmetic indent fix
Daniel Mack [Tue, 25 Mar 2014 08:44:07 +0000 (09:44 +0100)]
connection: fix indentation
Kay Sievers [Tue, 25 Mar 2014 02:40:31 +0000 (03:40 +0100)]
pool: hand out opaque pool_slice pointers instead of offsets
Kay Sievers [Mon, 24 Mar 2014 15:14:09 +0000 (16:14 +0100)]
bus, connection: fix jump label names
Kay Sievers [Mon, 24 Mar 2014 13:02:03 +0000 (14:02 +0100)]
bus, connection: do not leak user accounting when parents are disconnected
Kay Sievers [Mon, 24 Mar 2014 04:39:34 +0000 (05:39 +0100)]
add comments about lock order
Kay Sievers [Mon, 24 Mar 2014 04:01:59 +0000 (05:01 +0100)]
connection: prevent queuing of messages into dead connections
Djalal Harouni [Sun, 23 Mar 2014 23:20:36 +0000 (00:20 +0100)]
handle: unref handle->ep and free handle->meta on error path
Signed-off-by: Djalal Harouni <tixxdz@opendz.org>
Djalal Harouni [Sun, 23 Mar 2014 22:06:36 +0000 (23:06 +0100)]
test-kdbus: rename check bus and domain functions
Signed-off-by: Djalal Harouni <tixxdz@opendz.org>
Djalal Harouni [Sun, 23 Mar 2014 22:06:35 +0000 (23:06 +0100)]
endpoint: free the policy_db on error path
Signed-off-by: Djalal Harouni <tixxdz@opendz.org>
Kay Sievers [Mon, 24 Mar 2014 02:37:29 +0000 (03:37 +0100)]
names: kdbus_name_replace_owner - guard against connection disconnect
Kay Sievers [Mon, 24 Mar 2014 02:32:52 +0000 (03:32 +0100)]
names: do not allow to add names to dead connections
Kay Sievers [Mon, 24 Mar 2014 02:31:24 +0000 (03:31 +0100)]
names: remove unused hash variable
Kay Sievers [Mon, 24 Mar 2014 02:28:02 +0000 (03:28 +0100)]
connection: release names before dropping messages
Messages might need to move back to the activator, if we drop them first,
there is nothing to move left.
Kay Sievers [Mon, 24 Mar 2014 02:26:49 +0000 (03:26 +0100)]
connection: do not add messages to dead connection
Kay Sievers [Sun, 23 Mar 2014 21:58:09 +0000 (22:58 +0100)]
names: rename "entries_lock" to "lock"
Kay Sievers [Sun, 23 Mar 2014 21:48:34 +0000 (22:48 +0100)]
connection: update kernel doc
Kay Sievers [Sun, 23 Mar 2014 21:44:02 +0000 (22:44 +0100)]
move function around
Kay Sievers [Sat, 22 Mar 2014 21:29:56 +0000 (22:29 +0100)]
ensure we never have any children objects linked when we free a parent
Kay Sievers [Sat, 22 Mar 2014 18:03:02 +0000 (19:03 +0100)]
check for disconnected parent objects before linking into them
Kay Sievers [Sat, 22 Mar 2014 18:02:51 +0000 (19:02 +0100)]
domain: create sub-domain from parent domain
Kay Sievers [Sat, 22 Mar 2014 17:01:52 +0000 (18:01 +0100)]
kdbus_pool_copy: use offset + "pos" instead in both cases
Daniel Mack [Sat, 22 Mar 2014 14:08:33 +0000 (15:08 +0100)]
pool: kdbus_pool_copy(): increment context-specific variables conditionally
Daniel Mack [Sat, 22 Mar 2014 13:58:48 +0000 (14:58 +0100)]
connection: comment cleanup
Daniel Mack [Sat, 22 Mar 2014 13:50:38 +0000 (14:50 +0100)]
kdbus_pool_copy(): increase off_src in loop
off_src is used by kdbus_pool_copy_file() to determine the offset in the
source file to copy from. We need to increase it by the number of copied
bytes after each call.
This fixes pool-to-pool copies with slices larger that PAGE_SIZE.
Daniel Mack [Sat, 22 Mar 2014 11:56:17 +0000 (12:56 +0100)]
kdbus_conn_move_messages: Use kdbus_conn_queue_remove()
Cleanup the original connection's queue properly by calling
kdbus_conn_queue_remove().
Daniel Mack [Sat, 22 Mar 2014 10:48:52 +0000 (11:48 +0100)]
connection: fix expect_reply logic
Only interpret msg->cookie_reply if KDBUS_MSG_FLAGS_EXPECT_REPLY isn't
set. Re-order the code and add some comments.
Daniel Mack [Sat, 22 Mar 2014 10:47:44 +0000 (11:47 +0100)]
Fix comment wrt KDBUS_MSG_FLAGS_WAIT_FOR_REPLY
This flag does not exist, fix it before more people get confused.
Daniel Mack [Fri, 21 Mar 2014 13:24:12 +0000 (14:24 +0100)]
connection: kill unneeded parenthesis
Daniel Mack [Fri, 21 Mar 2014 12:56:42 +0000 (13:56 +0100)]
connection: kdbus_cmd_msg_recv(): fix use after free
Daniel Mack [Thu, 20 Mar 2014 10:43:16 +0000 (11:43 +0100)]
pool: cosmetic cleanups
Djalal Harouni [Wed, 19 Mar 2014 20:31:15 +0000 (21:31 +0100)]
endpoint: break if an endpoint was found
Signed-off-by: Djalal Harouni <tixxdz@opendz.org>
Kay Sievers [Wed, 19 Mar 2014 15:56:08 +0000 (16:56 +0100)]
monitor: read metadata subscription bits from monitor connection
Lennart Poettering [Wed, 19 Mar 2014 00:32:22 +0000 (01:32 +0100)]
attach: add _KDBUS_ATTACH_ALL definition that includes all currently defined attach flags
Kay Sievers [Tue, 18 Mar 2014 21:17:56 +0000 (22:17 +0100)]
Revert "add debug log code"
This reverts commit
4a3321d3143fbb0156c0233c26702fb6853fcbc4.
Kay Sievers [Tue, 18 Mar 2014 21:17:22 +0000 (22:17 +0100)]
add debug log code
Kay Sievers [Mon, 17 Mar 2014 21:37:21 +0000 (22:37 +0100)]
fix kerneldoc
Kay Sievers [Mon, 17 Mar 2014 18:46:08 +0000 (19:46 +0100)]
endpoint: when disconnecting, disconnect all connections
Kay Sievers [Mon, 17 Mar 2014 18:06:22 +0000 (19:06 +0100)]
TODO: update
Daniel Mack [Mon, 17 Mar 2014 16:05:43 +0000 (17:05 +0100)]
move waitqueue from endpoint to connection
This way, we don't unnecessarily wake up all connection on an endpoint.
Suggested by scampa.giovanni:
http://code.google.com/p/d-bus/issues/detail?id=1
Djalal Harouni [Mon, 17 Mar 2014 10:53:58 +0000 (11:53 +0100)]
kdbus: use kdbus_item_validate_name() to validate names
Use kdbus_item_validate_name() where appropriate.
Signed-off-by: Djalal Harouni <tixxdz@opendz.org>
Djalal Harouni [Mon, 17 Mar 2014 10:53:57 +0000 (11:53 +0100)]
kdbus: add kdbus_item_validate_name() to validate names
Signed-off-by: Djalal Harouni <tixxdz@opendz.org>
Daniel Mack [Fri, 14 Mar 2014 19:39:54 +0000 (20:39 +0100)]
connection: actually set policy for policy holders
Daniel Mack [Fri, 14 Mar 2014 19:29:24 +0000 (20:29 +0100)]
metadata: do not try to attach empty connection name
Daniel Mack [Fri, 14 Mar 2014 18:43:52 +0000 (19:43 +0100)]
connection: fix name logic in kdbus_conn_new()
Daniel Mack [Fri, 14 Mar 2014 18:35:46 +0000 (19:35 +0100)]
policy: fix error unwinding
Kay Sievers [Tue, 11 Mar 2014 20:17:39 +0000 (21:17 +0100)]
kdbus.txt: update
Kay Sievers [Sat, 8 Mar 2014 17:38:32 +0000 (18:38 +0100)]
turn KDBUS_ITEM* iterators into generic versions
Daniel Mack [Sat, 8 Mar 2014 17:19:44 +0000 (18:19 +0100)]
handle: add KDBUS_CMD_EP_UPDATE (API break)
Daniel Mack [Sat, 8 Mar 2014 17:18:51 +0000 (18:18 +0100)]
endpoint: keep track of custom endpoints in handle
Otherwise, we can't reach the endpoint object anymore.
Also, clean up the endpoint in case policy upload fails.
Daniel Mack [Sat, 8 Mar 2014 16:57:27 +0000 (17:57 +0100)]
kdbus.h: rename kdbus_cmd_conn_update → kdbus_cmd_update (API break)
So we can reuse it to update custom endpoints.
Daniel Mack [Sat, 8 Mar 2014 16:14:39 +0000 (17:14 +0100)]
handle: use KDBUS_ITEMS_SIZE
Daniel Mack [Sat, 8 Mar 2014 16:00:47 +0000 (17:00 +0100)]
util: cleanup includes
Kay Sievers [Sat, 8 Mar 2014 15:43:43 +0000 (16:43 +0100)]
policy: add KDBUS_ITEMS_END() check
Kay Sievers [Sat, 8 Mar 2014 15:34:24 +0000 (16:34 +0100)]
add KDBUS_ITEMS_FOREACH_SIZE
Daniel Mack [Sat, 8 Mar 2014 15:10:50 +0000 (16:10 +0100)]
endpoint: add kdbus_ep_policy_set()
Daniel Mack [Sat, 8 Mar 2014 14:59:38 +0000 (15:59 +0100)]
connection: fix kdbus_policy_set() call from kdbus_cmd_conn_update()
Daniel Mack [Sat, 8 Mar 2014 14:56:37 +0000 (15:56 +0100)]
policy: fix item iterator
Daniel Mack [Sat, 8 Mar 2014 13:10:05 +0000 (14:10 +0100)]
metadata: simplify mask logic in kdbus_meta_append()
Daniel Mack [Sat, 8 Mar 2014 12:48:17 +0000 (13:48 +0100)]
metadata: style nits
Daniel Mack [Sat, 8 Mar 2014 12:40:32 +0000 (13:40 +0100)]
metadata: fix error unwinding in kdbus_meta_append_cmdline()
Daniel Mack [Sat, 8 Mar 2014 12:33:34 +0000 (13:33 +0100)]
connection: more const madness
Daniel Mack [Sat, 8 Mar 2014 12:30:39 +0000 (13:30 +0100)]
metadata: hold the task's mm as long as we need it
Daniel Mack [Sat, 8 Mar 2014 11:30:46 +0000 (12:30 +0100)]
message: constify argument of kdbus_kmsg_new_from_user()
Daniel Mack [Sat, 8 Mar 2014 11:26:26 +0000 (12:26 +0100)]
domain.h: re-order some members
Daniel Mack [Sat, 8 Mar 2014 11:15:28 +0000 (12:15 +0100)]
pool: constify some function arguments
Daniel Mack [Sat, 8 Mar 2014 11:04:55 +0000 (12:04 +0100)]
constify some cmd struct related functions
Daniel Mack [Sat, 8 Mar 2014 10:55:15 +0000 (11:55 +0100)]
policy: constify more variables
Daniel Mack [Sat, 8 Mar 2014 10:49:56 +0000 (11:49 +0100)]
policy: rename argument of kdbus_policy_remove_owner()
Daniel Mack [Sat, 8 Mar 2014 10:46:53 +0000 (11:46 +0100)]
policy: constify some internal lookup functions
Daniel Mack [Sat, 8 Mar 2014 10:35:10 +0000 (11:35 +0100)]
connection: rename 'names' → 'name_count'
This make it clearer what the variable does, and also brings the name in
line with others in the same struct.
Daniel Mack [Sat, 8 Mar 2014 10:30:38 +0000 (11:30 +0100)]
connection: keep reference to current_cred() at creation time
So we can check against these creds when a connection acquires a name.
This is necessary for on-behalf name taking.
Daniel Mack [Sat, 8 Mar 2014 10:17:47 +0000 (11:17 +0100)]
policy: unify API
Use int as return type for all policy check functions.
Also, reorder some functions in policy.c
Daniel Mack [Thu, 6 Mar 2014 19:37:55 +0000 (20:37 +0100)]
kdbus.txt: start to document policy holders and wildcard entries
Daniel Mack [Thu, 6 Mar 2014 19:32:15 +0000 (20:32 +0100)]
kdbus.h: drop KDBUS_ITEM_POLICY_NAME and struct kdbus_policy (ABI break)
* Drop KDBUS_ITEM_POLICY_NAME items. Policy names are now passed as
KDBUS_ITEM_NAME.
* struct kdbus_policy_access can now be embedded in struct kdbus_item
directly.
Daniel Mack [Thu, 6 Mar 2014 19:17:11 +0000 (20:17 +0100)]
names: check bus policy_db for permission to own name
Daniel Mack [Thu, 6 Mar 2014 18:49:02 +0000 (19:49 +0100)]
connection: introduce KDBUS_HELLO_POLICY_HOLDER (ABI break)
A policy holder is a special-purpose connection which registers
policy entries for one or multiple names. The provided names are not
activated, and are not registered with the name database.
Handle this new flag in kdbus_conn_new(), and take the following action
when the flag is set:
* allow more than one name to be provided via KDBUS_ITEM_NAME and
KDBUS_ITEM_POLICY_ACCESS items.
* allow wildcard names to be uploaded
Daniel Mack [Thu, 6 Mar 2014 18:31:21 +0000 (19:31 +0100)]
kdbus.h: kernel-doc enum kdbus_make_flags