chiark / gitweb /
6 years agopath-lookup: allow /run to override /etc in generator search
Zbigniew Jędrzejewski-Szmek [Fri, 9 Jan 2015 04:34:21 +0000 (23:34 -0500)]
path-lookup: allow /run to override /etc in generator search

Generators are different than unit files: they are never automatically
generated, so there's no point in allowing /etc to override /run. On
the other hand, overriding /etc might be useful in some cases.

6 years agotest-path-lookup: add simple test for path lookup functions
Zbigniew Jędrzejewski-Szmek [Fri, 9 Jan 2015 04:29:33 +0000 (23:29 -0500)]
test-path-lookup: add simple test for path lookup functions

6 years agotest-util: make sure that masking and overriding works
Zbigniew Jędrzejewski-Szmek [Fri, 9 Jan 2015 02:21:12 +0000 (21:21 -0500)]
test-util: make sure that masking and overriding works

6 years agoImplement masking and overriding of generators
Zbigniew Jędrzejewski-Szmek [Fri, 9 Jan 2015 01:47:25 +0000 (20:47 -0500)]
Implement masking and overriding of generators

Sometimes it is necessary to stop a generator from running. Either
because of a bug, or for testing, or some other reason. The only way
to do that would be to rename or chmod the generator binary, which is
inconvenient and does not survive upgrades. Allow masking and
overriding generators similarly to units and other configuration

For the systemd instance, masking would be more common, rather than
overriding generators. For the user instances, it may also be useful
for users to have generators in $XDG_CONFIG_HOME to augment or
override system-wide generators.

Directories are searched according to the usual scheme (/usr/lib,
/usr/local/lib, /run, /etc), and files with the same name in higher
priority directories override files with the same name in lower
priority directories. Empty files and links to /dev/null mask a given

6 years agoSimplify execute_directory()
Zbigniew Jędrzejewski-Szmek [Thu, 8 Jan 2015 22:30:07 +0000 (17:30 -0500)]
Simplify execute_directory()

Remove the optional sepearate opening of the directory,
it would be just too complicated with the change to
multiple directories.

Move the middle of execute_directory() to a seperate
function to make it easier to grok.

6 years agobus-proxy: implement 'at_console'
David Herrmann [Sun, 11 Jan 2015 16:23:24 +0000 (17:23 +0100)]
bus-proxy: implement 'at_console'

The 'at_console' policy-category allows to apply policy-items to clients
depending on whether they're run from within a valid user-session or not.
We use sd_uid_get_seats() to check whether a user has a valid seat (which
excludes remote-sessions like ssh).

6 years agobus-proxy: print message direction in policy logs
David Herrmann [Sun, 11 Jan 2015 14:27:18 +0000 (15:27 +0100)]
bus-proxy: print message direction in policy logs

Make sure to print "dbus-1 to kernel" or "kernel to dbus-1" in policy logs
to better diagnose the situation.

6 years agobus-proxy: fix receiver policy on dbus-1 to kdbus signals
David Herrmann [Sun, 11 Jan 2015 14:14:14 +0000 (15:14 +0100)]
bus-proxy: fix receiver policy on dbus-1 to kdbus signals

If a dbus-1 client sends a broadcasted signal via the bus-proxy to kdbus,
the bus-proxy has no idea who the receiver is. Classic dbus-daemon has
bus-access and can perform policy checks for each receiver, but we cant.
Instead, we know the kernel will perform receiver policy checks for
broadcasts, so we can skip the policy check and just push it into the

This fixes wpa_supplicant which has DENY rules on receive_type=signal for
non-root. As we never know the target, we always DENY all broadcasts from

Note that will still perform receiver-policy checks for signals that we
get from the kernel back to us. In those cases, we know the receiver
(which is us).

6 years agobus-proxy: fix swapped path/interface debug messages
David Herrmann [Sun, 11 Jan 2015 13:54:33 +0000 (14:54 +0100)]
bus-proxy: fix swapped path/interface debug messages

The policy debug messages swapped "path=" and "interface=", fix this.

