]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
8 years agoman: update sysctl example about netfilter 472/head
Zbigniew Jędrzejewski-Szmek [Tue, 30 Jun 2015 00:34:45 +0000 (20:34 -0400)] 
man: update sysctl example about netfilter

It turns out that since kernel 3.18 netfilter on bridged packets
is off anyway, so the example should be reworded (and the module
name updated).

8 years agoman: information about available properties
Zbigniew Jędrzejewski-Szmek [Tue, 30 Jun 2015 00:19:56 +0000 (20:19 -0400)] 
man: information about available properties

https://bugzilla.redhat.com/show_bug.cgi?id=1144496

8 years agoMerge pull request #412 from fsateler/sysv-invalid-names-v2
Tom Gundersen [Mon, 29 Jun 2015 21:30:14 +0000 (23:30 +0200)] 
Merge pull request #412 from fsateler/sysv-invalid-names-v2

sysv-generator: detect invalid names and escape them V2

8 years agoMerge pull request #413 from jaystrictor/manpages
Daniel Mack [Mon, 29 Jun 2015 20:23:25 +0000 (22:23 +0200)] 
Merge pull request #413 from jaystrictor/manpages

man: remove repeated word "the" and polish

8 years agoman: remove repeated word "the" and polish 413/head
Jay Strict [Mon, 29 Jun 2015 19:20:02 +0000 (21:20 +0200)] 
man: remove repeated word "the" and polish

8 years agosysv-generator: escape names when translating from sysv name 412/head
Felipe Sateler [Sun, 28 Jun 2015 00:00:32 +0000 (21:00 -0300)] 
sysv-generator: escape names when translating from sysv name

While the LSB suggests only [A-Za-z0-9], that doesn't prevent admins
from doing the wrong thing. Lets not generate invalid names in
that case.

8 years agosysv-generator: detect invalid provided unit names
Felipe Sateler [Sun, 28 Jun 2015 00:02:53 +0000 (21:02 -0300)] 
sysv-generator: detect invalid provided unit names

Do not assume that a non-service unit type is a target.

8 years agoMerge pull request #410 from teg/docs-gitignore
Daniel Mack [Mon, 29 Jun 2015 18:02:14 +0000 (20:02 +0200)] 
Merge pull request #410 from teg/docs-gitignore

docs: remove stale .gitignore

8 years agodocs: remove stale .gitignore 410/head
Tom Gundersen [Mon, 29 Jun 2015 17:45:10 +0000 (19:45 +0200)] 
docs: remove stale .gitignore

This is no longer useful as the udev docs are gone.

8 years agoMerge pull request #408 from ColdPie1/fix_resp
Daniel Mack [Mon, 29 Jun 2015 16:58:19 +0000 (18:58 +0200)] 
Merge pull request #408 from ColdPie1/fix_resp

man: Remove instances of pseudo-English "resp."

8 years agoman: Remove instances of pseudo-English "resp." 408/head
Andrew Eikum [Fri, 26 Jun 2015 16:02:00 +0000 (11:02 -0500)] 
man: Remove instances of pseudo-English "resp."

Me again :) Just noticed one of these in a manpage and did another pass
to clean them up.  See 16dad32e437fdf2ffca03cc60a083d84bd31886f for
explanation, though the link needs updating:
<http://transblawg.eu/2004/02/26/resp-and-other-non-existent-english-wordsnicht-existente-englische-worter/>

8 years agoMerge pull request #387 from kaysievers/wip
Tom Gundersen [Mon, 29 Jun 2015 14:02:33 +0000 (16:02 +0200)] 
Merge pull request #387 from kaysievers/wip

udev: Remove accelerometer helper

8 years agoMerge pull request #403 from cedricde/patch-1
Kay Sievers [Mon, 29 Jun 2015 08:59:35 +0000 (10:59 +0200)] 
Merge pull request #403 from cedricde/patch-1

Process persistent storage rules for cciss devices

8 years agoProcess cciss devices 403/head
Cédric Delmas [Mon, 29 Jun 2015 07:54:58 +0000 (09:54 +0200)] 
Process cciss devices

Do not skip the persistent storage rules for cciss devices

8 years agoMerge pull request #402 from systemd-mailing-devs/1435512180-3659-1-git-send-email...
Daniel Mack [Mon, 29 Jun 2015 03:43:26 +0000 (05:43 +0200)] 
Merge pull request #402 from systemd-mailing-devs/1435512180-3659-1-git-send-email-ebiggers3@gmail.com

util: fix incorrect escape sequence in string_is_safe()