6 years agobus-proxy: fix policy for expected/non-expected reply tags
David Herrmann [Sun, 11 Jan 2015 13:13:19 +0000 (14:13 +0100)]
bus-proxy: fix policy for expected/non-expected reply tags

dbus-1 distinguishes expected and non-expected replies. An expected reply
is a reply that is sent as answer to a previously forwarded method-call
before the timeout fires. Those replies are, by default, forwarded and
DENY policy tags are ignored on them (unless explicitly stated otherwise).

We don't track reply-windows in the bus-proxy as the kernel already does
this. Furthermore, the kernel prohibits any non-expected replies (which
breaks dbus-1, but it was an odd feature, anyway).

Therefore, skip policy checks on replies and always let the kernel deal
with it!

To be correct, we should still process DENY tags marked as
send_expected_reply=true (which is *NOT* the default!). However, so far we
don't parse those attributes, and no-one really uses it, so lets not
implement it for now. It's marked as TODO if anyone feels like fixing it.

6 years agolog: fix log_full_errno() with custom facilities
David Herrmann [Sun, 11 Jan 2015 02:13:46 +0000 (03:13 +0100)]
log: fix log_full_errno() with custom facilities

Make sure to extract the log-priority when comparing against
max-log-level, otherwise, we will always drop those messages.

This fixes bus-proxyd to properly send warnings on policy blocks.

6 years agobuild-sys: fix link-order and avoid "label" functions in libsystemd-shared
Kay Sievers [Sat, 10 Jan 2015 23:25:31 +0000 (00:25 +0100)]
build-sys: fix link-order and avoid "label" functions in libsystemd-shared

6 years agokdbus.h: update
Kay Sievers [Sat, 10 Jan 2015 03:16:18 +0000 (04:16 +0100)]
kdbus.h: update

6 years agopush xorg information to the systemd --user instance
Kay Sievers [Fri, 9 Jan 2015 20:23:48 +0000 (21:23 +0100)]
push xorg information to the systemd --user instance

6 years agoupdate TODO
Lennart Poettering [Fri, 9 Jan 2015 20:32:29 +0000 (21:32 +0100)]
update TODO

6 years agologinctl: make session/user arguments optional for a number commands, and imply calli...
Lennart Poettering [Fri, 9 Jan 2015 20:30:39 +0000 (21:30 +0100)]
loginctl: make session/user arguments optional for a number commands, and imply calling session/user instead

This turns "lock-session", "activate", "unlock-session",
"enable-linger", "disable-linger" into commands that take no argument,
optionally in which case the callers session/user is implied.

6 years agosd-bus: even if we need a cookie when sending a message there's no need to needlessly...
Lennart Poettering [Fri, 9 Jan 2015 20:25:23 +0000 (21:25 +0100)]
sd-bus: even if we need a cookie when sending a message there's no need to needlessly send it if we don't actually need it

6 years agobus-proxy: make sure we have creds when two legacy clients talk to each other
Lennart Poettering [Fri, 9 Jan 2015 20:24:37 +0000 (21:24 +0100)]
bus-proxy: make sure we have creds when two legacy clients talk to each other

6 years agohwdb: add Kay's Laser Mouse to the dpi database
Lennart Poettering [Fri, 9 Jan 2015 19:28:32 +0000 (20:28 +0100)]
hwdb: add Kay's Laser Mouse to the dpi database

6 years agobus-proxy-test: show parsed system/session policy
Lennart Poettering [Fri, 9 Jan 2015 18:30:01 +0000 (19:30 +0100)]
bus-proxy-test: show parsed system/session policy

6 years agobus-proxy: eat up "*" matches, they are pointless
Lennart Poettering [Fri, 9 Jan 2015 18:28:18 +0000 (19:28 +0100)]
bus-proxy: eat up "*" matches, they are pointless

6 years agobus-proxy: dbus-daemon implies that connections from UIDs that are identical to the...
Lennart Poettering [Fri, 9 Jan 2015 18:25:23 +0000 (19:25 +0100)]
bus-proxy: dbus-daemon implies that connections from UIDs that are identical to the bus owner should be allowed

Hence, copy this behaviour for bus-proxy too.

6 years agobus-proxyd: xml - consider empty tags as recv
Kay Sievers [Fri, 9 Jan 2015 17:46:08 +0000 (18:46 +0100)]
bus-proxyd: xml - consider empty tags as recv

6 years agobus-proxy: make sure sure eavesdrop= XML attributes are properly handled
Lennart Poettering [Fri, 9 Jan 2015 17:34:46 +0000 (18:34 +0100)]
bus-proxy: make sure sure eavesdrop= XML attributes are properly handled

6 years agologind: unify how we cast between uid_t and pointers for hashmap keys
Lennart Poettering [Fri, 9 Jan 2015 15:25:47 +0000 (16:25 +0100)]
logind: unify how we cast between uid_t and pointers for hashmap keys

6 years agologind: when a bus call is done on a session, user or seat, optionally determine...
Lennart Poettering [Fri, 9 Jan 2015 15:14:19 +0000 (16:14 +0100)]
logind: when a bus call is done on a session, user or seat, optionally determine them from the caller credentials

More specifically, if an operation is requested on a session with an
empty name, the caller's session is used. If an operation is requested
on a seat with an empty name, the seat of the caller's session is used.
Finally, if an operation on the user with UID -1 is requested, the user
of the client's session is used (and not the UID of the client!).

6 years agoman: document that 'loginctl activate' only takes a single argument
Lennart Poettering [Fri, 9 Jan 2015 00:47:03 +0000 (01:47 +0100)]
man: document that 'loginctl activate' only takes a single argument

6 years agologind: include "self" object links in dbus introspection
Lennart Poettering [Fri, 9 Jan 2015 00:44:40 +0000 (01:44 +0100)]
logind: include "self" object links in dbus introspection

Makes "busctl introspect" a lot more fun.

6 years agologinctl: make "loginctl session-status" without session ID show the caller's session...
Lennart Poettering [Fri, 9 Jan 2015 00:43:53 +0000 (01:43 +0100)]
loginctl: make "loginctl session-status" without session ID show the caller's session status

Similar for user-status and seat-status.

6 years agocore: modernize execution code a bit
Lennart Poettering [Thu, 8 Jan 2015 23:13:33 +0000 (00:13 +0100)]
core: modernize execution code a bit

Among other things, avoid log_struct() unless we really need it.

Also, use "r" as variable to store function errors in, instead of "err".
"r" is pretty much what we use everywhere else, hence using the same
here make sense.

FInally, in the child, when we want to log, make sure to open the
logging framework first, since it is explicitly closed in preparation
for the exec().

6 years agojournal: do not check for number of files
Zbigniew Jędrzejewski-Szmek [Fri, 9 Jan 2015 14:09:59 +0000 (09:09 -0500)]
journal: do not check for number of files

Now that we bump rlimit, we do not really know how many files
we can open. Remove the check.

6 years agosystemctl: add missing output modes to help message
Ronny Chevalier [Fri, 9 Jan 2015 12:54:19 +0000 (13:54 +0100)]
systemctl: add missing output modes to help message

6 years agoshell-completion: add missing output modes
Ronny Chevalier [Fri, 9 Jan 2015 12:53:23 +0000 (13:53 +0100)]
shell-completion: add missing output modes

6 years agobus: append bloom-filter to all signals
David Herrmann [Thu, 8 Jan 2015 23:53:00 +0000 (00:53 +0100)]
bus: append bloom-filter to all signals

Make sure to append bloom-filters to all signal-messages, not only

6 years agohwdb: add missing line between the G400 entries
Peter Hutterer [Thu, 8 Jan 2015 23:33:27 +0000 (09:33 +1000)]
hwdb: add missing line between the G400 entries