8 years agoMerge pull request #399 from gmacario/fix-issue341-v2
Daniel Mack [Mon, 29 Jun 2015 03:03:38 +0000 (05:03 +0200)] 
Merge pull request #399 from gmacario/fix-issue341-v2

bootchart: reset list_sample_data head before generating SVG

8 years agoMerge pull request #388 from fsateler/doc-pidfile-removal
Tom Gundersen [Sun, 28 Jun 2015 21:10:46 +0000 (23:10 +0200)] 
Merge pull request #388 from fsateler/doc-pidfile-removal

systemd.service.xml: document that systemd removes the PIDFile

8 years agoutil: fix incorrect escape sequence in string_is_safe() 402/head
Eric Biggers [Sun, 28 Jun 2015 17:23:00 +0000 (12:23 -0500)] 
util: fix incorrect escape sequence in string_is_safe()

8 years agobootchart: reset list_sample_data head before generating SVG 399/head
Gianpaolo Macario [Sat, 27 Jun 2015 07:17:07 +0000 (07:17 +0000)] 
bootchart: reset list_sample_data head before generating SVG

Until commit 1f2ecb0 ("bootchart: kill a bunch of global variables")
variable "head" was declared global and this action was performed by svg_header.
Now that "head" is local and passed to each function called by svg_do(...)
move the code at the beginning of svg_do(...) to restore the correct behaviour.

8 years agosystemd.service.xml: document that systemd removes the PIDFile 388/head
Felipe Sateler [Sat, 27 Jun 2015 20:25:06 +0000 (17:25 -0300)] 
systemd.service.xml: document that systemd removes the PIDFile

8 years agoudev: Remove accelerometer helper 387/head
Bastien Nocera [Sat, 27 Jun 2015 19:48:52 +0000 (21:48 +0200)] 
udev: Remove accelerometer helper

It's moved to the iio-sensor-proxy D-Bus service.

8 years agoMerge pull request #377 from zonque/logind
Tom Gundersen [Fri, 26 Jun 2015 19:41:44 +0000 (21:41 +0200)] 
Merge pull request #377 from zonque/logind

logind: fix delayed execution regression

8 years agoMerge pull request #353 from kaysievers/hid
Greg Kroah-Hartman [Fri, 26 Jun 2015 16:51:11 +0000 (09:51 -0700)] 
Merge pull request #353 from kaysievers/hid

rules: remove all power management from udev

8 years agoMerge pull request #379 from whot/hwdb-updates
Kay Sievers [Fri, 26 Jun 2015 09:33:04 +0000 (11:33 +0200)] 
Merge pull request #379 from whot/hwdb-updates

Revert "hwdb: add a touchpad hwdb"

8 years agoRevert "hwdb: add a touchpad hwdb" 379/head
Peter Hutterer [Fri, 26 Jun 2015 06:09:48 +0000 (16:09 +1000)] 
Revert "hwdb: add a touchpad hwdb"

The main purpose of this hwdb was to tag touchpads that have the physical
trackstick buttons wired to the touchpad (Lenovo Carbon X1 3rd, Lenovo *50
series).  This hwdb is not required on kernels 4.0 and above, the kernel now
re-routes button presses through the trackstick's device node. Userspace does
not need to do anything.

See kernel commit cdd9dc195916ef5644cfac079094c3c1d1616e4c.

This reverts commit 001a247324b44c0e0b8fdba41a6fc66e7465b8b6.

8 years agologind: fix delayed execution regression 377/head
Daniel Mack [Mon, 8 Jun 2015 20:58:50 +0000 (22:58 +0200)] 
logind: fix delayed execution regression