Error, DATA expected but got 'mouse:usb:v046dpc24c:name:Logitech G400s Optical
Gaming Mouse:' in '/etc/udev/hwdb.d/70-mouse.hwdb':
Error, MATCH expected but got ' MOUSE_DPI=400@1000 *800@1000 2000@1000
4000@1000' in '/etc/udev/hwdb.d/70-mouse.hwdb':

Introduced in 6366e349

6 years agocore: check both EPERM and EACCES for OOM adjustments
Lennart Poettering [Thu, 8 Jan 2015 22:21:01 +0000 (23:21 +0100)]
core: check both EPERM and EACCES for OOM adjustments

6 years agoupdate TODO
Lennart Poettering [Thu, 8 Jan 2015 22:13:28 +0000 (23:13 +0100)]
update TODO

6 years agocore: make EPERM errors when applying OOM adjustment for forked processes non-fatal
Lennart Poettering [Thu, 8 Jan 2015 22:12:16 +0000 (23:12 +0100)]
core: make EPERM errors when applying OOM adjustment for forked processes non-fatal

This should be useful for user namespaces.

6 years agologinctl: port to generic verbs.h API
Lennart Poettering [Thu, 8 Jan 2015 22:11:35 +0000 (23:11 +0100)]
loginctl: port to generic verbs.h API

6 years agoman: remove references to systemadm from systemctl man page
Lennart Poettering [Thu, 8 Jan 2015 18:16:44 +0000 (19:16 +0100)]
man: remove references to systemadm from systemctl man page

The tool is badly maintained and we shouldn't refence such old cruft.

6 years agomachined: when cloning a raw disk image, also set the NOCOW flag
Lennart Poettering [Thu, 8 Jan 2015 18:15:49 +0000 (19:15 +0100)]
machined: when cloning a raw disk image, also set the NOCOW flag

6 years agoman: bring machinectl man page up-to-date
Lennart Poettering [Thu, 8 Jan 2015 18:14:08 +0000 (19:14 +0100)]
man: bring machinectl man page up-to-date

6 years agoman: bring systemctl man page and --help text into the same order
Lennart Poettering [Thu, 8 Jan 2015 17:08:40 +0000 (18:08 +0100)]
man: bring systemctl man page and --help text into the same order

6 years agoman: add the same command sections to the man page as the --help text shows
Lennart Poettering [Thu, 8 Jan 2015 17:07:25 +0000 (18:07 +0100)]
man: add the same command sections to the man page as the --help text shows

6 years agosystemctl,loginctl: start polkit agent for all polkit enabled operations
Lennart Poettering [Thu, 8 Jan 2015 14:33:46 +0000 (15:33 +0100)]
systemctl,loginctl: start polkit agent for all polkit enabled operations

6 years agomachinectl: given that machinectl invokes a number of polkit enabled methods, start...
Lennart Poettering [Thu, 8 Jan 2015 14:23:54 +0000 (15:23 +0100)]
machinectl: given that machinectl invokes a number of polkit enabled methods, start the polkit agent on terminals

6 years agomachinectl: show most recent log output in "machinectl status", too
Lennart Poettering [Thu, 8 Jan 2015 14:09:12 +0000 (15:09 +0100)]
machinectl: show most recent log output in "machinectl status", too

6 years agologinctl: show the 10 most recent log user/session log lines in "loginctl user-status...
Lennart Poettering [Thu, 8 Jan 2015 13:38:52 +0000 (14:38 +0100)]
loginctl: show the 10 most recent log user/session log lines in "loginctl user-status" and "loginctl session-status"

6 years agohwdb: note that we care about the maximum frequency in MOUSE_DPI
Peter Hutterer [Thu, 8 Jan 2015 21:53:55 +0000 (07:53 +1000)]
hwdb: note that we care about the maximum frequency in MOUSE_DPI

Devices with dynamic frequency scaling adjust the frequency as needed. For
those we only care about the maximum frequency, not the various in betweens.

6 years agohwdb: adjust max frequency of Logitech RX 250
Zbigniew Jędrzejewski-Szmek [Thu, 8 Jan 2015 21:45:34 +0000 (16:45 -0500)]
hwdb: adjust max frequency of Logitech RX 250

6 years agobash-completion: systemd-nspawn update
Carlos Morata Castillo [Thu, 8 Jan 2015 20:51:49 +0000 (21:51 +0100)]
bash-completion: systemd-nspawn update

*Autocompletion for dirs, doesn't leave until you press space.
*Added tmpfs, volatile and network-macvlan options.

I tried with the SELinux options with seinfo(setools-console), but too
messy to get it right. Even Daniel Walsh haven't done it yet. :)

6 years agocryptsetup: support header= option
Andrey Chaser [Thu, 8 Jan 2015 21:21:06 +0000 (16:21 -0500)]
cryptsetup: support header= option

6 years agotest-verbs: add unit tests for verbs minilib
Dave Reisner [Sat, 20 Dec 2014 03:59:51 +0000 (22:59 -0500)]
test-verbs: add unit tests for verbs minilib

6 years agodoc: fix stale references to systemd-verify
Dave Reisner [Thu, 8 Jan 2015 02:54:45 +0000 (21:54 -0500)]
doc: fix stale references to systemd-verify

This was subsumed into systemd-analyze back in 142c4ecaa98.

6 years agoman: add hostnamed chassis type "embedded" to machine-info(5)
Peter Mattern [Sat, 20 Dec 2014 14:09:19 +0000 (15:09 +0100)]
man: add hostnamed chassis type "embedded" to machine-info(5)

man machine-info lacks hostnamed chassis type "embedded" as introduced in 218. The following lines should fix this.

6 years agoman: mention where timesyncd keeps the timestamp
Zbigniew Jędrzejewski-Szmek [Thu, 8 Jan 2015 19:45:57 +0000 (14:45 -0500)]
man: mention where timesyncd keeps the timestamp

6 years agobus-proxyd: fix EPERM on replies
David Herrmann [Thu, 8 Jan 2015 20:06:14 +0000 (21:06 +0100)]
bus-proxyd: fix EPERM on replies

Imagine a kdbus peer sending a method-call without EXPECT_REPLY set
through the proxy to a dbus1 peer. The proxy turns the missing
EXPECT_REPLY flag into a dbus1 NO_REPLY_EXPECTED flag. However, if the
receipient ignores that flag (valid dbus1 behavior) and sends a reply, the
proxy will try to forward it to the original peer. This will fail with
EPERM as the kernel didn't track the reply.

We have two options now: Either we ignore EPERM for reply messages, or we
track reply-windows in the proxy so we can properly ignore replies if
EXPECT_REPLY wasn't set.

This commit chose the first option: ignore EPERM for replies. The only
down-side is that replies without matching method call will no longer be
forwarded by the proxy. This works on dbus1, though.
Nobody sane does this, so lets ignore it.

6 years agobus-proxyd: optimize replies if they're not requested
David Herrmann [Thu, 8 Jan 2015 19:58:59 +0000 (20:58 +0100)]
bus-proxyd: optimize replies if they're not requested

If a caller does not request a reply, dont send it. This skips message
creation and speeds up NO_REPLY_EXPECTED cases. Note that sd-bus still
handles this case internally, but if we handle it in bus-proxyd, we can
skip the whole message creation step.

6 years agobus-proxy: augment credentials from /proc for cmdline update
David Herrmann [Thu, 8 Jan 2015 16:43:48 +0000 (17:43 +0100)]
bus-proxy: augment credentials from /proc for cmdline update

dbus1 does not provide cmdline, so we have to augment our credentials from
/proc to beautify the bus-proxyd cmdline. We dont use this for anything
but beautification, so there shouldn't be any problems due to /proc
pid-recycling races.

This fixes bus-proxyd to no longer display 'xxxxxxxxxxxxxxxxxxxxxxxxxxx'
in its cmdline.

6 years agonspawn: fix error message when mknod fails
Tom Gundersen [Tue, 6 Jan 2015 18:50:25 +0000 (19:50 +0100)]
nspawn: fix error message when mknod fails