Commit c0f32805 ("logind: use sd_event timer source for inhibitor
logic") reworked the main loop logic of logind so that it uses a
real timeout callback handler to execute delayed functions.

What the old code did, however, was to call those functions on
every iteration in the main loop, not only when the timeout
expired.

Restore that behavior by bringing back manager_dispatch_delayed(),
and call it from manager_run(). The internal event source callback
manager_inhibit_timeout_handler() was turned into a wrapper of
manager_dispatch_delayed() now.

8 years agoMerge pull request #367 from msekletar/install-unit-file-list-assert
Daniel Mack [Thu, 25 Jun 2015 14:38:41 +0000 (16:38 +0200)] 
Merge pull request #367 from msekletar/install-unit-file-list-assert

install: explicitly return 0 on success

8 years agoMerge pull request #366 from gmacario/fix-issue139-v5
Daniel Mack [Thu, 25 Jun 2015 14:37:06 +0000 (16:37 +0200)] 
Merge pull request #366 from gmacario/fix-issue139-v5

bootchart: Account CPU time spent in non-main threads of processes (v5)

8 years agoinstall: explicitly return 0 on success 367/head
Michal Sekletar [Thu, 25 Jun 2015 14:06:40 +0000 (16:06 +0200)] 
install: explicitly return 0 on success

Maybe there is some left-over value stored in r from previous function
call. Let's make sure we always return consistent error code when we reach end of
the function body.

Fixes following crash of test-install,

Assertion 'r == 0' failed at src/test/test-install.c:52, function main(). Aborting.
[1]    11703 abort (core dumped)  ./test-install

8 years agobootchart: Account CPU time spent in non-main threads of processes (v5) 366/head
Gianpaolo Macario [Thu, 11 Jun 2015 10:03:30 +0000 (10:03 +0000)] 
bootchart: Account CPU time spent in non-main threads of processes (v5)

Fix for issue https://github.com/systemd/systemd/issues/139

- Implement fixes suggested by @teg to -v2
- Implement fixes suggested by @zonque to -v3 and -v4

8 years agoMerge pull request #363 from zonque/proxy
Kay Sievers [Thu, 25 Jun 2015 12:36:59 +0000 (14:36 +0200)] 
Merge pull request #363 from zonque/proxy

bus-proxy: ignore 'log' attributes in XML policy

8 years agobus-proxy: ignore 'log' attributes in XML policy 363/head
Daniel Mack [Thu, 25 Jun 2015 11:13:17 +0000 (13:13 +0200)] 
bus-proxy: ignore 'log' attributes in XML policy

'log' is unsupported but nothing to warn about. Ignore it just like we
ignore 'eavesdrop'.

8 years agoMerge pull request #355 from dvdhrm/netlink
Tom Gundersen [Thu, 25 Jun 2015 11:02:53 +0000 (13:02 +0200)] 
Merge pull request #355 from dvdhrm/netlink

sd-netlink cleanups

8 years agoMerge pull request #335 from aroig/gh/fix_check_unneeded
Lennart Poettering [Wed, 24 Jun 2015 12:52:21 +0000 (08:52 -0400)] 
Merge pull request #335 from aroig/gh/fix_check_unneeded

core: fix reversed dependency check in unit_check_unneeded

8 years agoMerge pull request #347 from poettering/check-api-docs
Lennart Poettering [Wed, 24 Jun 2015 12:40:09 +0000 (08:40 -0400)] 
Merge pull request #347 from poettering/check-api-docs

build-sys: make sure check-api-docs sees each symbol just once

8 years agosd-netlink: don't export internal type-system details 355/head
David Herrmann [Wed, 24 Jun 2015 11:27:34 +0000 (13:27 +0200)] 
sd-netlink: don't export internal type-system details

The kernel bonding layer allows passing an array of ARP IP targets as
bond-configuration. Due to the weird implementation of arrays in netlink
(which we haven't figure out a generic way to support, yet), we usually
hard-code the supported array-sizes. However, this should not be exported
from sd-netlink.

Instead, make sure the caller just uses it's current hack of enumerating
the types, and the sd-netlink core will have it's own list of supported
array-sizes (to be removed in future extensions, btw!). If either does not
match, we will just return a normal error.

Note that we provide 2 constants for ARP_IP_TARGETS_MAX now. However, both
have very different reasons:
 - the constant in netdev-bond.c is used to warn the user that the given
   number of targets might not be supported by the kernel (even though the
   kernel might increase that number at _any_ time)
 - the constant in sd-netlink is solely used due to us missing a proper
   array implementation. Once that's supported in the type-system, it can
   be removed without notice

Last but not least, this patch turns the log_error() into a log_warning().
Given that the previous condition was off-by-one, anyway, it never hit at
the right time. Thus, it was probably of no real use.

8 years agosd-netlink: don't treat NULL as root type-system
David Herrmann [Tue, 23 Jun 2015 10:10:38 +0000 (12:10 +0200)] 
sd-netlink: don't treat NULL as root type-system

Explicitly export the root type-system to the type-system callers. This
avoids treating NULL as root, which for one really looks backwards (NULL
is usually a leaf, not root), and secondly prevents us from properly
debugging calling into non-nested types.

Also rename the root to "type_system_root". Once we support more than
rtnl, well will have to revisit that, anyway.

8 years agosd-netlink: don't treat type_system->count==0 as invalid
David Herrmann [Tue, 23 Jun 2015 10:03:10 +0000 (12:03 +0200)] 
sd-netlink: don't treat type_system->count==0 as invalid

Empty type-systems are just fine. Avoid the nasty hack in
union-type-systems that treat empty type-systems as invalid. Instead check
for the actual types-array and make sure it's non-NULL (which is even true
for empty type-systems, due to "empty_types" array).

8 years agosd-netlink: make sure the root-level type is nested
David Herrmann [Tue, 23 Jun 2015 08:47:44 +0000 (10:47 +0200)] 
sd-netlink: make sure the root-level type is nested

In sd-netlink-message, we always guarantee that the currently selected
type-system is non-NULL. Otherwise, we would be unable to parse any types
in the current container level. Hence, this assertion must be true:
    message->container_type_system[m->n_containers] != NULL

During message_new() we currently do not verify that this assertion is
true. Instead, we blindly access nl_type->type_system and use it (which
might be NULL for basic types and unions). Fix this, by explicitly
checking that the root-level type is nested.

Note that this is *not* a strict requirement of netlink, but it's a strict
requirement for all message types we currently support. Furthermore, all
the callers of message_new() already verify that only supported types are
passed, therefore, this is a pure cosmetic check. However, it might be
needed on the future, so make sure we don't trap into this once we change
the type-system.

8 years agosd-netlink: drop NETLINK_TYPE_META
David Herrmann [Tue, 23 Jun 2015 09:54:43 +0000 (11:54 +0200)] 
sd-netlink: drop NETLINK_TYPE_META

The NETLINK_TYPE_META pseudo-type is actually equivalent to an empty
nested type. Drop it and define an empty type-system instead.

This also has the nice side-effect that m->container_type_system[0] is
never NULL (which has really nasty side-effects if you try to read
attributes).

8 years agosd-netlink: turn 'max' into 'count' to support empty type-systems
David Herrmann [Tue, 23 Jun 2015 09:46:48 +0000 (11:46 +0200)] 
sd-netlink: turn 'max' into 'count' to support empty type-systems

Right now we store the maximum type-ID of a type-system. This prevents us
from creating empty type-systems. Store the "count" instead, which should
be treated as max+1.

Note that type_system_union_protocol_get_type_system() currently has a
nasty hack to treat empty type-systems as invalid. This might need some
modification later on as well.

8 years agosd-netlink: avoid casting size_t into int
David Herrmann [Tue, 23 Jun 2015 09:18:53 +0000 (11:18 +0200)] 
sd-netlink: avoid casting size_t into int

size_t is usually 64bit and int 32bit on a 64bit machine. This probably
does not matter for netlink message sizes, but nevertheless, avoid
hard-coding it anywhere.

8 years agosd-netlink: make NLTypeSystem internal
David Herrmann [Tue, 23 Jun 2015 09:07:59 +0000 (11:07 +0200)] 
sd-netlink: make NLTypeSystem internal

Same as NLType, move NLTypeSystem into netlink-types.c and hide it from
the outside. Provide an accessor function for the 'max' field that is used
to allocate suitable array sizes.

Note that this will probably be removed later on, anyway. Once we support
bigger type-systems, it just seems impractical to allocate such big arrays
for each container entry. An RBTree would probably do just fine.

8 years agosd-netlink: make NLType internal
David Herrmann [Tue, 23 Jun 2015 09:03:10 +0000 (11:03 +0200)] 
sd-netlink: make NLType internal

If we extend NLType to support arrays and further extended types, we
really want to avoid hard-coding the type-layout outside of
netlink-types.c. We already avoid accessing nl_type->type_system outside
of netlink-types.c, extend this to also avoid accessing any other fields.

Provide accessor functions for nl_type->type and nl_type->size and then
move NLType away from the type-system header.

With this in place, follow-up patches can safely turn "type_system" and
"type_system_union" into a real "union { }", and then add another type for
arrays.

8 years agosd-netlink: don't access type->type_system[_union] directly
David Herrmann [Tue, 23 Jun 2015 08:51:25 +0000 (10:51 +0200)] 
sd-netlink: don't access type->type_system[_union] directly

Make sure we never access type->type_system or type->type_system_union
directly. This is an implementation detail of the type-system and we
should always use the accessors. Right now, they only exist for 2-level
accesses (type-system to type-system). This patch introduces the 1-level
accessors (type to type-system) and makes use of it.

This patch makes sure the proper assertions are in place, so we never
accidentally access sub-type-systems for non-nested/union types.

Note that this places hard-asserts on the accessors. This should be fine,
as we expect callers to only access sub type-systems if they *know*
they're dealing with nested types.

8 years agosd-netlink: rename NLA_ to NETLINK_TYPE_
David Herrmann [Tue, 23 Jun 2015 07:56:59 +0000 (09:56 +0200)] 
sd-netlink: rename NLA_ to NETLINK_TYPE_

The NLA_ names are used to name real datatypes we extract out of netlink
messages. The kernel has an internal enum with the same names
(NLA_foobar), which is *NOT* binary compatible to our types. Furthermore,
we support a different set of types than the kernel (as we try to treat
some kernel peculiarities as our own types to simplify the API).

Rename NLA_ to NETLINK_TYPE_ to make clear that this is our own set of
types.

8 years agorules: remove all power management from udev 353/head
Kay Sievers [Wed, 24 Jun 2015 11:10:07 +0000 (13:10 +0200)] 
rules: remove all power management from udev

It is not udev's task to apply any of these setting that way, or
from udev rules files. Things need to be sortet out in the kernel,
or explicit whitelist can possibly be added to the hardware database.
Until that is sorted out, and general agreement, udev is not
willing to maintain any such lists or power management settings
in general.

"Thanks for digging this out! I thought my Kinesis keyboard got broken
and ordered a new one, only to find out that the new one doesn't work
as well. I'm not sure whether we should start collecting a blacklist
of keyboards which don't work with USB autosuspend, or rather a
whitelist? Or revert this wholesale?"

  https://github.com/systemd/systemd/issues/340

8 years agoMerge pull request #346 from poettering/install-bad-memory
Daniel Mack [Wed, 24 Jun 2015 08:09:43 +0000 (10:09 +0200)] 
Merge pull request #346 from poettering/install-bad-memory

install: fix minor bad memory access

8 years agoMerge pull request #349 from systemd-mailing-devs/1435103298-2439-1-git-send-email...
Kay Sievers [Wed, 24 Jun 2015 00:27:30 +0000 (02:27 +0200)] 
Merge pull request #349 from systemd-mailing-devs/1435103298-2439-1-git-send-email-jengelh@inai.de

ata_id: unbotch format specifier

8 years agoata_id: unbotch format specifier 349/head
Jan Engelhardt [Tue, 23 Jun 2015 23:48:18 +0000 (01:48 +0200)] 
ata_id: unbotch format specifier

Commit v218-247-g11c6f69 broke the output of the utility. "%1$" PRIu64
"x" expands to "%1$lux", essentially "%lux", which shows the problem.
u and x cannot be combined, u wins as the type character, and x gets
emitted verbatim to stdout.

References: https://bugzilla.redhat.com/show_bug.cgi?id=1227503

8 years agoinstall: fix bad memory access 346/head
Lennart Poettering [Tue, 23 Jun 2015 23:16:18 +0000 (19:16 -0400)] 
install: fix bad memory access

8 years agobuild-sys: make sure check-api-docs sees each symbol just once 347/head
Lennart Poettering [Tue, 23 Jun 2015 19:32:38 +0000 (21:32 +0200)] 
build-sys: make sure check-api-docs sees each symbol just once

Given that some symbols are exposed by multiple libraries (due to the
compatibility libraries), let's ensure "make check-api-docs" only shows
each symbol once by filtering out duplicates.

8 years agoMerge pull request #339 from teg/udev-coverity
Daniel Mack [Tue, 23 Jun 2015 22:12:28 +0000 (00:12 +0200)] 
Merge pull request #339 from teg/udev-coverity

coverity fixes in udev

8 years agoMerge pull request #338 from xnox/fix-copy-bytes
Kay Sievers [Tue, 23 Jun 2015 15:34:24 +0000 (17:34 +0200)] 
Merge pull request #338 from xnox/fix-copy-bytes

test: fix test-copy without /etc/os-release.

8 years agotest: fix test-copy without /etc/os-release. 338/head
Dimitri John Ledkov [Tue, 23 Jun 2015 15:22:40 +0000 (16:22 +0100)] 
test: fix test-copy without /etc/os-release.

8 years agoudevadm: trigger - check return values 339/head
Tom Gundersen [Tue, 23 Jun 2015 15:16:28 +0000 (17:16 +0200)] 
udevadm: trigger - check return values

Fixes CID#1296243.

8 years agoudev: worker - check return value of udev_monitor_enable_receiving()
Tom Gundersen [Tue, 23 Jun 2015 15:07:40 +0000 (17:07 +0200)] 
udev: worker - check return value of udev_monitor_enable_receiving()

Fixes CID#1297430.

8 years agoudev: event - check return code of dup2()
Tom Gundersen [Tue, 23 Jun 2015 15:03:19 +0000 (17:03 +0200)] 
udev: event - check return code of dup2()

This fixes CID#1304688.

8 years agoudev: bulitin-hwdb - fix memory leak
Tom Gundersen [Tue, 23 Jun 2015 14:57:57 +0000 (16:57 +0200)] 
udev: bulitin-hwdb - fix memory leak

This fixes CID#1292782.

8 years agoMerge pull request #332 from xnox/bootchart-scales
Daniel Mack [Tue, 23 Jun 2015 14:37:19 +0000 (16:37 +0200)] 
Merge pull request #332 from xnox/bootchart-scales

bootchart: fix per-cpu & small scales.

8 years agobootchart: fix per-cpu scales. 332/head
Dimitri John Ledkov [Tue, 23 Jun 2015 10:35:47 +0000 (11:35 +0100)] 
bootchart: fix per-cpu scales.

Closes systemd/systemd#330

8 years agocore: fix reversed dependency check in unit_check_unneeded 335/head
Abdo Roig-Maranges [Tue, 23 Jun 2015 09:13:13 +0000 (11:13 +0200)] 
core: fix reversed dependency check in unit_check_unneeded

This was introduced by commit be7d9ff730cb88d7c6a8 and breaks
StopWhenUnneeded=true in the presence of a Requisite dependency.

8 years agoREADME: mention "git archive"
Kay Sievers [Tue, 23 Jun 2015 11:40:53 +0000 (13:40 +0200)] 
README: mention "git archive"

8 years agoMerge pull request #318 from walyong/smack_v02
Daniel Mack [Tue, 23 Jun 2015 11:26:23 +0000 (13:26 +0200)] 
Merge pull request #318 from walyong/smack_v02

SMACK v02: support modify rules and add default executed process label

8 years agoMerge pull request #328 from kaysievers/nodist
Daniel Mack [Tue, 23 Jun 2015 11:04:52 +0000 (13:04 +0200)] 
Merge pull request #328 from kaysievers/nodist

build-sys: add all source files and no built files to the tar ball

8 years agobuild-sys: add all source files and no built files to the tar ball 328/head
Kay Sievers [Mon, 22 Jun 2015 22:13:16 +0000 (00:13 +0200)] 
build-sys: add all source files and no built files to the tar ball

This fully synchronizes the content of a "make dist" and a "git archive"
tar ball.

  http://lists.freedesktop.org/archives/systemd-devel/2015-June/033214.html

8 years agoman: install networkctl and sysusers.d man page conditionally
Michael Biebl [Tue, 23 Jun 2015 08:37:34 +0000 (10:37 +0200)] 
man: install networkctl and sysusers.d man page conditionally

8 years agoMerge pull request #324 from llua/zsh-completion
Daniel Mack [Tue, 23 Jun 2015 08:01:42 +0000 (10:01 +0200)] 
Merge pull request #324 from llua/zsh-completion

zsh-completion: _loginctl/_systemd/_systemd-inhibit improvements

8 years agoMerge pull request #326 from whot/hwdb-updates
Daniel Mack [Tue, 23 Jun 2015 08:00:42 +0000 (10:00 +0200)] 
Merge pull request #326 from whot/hwdb-updates

Hwdb updates

8 years agohwdb: move a couple of entries to expected sort order 326/head
Peter Hutterer [Tue, 23 Jun 2015 05:51:02 +0000 (15:51 +1000)] 
hwdb: move a couple of entries to expected sort order

8 years agohwdb: add Logitech MX Revolution
Peter Hutterer [Tue, 23 Jun 2015 05:50:09 +0000 (15:50 +1000)] 
hwdb: add Logitech MX Revolution

8 years agobuild-sys: let "make git-tar" archive HEAD
Kay Sievers [Mon, 22 Jun 2015 22:49:34 +0000 (00:49 +0200)] 
build-sys: let "make git-tar" archive HEAD

8 years agozsh-completion: _loginctl/_systemd/_systemd-inhibit improvements 324/head
Eric Cook [Mon, 22 Jun 2015 22:07:32 +0000 (18:07 -0400)] 
zsh-completion: _loginctl/_systemd/_systemd-inhibit improvements

_loginctl: respects the verbose style. which allows a user to get
the pre d5df0d950f8bc behavior of not showing a description for sessions
and users, by default they aren't shown.

zstyle ':completion:*' verbose true
or
zstyle ':completion:*:loginctl*:*' verbose true # or similar
Will show the descriptions.

zstyle ':completion:*' verbose true
and
zstyle ':completion:*:loginctl*:*' verbose false # or similar
Won't show descriptions for loginctl only

_systemd: complete pids for systemd-notify's --pid option.
display a message of the expected argument for other options.

_systemd-inhibit: complete block & delay for --mode
display a message of the expected argument for --who/--why

8 years agobuild-sys: remove $(NULL)
Kay Sievers [Mon, 22 Jun 2015 21:27:08 +0000 (23:27 +0200)] 
build-sys: remove $(NULL)

8 years agobuild-sys: add custom "make git-tar" target
Kay Sievers [Mon, 22 Jun 2015 21:08:55 +0000 (23:08 +0200)] 
build-sys: add custom "make git-tar" target

8 years agoMerge pull request #314 from geertj/missing-exports
Lennart Poettering [Mon, 22 Jun 2015 20:47:42 +0000 (22:47 +0200)] 
Merge pull request #314 from geertj/missing-exports

export sd_bus_object_added() / _removed()

8 years agoMerge pull request #319 from teg/udev-cgroup-warning
Lennart Poettering [Mon, 22 Jun 2015 20:32:26 +0000 (22:32 +0200)] 
Merge pull request #319 from teg/udev-cgroup-warning

udevd: suppress warning if we don't find cgroup

8 years agoMerge pull request #322 from kaysievers/wip
Kay Sievers [Mon, 22 Jun 2015 18:22:57 +0000 (20:22 +0200)] 
Merge pull request #322 from kaysievers/wip

man: remove outdated links and stray character

8 years agoman: remove stray · from header 322/head
Kay Sievers [Mon, 22 Jun 2015 17:54:52 +0000 (19:54 +0200)] 
man: remove stray · from header

8 years agoman: remove links to outdated kdbus development repository
Kay Sievers [Mon, 22 Jun 2015 17:54:09 +0000 (19:54 +0200)] 
man: remove links to outdated kdbus development repository

8 years agoudevd: suppress warning if we don't find cgroup 319/head
Tom Gundersen [Mon, 22 Jun 2015 14:53:54 +0000 (16:53 +0200)] 
udevd: suppress warning if we don't find cgroup

This is expected on non-systemd systems, so just log it at debug level.

This fixes issue #309.

8 years agosmack: add default smack process label config 318/head
WaLyong Cho [Mon, 8 Jun 2015 10:41:01 +0000 (19:41 +0900)] 
smack: add default smack process label config

Similar to SmackProcessLabel=, if this configuration is set, systemd
executes processes with given SMACK label. If unit has
SmackProcessLabel=, this config is overwritten.
But, do NOT be confused with SMACK64EXEC of execute file. This default
execute process label(and also label which is set by
SmackProcessLabel=) is set fork-ed process SMACK subject label and
used to access the execute file.
If the execution file has also SMACK64EXEC, finally executed process
has SMACK64EXEC subject.
While if the execution file has no SMACK64EXEC, the executed process
has label of this config(or label which is set by
SmackProcessLabel=). Because if execution file has no SMACK64EXEC then
excuted process inherits label from caller process(in this case, the
caller is systemd).

8 years agosmack: support smack access change-rule
WaLyong Cho [Wed, 10 Jun 2015 02:33:00 +0000 (11:33 +0900)] 
smack: support smack access change-rule

Smack is also able to have modification rules of existing rules. In
this case, the rule has additional argument to modify previous
rule. /sys/fs/smackfs/load2 node can only take three arguments:
subject object access. So if modification rules are written to
/sys/fs/smackfs/load2, EINVAL error is happen. Those modification
rules have to be written to /sys/fs/smackfs/change-rule.
To distinguish access with operation of cipso2, split write_rules()
for each operation. And, in write access rules, parse the rule and if
the rule has four argument then write into
/sys/fs/smackfs/change-rule.
https://lwn.net/Articles/532340/

fwrite() or fputs() are fancy functions to write byte stream such like
regular file. But special files on linux such like proc, sysfs are not
stream of bytes. Those special files on linux have to be written with
specific size.
By this reason, in some of many case, fputs() was failed to write
buffer to smack load2 node.
The write operation for the smack nodes should be performed with
write().

8 years agoMerge pull request #315 from llua/zsh-completion
Daniel Mack [Mon, 22 Jun 2015 08:30:22 +0000 (10:30 +0200)] 
Merge pull request #315 from llua/zsh-completion

zsh-completion: _systemd-nspawn - add more argument completion

8 years agoexport sd_bus_object_added() / _removed() 314/head
Geert Jansen [Sun, 21 Jun 2015 11:44:35 +0000 (07:44 -0400)] 
export sd_bus_object_added() / _removed()

Fixes #306.

8 years agozsh-completion: _systemd-nspawn - add more argument completion 315/head
Eric Cook [Mon, 22 Jun 2015 01:59:26 +0000 (21:59 -0400)] 
zsh-completion: _systemd-nspawn - add more argument completion

filenames will be completed for --image/-i/--bind/--bind-ro/--tmpfs
network interfaces for --network-(interface|macvlan|ipvlan|bridge)
users for --user/-u, yes & no for --register, x86 * x86-64 for
--personality

display a message of the expected argument for --machine/-M/--uuid
--slice/-S/--port/-p/--selinux-*/-Z/-L/--setenv

Allow completing commands(and their options) of the host system for COMMAND

8 years agoMerge pull request #304 from mknjc/master
Daniel Mack [Sun, 21 Jun 2015 09:32:12 +0000 (11:32 +0200)] 
Merge pull request #304 from mknjc/master

fix machinectl bind man entry

8 years agopam_systemd: Properly check kdbus availability
Jan Alexander Steffens (heftig) [Sun, 21 Jun 2015 03:59:34 +0000 (05:59 +0200)] 
pam_systemd: Properly check kdbus availability

This properly avoids setting DBUS_SESSION_BUS_ADDRESS if kdbus
is loaded (or built into the kernel) but not wanted.

8 years agofix machinectl bind man entry 304/head
Markus Knetschke [Sat, 20 Jun 2015 15:05:48 +0000 (17:05 +0200)] 
fix machinectl bind man entry

8 years agoMerge pull request #303 from zonque/man
David Herrmann [Sat, 20 Jun 2015 12:43:45 +0000 (14:43 +0200)] 
Merge pull request #303 from zonque/man

man: rename systemd-bus-proxyd@.service.xml → systemd-bus-proxyd.…

8 years agoman: rename systemd-bus-proxyd@.service.xml → systemd-bus-proxyd.service.xml 303/head
Daniel Mack [Sat, 20 Jun 2015 12:25:27 +0000 (14:25 +0200)] 
man: rename systemd-bus-proxyd@.service.xml → systemd-bus-proxyd.service.xml

The bus proxy is multi-threaded now. Reflect that in the man pages.

8 years agoMerge pull request #301 from daurnimator/master
Daniel Mack [Sat, 20 Jun 2015 12:00:28 +0000 (14:00 +0200)] 
Merge pull request #301 from daurnimator/master

man: sd-bus: it's 'machine' not 'container'

8 years agoman: sd-bus: it's 'machine' not 'container' 301/head
daurnimator [Sat, 20 Jun 2015 08:57:53 +0000 (18:57 +1000)] 
man: sd-bus: it's 'machine' not 'container'

8 years agoman: be more careful with the wording in busctl(1)
Lennart Poettering [Fri, 19 Jun 2015 20:29:29 +0000 (22:29 +0200)] 
man: be more careful with the wording in busctl(1)

8 years agoman: various documentation improvements for sd-bus
Lennart Poettering [Fri, 19 Jun 2015 20:18:36 +0000 (22:18 +0200)] 
man: various documentation improvements for sd-bus

8 years agopo: run make update-po v221
Lennart Poettering [Fri, 19 Jun 2015 00:13:03 +0000 (02:13 +0200)] 
po: run make update-po

8 years agoMerge pull request #298 from zonque/intltool
Lennart Poettering [Fri, 19 Jun 2015 10:47:21 +0000 (12:47 +0200)] 
Merge pull request #298 from zonque/intltool

build-sys: bring back an intltool-update workaround

8 years agobuild-sys: bring back an intltool-update workaround 298/head
Daniel Mack [Fri, 19 Jun 2015 08:22:06 +0000 (10:22 +0200)] 
build-sys: bring back an intltool-update workaround

Currently, 'make distcheck' fails with an error such as this:

    srcdir=../../po /usr/bin/intltool-update -m
    The following files contain translations and are currently not in use.
    Please consider adding these to the POTFILES.in file, located in the po/ directory.

    build2/src/core/org.freedesktop.systemd1.policy.in
    build3/src/core/org.freedesktop.systemd1.policy.in

    [...]

This is caused by a new behavior of autmake 1.15 which changed the
location of the build tree during 'make distcheck', and the fact that
intltool doesn't yet ignore that paths.

We used to have a workaround in configure.ac that makes the failing call
a no-op, but it was accidentially removed in 23756070
("remove gudev and gtk-doc").

Bring back that snipet for now, until intltool and automake sorted out
their issues and like each other again.

Also see

  https://bugs.launchpad.net/intltool/+bug/1117944

8 years agoMerge pull request #297 from ssahani/net
Ronny Chevalier [Fri, 19 Jun 2015 08:24:13 +0000 (10:24 +0200)] 
Merge pull request #297 from ssahani/net

networkd: vlan improve logging

8 years agonetworkd: vlan improve logging 297/head
Susant Sahani [Mon, 15 Jun 2015 03:34:28 +0000 (09:04 +0530)] 
networkd: vlan improve logging

Replaces strerror() usage with log_netdev_error_errno()