6 years agopath-util: plug leak
Tom Gundersen [Tue, 6 Jan 2015 18:12:38 +0000 (19:12 +0100)]
path-util: plug leak

6 years agodbus1-generator: fix array sentinal
David Herrmann [Thu, 8 Jan 2015 15:13:39 +0000 (16:13 +0100)]
dbus1-generator: fix array sentinal

Add a {} sentinal entry so the config-iterator can properly iterate all
array elements. Fixes a segfault in the dbus1-generator.

6 years agobuild: print conditions of ldconfig, hibernate configs
Umut Tezduyar Lindskog [Tue, 16 Dec 2014 07:45:28 +0000 (08:45 +0100)]
build: print conditions of ldconfig, hibernate configs

6 years agosd-bus: fix copy-paste error
Lukasz Skalski [Thu, 8 Jan 2015 10:10:21 +0000 (11:10 +0100)]
sd-bus: fix copy-paste error

6 years agoupdate TODO
Lennart Poettering [Thu, 8 Jan 2015 02:20:10 +0000 (03:20 +0100)]
update TODO

6 years agojournal: bump RLIMIT_NOFILE when journal files to 16K (if possible)
Lennart Poettering [Thu, 8 Jan 2015 02:17:50 +0000 (03:17 +0100)]
journal: bump RLIMIT_NOFILE when journal files to 16K (if possible)

When there are a lot of split out journal files, we might run out of fds
quicker then we want. Hence: bump RLIMIT_NOFILE to 16K if possible.

Do these even for journalctl. On Fedora the soft RLIMIT_NOFILE is at 1K,
the hard at 4K by default for normal user processes, this code hence
bumps this up for users to 4K.

6 years agoudevadm: don't hit an assert when obsolete parameters are passed
Lennart Poettering [Thu, 8 Jan 2015 00:59:58 +0000 (01:59 +0100)]
udevadm: don't hit an assert when obsolete parameters are passed

6 years agoupdate TODO
Lennart Poettering [Thu, 8 Jan 2015 00:28:15 +0000 (01:28 +0100)]
update TODO

6 years agoutil: make it easy to initialize the crtime from the current time in fd_setcrtime()
Lennart Poettering [Thu, 8 Jan 2015 00:27:13 +0000 (01:27 +0100)]
util: make it easy to initialize the crtime from the current time in fd_setcrtime()

6 years agoimport: also set NOCOW for gpt disk images
Lennart Poettering [Thu, 8 Jan 2015 00:25:40 +0000 (01:25 +0100)]
import: also set NOCOW for gpt disk images

Given the write patterns on disk images, we better should turn COW off
for them. In particular as the file systems used inside the disk images
should do their own data integrity checks anyway and we don't need
multiple layers of it.

6 years agojournald: turn off COW for journal files on btrfs
Lennart Poettering [Thu, 8 Jan 2015 00:22:29 +0000 (01:22 +0100)]
journald: turn off COW for journal files on btrfs

btrfs' COW logic results in heavily fragment journal files, which is
detrimental for perfomance. Hence, turn off COW for journal files as we
create them.

Turning off COW comes at the cost of data integrity guarantees, but this
should be acceptable, given that we do our own checksumming, and
generally have a pretty conservative write pattern.

Also see discussion on linux-btrfs:

6 years agoutil: upgrade default $TERM from vt102 to vt220 if we have no idea about the connecte...
Lennart Poettering [Wed, 7 Jan 2015 22:02:08 +0000 (23:02 +0100)]
util: upgrade default $TERM from vt102 to vt220 if we have no idea about the connected terminal

So far, if we had no knowledge about the correct $TERM we defaulted to
v102, as a safe, conservative choice. However, the terminfo data for
vt102 is not aware of pageup/pagedown, which makes "less" much harder
work with than necessary. Setting vt220 allows them to work correctly.

"vt220" should be a sufficiently safe choice too, given that xterm,
gnome-terminal and the linux console all strive to implement vt220 as
baseline, already to pass pageup/pagedown correctly to apps.

Effectively, with this change "journalctl -e" run inside a
"systemd-nspawn" terminal will now run a pager where pageup/pagedown
works, which is quite an improvement of usability for containers.

6 years agobus-util: fix error number output when waiting for job
Lennart Poettering [Wed, 7 Jan 2015 21:51:48 +0000 (22:51 +0100)]
bus-util: fix error number output when waiting for job

6 years agoupdate TODO
Lennart Poettering [Wed, 7 Jan 2015 21:19:59 +0000 (22:19 +0100)]
update TODO

6 years agounits: make resolved pull in its own .busname unit, but only on kdbus systems
Lennart Poettering [Wed, 7 Jan 2015 21:19:02 +0000 (22:19 +0100)]
units: make resolved pull in its own .busname unit, but only on kdbus systems

The daemon requires the busname unit to operate, since it contains the
policy that allows it to acquire its service name.

6 years agoservice: automatically create After= dependency from services to their .busname units...
Lennart Poettering [Wed, 7 Jan 2015 21:08:25 +0000 (22:08 +0100)]
service: automatically create After= dependency from services to their .busname units, if BusName= is set

6 years agoconf-parse: don't accept invalid bus names as BusName= arguments in service units
Lennart Poettering [Wed, 7 Jan 2015 21:07:09 +0000 (22:07 +0100)]
conf-parse: don't accept invalid bus names as BusName= arguments in service units

6 years agoconf-parse: make syntax logging functions behave more like other log functons
Lennart Poettering [Wed, 7 Jan 2015 21:05:20 +0000 (22:05 +0100)]
conf-parse: make syntax logging functions behave more like other log functons

In particular, don't patch the error number to EINVAL if 0, and don't
negate it.

(Also, add do {} while (false) around multi-line macro)

6 years agounits: improve Description= for systemd's own busname unit
Lennart Poettering [Wed, 7 Jan 2015 20:54:31 +0000 (21:54 +0100)]
units: improve Description= for systemd's own busname unit

6 years agohwdb: mouse DPI data, Logitech Gaming Mouse G400
Jonas Ådahl [Wed, 7 Jan 2015 08:23:37 +0000 (16:23 +0800)]
hwdb: mouse DPI data, Logitech Gaming Mouse G400

6 years agobusctl: exit cleanly when the bus connection is severed
Lennart Poettering [Wed, 7 Jan 2015 19:42:14 +0000 (20:42 +0100)]
busctl: exit cleanly when the bus connection is severed

6 years agosd-bus: when we synthesize messages, initialize timestamps ourselves
Lennart Poettering [Wed, 7 Jan 2015 19:36:23 +0000 (20:36 +0100)]
sd-bus: when we synthesize messages, initialize timestamps ourselves

6 years agosd-bus: unify how we set the sender of synthetic messages
Lennart Poettering [Wed, 7 Jan 2015 19:25:30 +0000 (20:25 +0100)]
sd-bus: unify how we set the sender of synthetic messages

6 years agosd-bus: make use of the newly added timestamps on kdbus kernel messages
Lennart Poettering [Wed, 7 Jan 2015 18:53:39 +0000 (19:53 +0100)]
sd-bus: make use of the newly added timestamps on kdbus kernel messages

6 years agosd-bus: always catch name requests for the special names "org.freedesktop.DBus" and...
Lennart Poettering [Wed, 7 Jan 2015 18:29:14 +0000 (19:29 +0100)]
sd-bus: always catch name requests for the special names "org.freedesktop.DBus" and "org.freedesktop.DBus.Local" and refuse them

6 years agoupdate TODO
Lennart Poettering [Wed, 7 Jan 2015 18:18:04 +0000 (19:18 +0100)]
update TODO

6 years agomachinectl: prettify "machinectl list" output
Lennart Poettering [Wed, 7 Jan 2015 18:13:48 +0000 (19:13 +0100)]
machinectl: prettify "machinectl list" output

6 years agosysv-generator: initialize units before use to ensure correct ordering
Michael Biebl [Fri, 28 Nov 2014 05:04:48 +0000 (06:04 +0100)]
sysv-generator: initialize units before use to ensure correct ordering

The original loop called fix_order() on each service immediately after
loading it, but fix_order() would reference other units which were not
loaded yet.
This resulted in bogus and unnecessary orderings based on the static
start priorities.

Therefore call load_sysv() for every init script when traversing them in
enumerate_sysv(). This ensures that all units are loaded when
fix_order() is called.


6 years agoupdate TODO
Lennart Poettering [Wed, 7 Jan 2015 17:00:38 +0000 (18:00 +0100)]
update TODO

6 years agoman: document nss-mymachines
Lennart Poettering [Wed, 7 Jan 2015 16:40:10 +0000 (17:40 +0100)]
man: document nss-mymachines

6 years agoman: add an alias to libnss_myhostname.so2 for nss-myhostname
Lennart Poettering [Wed, 7 Jan 2015 16:19:46 +0000 (17:19 +0100)]
man: add an alias to libnss_myhostname.so2 for nss-myhostname

The module appears under the name "" in the file
system, hence let's link it up under that name.

6 years agoman: rework nss-myhostname man page
Lennart Poettering [Wed, 7 Jan 2015 16:14:04 +0000 (17:14 +0100)]
man: rework nss-myhostname man page

Remove a number of incorrect links, and explain that "localhost" and
"gateway" are now resolved by it, too.

6 years agoUpdate TODO
Lennart Poettering [Wed, 7 Jan 2015 13:49:27 +0000 (14:49 +0100)]
Update TODO

6 years agoptyfwd: simplify how we handle vhangups a bit
Lennart Poettering [Wed, 7 Jan 2015 13:46:45 +0000 (14:46 +0100)]
ptyfwd: simplify how we handle vhangups a bit

6 years agobtrfs-util: rework how we iterate through the results of the TREE_SEARCH results
Lennart Poettering [Wed, 7 Jan 2015 13:43:10 +0000 (14:43 +0100)]
btrfs-util: rework how we iterate through the results of the TREE_SEARCH results

Let's introduce some syntactic sugar with iteration macros, and add
correct key increment calls.

6 years agosysv-generator: handle Provides: for non-virtual facility names
Michael Biebl [Mon, 5 Jan 2015 08:49:44 +0000 (09:49 +0100)]
sysv-generator: handle Provides: for non-virtual facility names

The list of provided facility names as specified via Provides: in the
LSB header was originally implemented by adding those facilities to the
Names= property via unit_add_name().

In commit 95ed3294c632f5606327149f10cef1eb34422862 the internal SysV
support was replaced by a generator and support for parsing the Names=
option had been removed from the unit file parsing in v186.
As a result, Provides: for non-virtual facility was dropped when
introducing the sysv-generator.

Since quite a few SysV init scripts still use that functionality (at
least in distros like Debian which have a large body of SysV init
scripts), add back support by making those facility names available via
symlinks to the unit filename to ensure correct orderings between
SysV init scripts which use those facility names.


6 years agoupdate TODO
Lennart Poettering [Wed, 7 Jan 2015 02:08:29 +0000 (03:08 +0100)]
update TODO

6 years agomachinectl: make sure that "machinectl login" exits immediately when the machine...
Lennart Poettering [Wed, 7 Jan 2015 02:08:00 +0000 (03:08 +0100)]
machinectl: make sure that "machinectl login" exits immediately when the machine it is connected to dies

6 years agoutil: make use of kcmp() to compare fds, if it is available
Lennart Poettering [Wed, 7 Jan 2015 01:14:14 +0000 (02:14 +0100)]
util: make use of kcmp() to compare fds, if it is available

6 years agoutil: don't fail recursive bind mounting if we cannot read the mount flags from an...
Lennart Poettering [Wed, 7 Jan 2015 00:32:13 +0000 (01:32 +0100)]
util: don't fail recursive bind mounting if we cannot read the mount flags from an obstructed mounted