chiark / gitweb /
6 years agoupdate TODO
Lennart Poettering [Thu, 29 Jan 2015 02:43:34 +0000 (03:43 +0100)]
update TODO

6 years agoFix ordering of the 70-mouse.rule in the Makefile
Peter Hutterer [Thu, 29 Jan 2015 01:51:05 +0000 (11:51 +1000)]
Fix ordering of the 70-mouse.rule in the Makefile

6 years agocoredump: drop caps while we are processing the coredump
Lennart Poettering [Thu, 29 Jan 2015 01:47:29 +0000 (02:47 +0100)]
coredump: drop caps while we are processing the coredump

6 years agoRevert "journal: do not check for number of files"
Lennart Poettering [Thu, 29 Jan 2015 01:10:15 +0000 (02:10 +0100)]
Revert "journal: do not check for number of files"

This reverts commit b914ea8d379b446c4c9fac4ba181771676ef38cd.

We really need to put a limit on all our resources, everywhere, and in
particular if we operate on external data.

Hence, let's reintroduce the limit, but bump it substantially, so that
it is guaranteed to be higher than any realistic RLIMIT_NOFILE setting.

6 years agoman: turn new netdev table into a proper table
Lennart Poettering [Thu, 29 Jan 2015 00:40:48 +0000 (01:40 +0100)]
man: turn new netdev table into a proper table

6 years agocore: make setting the shutdown watchdog configuration via dbus work
Maxim Mikityanskiy [Thu, 29 Jan 2015 00:23:07 +0000 (01:23 +0100)]
core: make setting the shutdown watchdog configuration via dbus work

6 years agoman: netdev - add some minimal explanation to the different netdev kinds and modes
Tom Gundersen [Wed, 28 Jan 2015 20:31:47 +0000 (21:31 +0100)]
man: netdev - add some minimal explanation to the different netdev kinds and modes

Would be awesome to expand on this a lot, as there is currently no decent documentation for most of these things.

6 years agonetworkd: tunnel - call tunnel modes ipip6, not ip4ipv6 to match ip(8)
Tom Gundersen [Wed, 28 Jan 2015 16:32:50 +0000 (17:32 +0100)]
networkd: tunnel - call tunnel modes ipip6, not ip4ipv6 to match ip(8)

6 years agologind: handle closing sessions over daemon restarts
Martin Pitt [Wed, 28 Jan 2015 17:14:01 +0000 (18:14 +0100)]
logind: handle closing sessions over daemon restarts

It may happen that you have several sessions with the same VT:

 - Open a session c1 which leaves some processes around, and log out. The
   session will stay in State=closing and become Active=no.
 - Log back in on the same VT, get a new session "c2" which is State=active and

When restarting logind after that, the first session that matches the current
VT becomes Active=yes, which will be c1; c2 thus is Active=no and does not get
the usual polkit/device ACL privileges.

Restore the "closing" state in session_load(), to avoid treating all restored
sessions as State=active. In seat_active_vt_changed(), prefer active sessions
over closing ones if more than one session matches the current VT.

Finally, fix the confusing comment in session_load() and explain it a bit

6 years agoutil: add comment explaining hostname_is_valid()
Lennart Poettering [Wed, 28 Jan 2015 16:48:05 +0000 (17:48 +0100)]
util: add comment explaining hostname_is_valid()

6 years agoupdate TODO
Lennart Poettering [Wed, 28 Jan 2015 16:48:01 +0000 (17:48 +0100)]
update TODO

6 years agosd-dhcp: chop of trailing dot of DHCP supplied host and domain nams
Lennart Poettering [Wed, 28 Jan 2015 16:47:37 +0000 (17:47 +0100)]
sd-dhcp: chop of trailing dot of DHCP supplied host and domain nams

6 years agorules: clean up stale CD drive mounts after ejection
Martin Pitt [Wed, 28 Jan 2015 12:57:47 +0000 (13:57 +0100)]
rules: clean up stale CD drive mounts after ejection

Ejecting a CD with the hardware drive button only causes a change uevent, but
the device node stays around (just without a medium). Pick up these uevents and
mark the device as SYSTEMD_READY=0 on ejection, so that systemd stops the
device unit and consequently all mount units on it.

On media insertion, mark the device as SYSTEMD_READY=1 again.

6 years agocore/mount: add dependencies to dynamically mounted mounts too
Martin Pitt [Wed, 28 Jan 2015 12:53:25 +0000 (13:53 +0100)]
core/mount: add dependencies to dynamically mounted mounts too

Add unit dependencies for dynamic (i. e. not from fstab) mounts. With that,
mount units properly bind to their underlying device, and thus get
automatically stopped/unmounted when the underlying device goes away.

This cleans up stale mounts from unplugged devices.

Thanks to Lennart Poettering for pointing out the fix!

6 years agosysv-generator: no need to check for identical symlinks source and target twice
Lennart Poettering [Wed, 28 Jan 2015 14:11:49 +0000 (15:11 +0100)]
sysv-generator: no need to check for identical symlinks source and target twice

6 years agocore: output unit status output strings to console, only if we actually are changing...
Lennart Poettering [Wed, 28 Jan 2015 14:07:13 +0000 (15:07 +0100)]
core: output unit status output strings to console, only if we actually are changing unit state

Unit _start() and _stop() implementations can fail with -EAGAIN to delay
execution temporarily. Thus, we should not output status messages before
invoking these calls, but after, and only when we know that the
invocation actually made a change.

6 years agotest: duplicate LIST_FOREACH_OTHERS test to check for corner cases of end and start...
Lennart Poettering [Wed, 28 Jan 2015 13:22:13 +0000 (14:22 +0100)]
test: duplicate LIST_FOREACH_OTHERS test to check for corner cases of end and start of list

6 years agolist: properly skip over first item in LIST_FOREACH_OTHERS
Lennart Poettering [Wed, 28 Jan 2015 13:03:31 +0000 (14:03 +0100)]
list: properly skip over first item in LIST_FOREACH_OTHERS

6 years agomanager: fix minor typo
Lennart Poettering [Wed, 28 Jan 2015 13:03:24 +0000 (14:03 +0100)]
manager: fix minor typo

6 years agosysv-generator: Re-fix .sh suffix handling
Martin Pitt [Wed, 28 Jan 2015 07:00:28 +0000 (08:00 +0100)]
sysv-generator: Re-fix .sh suffix handling

Commit 4e48855534 caused the .sh suffix to be stripped from the original
"filename", which caused the generated units to call the wrong init.d script.
Only use the .sh stripped file name for comparing with Provides:, not for
generating the Exec*= lines.

Spotted by sysv-generator-test.

6 years agobuild-sys: add check for --help width
Zbigniew Jędrzejewski-Szmek [Wed, 28 Jan 2015 02:22:26 +0000 (21:22 -0500)]
build-sys: add check for --help width

6 years agonotify,firstboot,analyze,run: trim --help output to 80 lines
Zbigniew Jędrzejewski-Szmek [Wed, 28 Jan 2015 02:22:57 +0000 (21:22 -0500)]
notify,firstboot,analyze,run: trim --help output to 80 lines

6 years agotmpfiles: fix help text
Zbigniew Jędrzejewski-Szmek [Wed, 28 Jan 2015 02:22:08 +0000 (21:22 -0500)]
tmpfiles: fix help text

The help text, apart from being too long, did not describe what the options
really do.

6 years agobuild-sys: make xz and zlib build-time optional again
Lennart Poettering [Wed, 28 Jan 2015 02:21:56 +0000 (03:21 +0100)]
build-sys: make xz and zlib build-time optional again

6 years agoman: document the new Ctrl-Alt-Del magic
Lennart Poettering [Wed, 28 Jan 2015 01:33:22 +0000 (02:33 +0100)]
man: document the new Ctrl-Alt-Del magic

6 years agomanager: when we immediately reboot due to 7x C-A-D within 2s, mention this on the...
Lennart Poettering [Wed, 28 Jan 2015 01:26:03 +0000 (02:26 +0100)]
manager: when we immediately reboot due to 7x C-A-D within 2s, mention this on the console too

6 years agoupdate TODO
Lennart Poettering [Wed, 28 Jan 2015 01:22:19 +0000 (02:22 +0100)]
update TODO

6 years agocore: when the user hits Ctrl-Alt-Del more than 7x per 2s, reboot immediately
Lennart Poettering [Wed, 28 Jan 2015 01:18:59 +0000 (02:18 +0100)]
core: when the user hits Ctrl-Alt-Del more than 7x per 2s, reboot immediately

This should be useful for cases where clean rebooting doesn't work, and
the user wants to hurry up the reboot.

6 years agosysv-generator: there's really no need to invoke fstatat() multiple times on the...
Lennart Poettering [Wed, 28 Jan 2015 00:36:40 +0000 (01:36 +0100)]
sysv-generator: there's really no need to invoke fstatat() multiple times on the same sysv script

It's sufficient to check once if something is a regular file, hence,
let's do that.

6 years agoupdate TODO
Lennart Poettering [Wed, 28 Jan 2015 00:02:36 +0000 (01:02 +0100)]
update TODO

6 years agocore: if two start jobs for the same swap device node are queued, only dispatch one...
Lennart Poettering [Tue, 27 Jan 2015 23:38:38 +0000 (00:38 +0100)]
core: if two start jobs for the same swap device node are queued, only dispatch one of them at a time

If two start jobs for two seperate .swap device nodes are queued, which
then turns out to be referring to the same device node, refuse
dispatching more than one of them at the same time.

This should solve an issue when the same swap partition is found via GPT
auto-discovery and via /etc/fstab, where one uses a symlink path, and
the other the raw devce node. So far we might have ended up invoking
mkswap on the same node at the very same time with the two device node

With this change only one mkswap should be executed at a time. THis
mkswap should have immediate effect on the other swap unit, due to the
state in /proc/swaps changing, and thus suppressing actual invocation of
the second mkswap.

6 years agoswap: simplify a few things by making use of new LIST_FOREACH_OTHERS macro
Lennart Poettering [Tue, 27 Jan 2015 23:37:11 +0000 (00:37 +0100)]
swap: simplify a few things by making use of new LIST_FOREACH_OTHERS macro

6 years agolist: add macro for iterating through a list an item is in, skipping the item
Lennart Poettering [Tue, 27 Jan 2015 23:34:58 +0000 (00:34 +0100)]
list: add macro for iterating through a list an item is in, skipping the item

6 years agoswap: properly specify errno when logging
Lennart Poettering [Tue, 27 Jan 2015 23:04:47 +0000 (00:04 +0100)]
swap: properly specify errno when logging

6 years agosysv-generator: use is_symlink() utility call where appropriate
Lennart Poettering [Tue, 27 Jan 2015 22:13:28 +0000 (23:13 +0100)]
sysv-generator: use is_symlink() utility call where appropriate

6 years agosysv-generator: minor simplifications
Lennart Poettering [Tue, 27 Jan 2015 22:11:01 +0000 (23:11 +0100)]
sysv-generator: minor simplifications

6 years agoman: systemd.service(5): add some simple examples
Christian Seiler [Tue, 27 Jan 2015 16:38:02 +0000 (17:38 +0100)]
man: systemd.service(5): add some simple examples

Add a couple of exampels, at least one for each service type that
include some explanations and pointers to various relevant options.

6 years agoman: systemd.unit(5): add examples for common tasks
Christian Seiler [Sat, 24 Jan 2015 13:04:03 +0000 (14:04 +0100)]
man: systemd.unit(5): add examples for common tasks

Add examples for (a) how to allow units to be enabled and (b)
overriding vendor settings to the man page.

6 years agologind: chown+chmod /run/user/$UID if mount(tmpfs) fails with EPERM
Christian Seiler [Tue, 27 Jan 2015 17:58:40 +0000 (18:58 +0100)]
logind: chown+chmod /run/user/$UID if mount(tmpfs) fails with EPERM

In containers without CAP_SYS_ADMIN, it is not possible to mount tmpfs
(or any filesystem for that matter) on top of /run/user/$UID.
Previously, logind just failed in such a situation.

Now, logind will resort to chown+chmod of the directory instead. This
allows logind still to work in those environments, although without the
guarantees it provides (i.e. users not being able to DOS /run or other
users' /run/user/$UID space) when CAP_SYS_ADMIN is available.

6 years agologind: remove per-user runtime dir again if setup fails
Christian Seiler [Fri, 23 Jan 2015 14:26:18 +0000 (15:26 +0100)]
logind: remove per-user runtime dir again if setup fails

If setup of per-user runtime dir fails, clean up afterwards by removing
the directory before returning from the function, so we don't leave the
directory behind.

If this is not done, the second time the user logs in logind would
assume that the directory is already set up, even though it isn't.

6 years agoman: mention that is shipped by default, and users hence need to...
Lennart Poettering [Tue, 27 Jan 2015 17:29:33 +0000 (18:29 +0100)]
man: mention that is shipped by default, and users hence need to install a lexically earlier .link file for it to be honoured

6 years agoupdate TODO
Lennart Poettering [Tue, 27 Jan 2015 13:31:29 +0000 (14:31 +0100)]
update TODO

6 years agobuild-sys: make bzip2 really optional
Lennart Poettering [Tue, 27 Jan 2015 16:24:11 +0000 (17:24 +0100)]
build-sys: make bzip2 really optional

6 years agounits: turn on watchdog for resolved
Lennart Poettering [Tue, 27 Jan 2015 13:30:52 +0000 (14:30 +0100)]
units: turn on watchdog for resolved

6 years agounits: fix all TTY paths for container gettys
Lennart Poettering [Tue, 27 Jan 2015 13:28:45 +0000 (14:28 +0100)]
units: fix all TTY paths for container gettys

Spotted by Christian Seiler:

6 years agonetworkd-dhcp6: Assign DHCPv6 addresses and prefix lengths
Patrik Flykt [Tue, 20 Jan 2015 17:36:04 +0000 (19:36 +0200)]
networkd-dhcp6: Assign DHCPv6 addresses and prefix lengths

Once IPv6 addresses have been acquired, assign these to the interface
with the prefix lengths taken from the ICMPv6 Router Advertisement
handling code. The preferred and valid IPv6 address lifetimes are
handed to the kernel which will clean up them if not renewed in time.

When a prefix announced via Router Advertisements expires, find all
addresses that match that prefix and update the address to have a
prefix length of 128 causing the prefix to be off-link.

6 years agosd-icmp6-nd: Add support for fetching the latest expired prefix
Patrik Flykt [Tue, 20 Jan 2015 17:36:03 +0000 (19:36 +0200)]
sd-icmp6-nd: Add support for fetching the latest expired prefix

Keep the expired prefix for the duration of the prefix expiration event
and remove it afterwards.

6 years agotest-icmp6-nd: Add test cases for prefixes
Patrik Flykt [Tue, 20 Jan 2015 17:36:02 +0000 (19:36 +0200)]
test-icmp6-nd: Add test cases for prefixes

Add test cases that feeds an Router Advertisement to the ICMPv6 code
and verify that the correct prefix lengths are returned given an IPv6

Enhance the prefix verification test by adding a shorter prefix and
check that the intended prefix lengths are now updated.

6 years agosd-icmp6-nd: Parse ICMPv6 prefix information
Patrik Flykt [Tue, 20 Jan 2015 17:36:01 +0000 (19:36 +0200)]
sd-icmp6-nd: Parse ICMPv6 prefix information

Save each new onlink IPv6 prefix and attach an expiry timer to it.
If the prefixes overlap, take the shorter prefix and write a debug
message about the event. Once the prefix is resent in a Router
Advertisement, update the timer. Add a new event for the expiring

Add two helper functions, one for returning a prefix length given a
Router Advertisement and the other for generic prefix matching given
an IPv6 prefix and address.

6 years agotest-icmp6-rs: Add trivial test case for an MTU that is not present
Patrik Flykt [Tue, 20 Jan 2015 17:36:00 +0000 (19:36 +0200)]
test-icmp6-rs: Add trivial test case for an MTU that is not present

6 years agosd-icmp6-nd: Add helper function to get the IPv6 link MTU
Patrik Flykt [Tue, 20 Jan 2015 17:35:59 +0000 (19:35 +0200)]
sd-icmp6-nd: Add helper function to get the IPv6 link MTU

Update MTU according to the latest value received.

6 years agosd-icmp6-nd: Add link and prefix structures for ICMPv6
Patrik Flykt [Tue, 20 Jan 2015 17:35:58 +0000 (19:35 +0200)]
sd-icmp6-nd: Add link and prefix structures for ICMPv6

Each ICMPv6 structure has an interface index and will therefore be
associated with an IPv6 link containing a list of of prefixes.

6 years agosd-icmp6-nd: Update Router Advertisement handling
Patrik Flykt [Tue, 20 Jan 2015 17:35:57 +0000 (19:35 +0200)]
sd-icmp6-nd: Update Router Advertisement handling

As the IPv6 prefixes are needed, update the ICMPv6 Router Advertisement
code to dynamically allocate a suitably sized buffer. Iterate through
the ICMPv6 options one by one returning error if the option length is
too big to fit the buffer.

6 years agosd-dhcp6-lease: Revise address iteration functions
Patrik Flykt [Tue, 20 Jan 2015 17:35:56 +0000 (19:35 +0200)]
sd-dhcp6-lease: Revise address iteration functions

Revise the address iteration functions so that one helper function
resets the iterator to the start of the address list while the
second one fetches addresses one by one.

The test case is also updated.

6 years agocompile-unifont: Python 2 compatibility
Zbigniew Jędrzejewski-Szmek [Tue, 27 Jan 2015 04:19:14 +0000 (23:19 -0500)]
compile-unifont: Python 2 compatibility

Under Python 2, sys.stdout.buffer is missing.

6 years agobuild-sys: unbundle unifont
Zbigniew Jędrzejewski-Szmek [Tue, 27 Jan 2015 00:12:56 +0000 (19:12 -0500)]
build-sys: unbundle unifont

We should prefer the unifont.hex file from the system, instead of our
own. Upstream has made a few releases since our version was included,
and we should follow upstream changes. But adding 2.6MB to our source
repo every time upstream releases is not nice.

6 years agoTODO: remove laccess conversion
Zbigniew Jędrzejewski-Szmek [Mon, 26 Jan 2015 23:12:45 +0000 (18:12 -0500)]
TODO: remove laccess conversion

I looked over all access invocations, and I think are using access()
correctly. Accepting dangling symlinks makes sense only in special

So far we do not allow "flag" files like "/fastboot" to be dangling
symlinks. We could, but I don't see a reason to.

6 years agoupdate TODO
Lennart Poettering [Tue, 27 Jan 2015 01:36:40 +0000 (02:36 +0100)]
update TODO

6 years agotimesyncd: set RLIMIT_NPROC to 2
Lennart Poettering [Tue, 27 Jan 2015 01:33:46 +0000 (02:33 +0100)]
timesyncd: set RLIMIT_NPROC to 2

This way timesyncd cannot be used to fork().

Note that it generally is not safe to use RLIMIT_NPROC, since it breaks
running the same daemon in multiple containers if they do not use user
namespacing. However, timesyncd is excepted from running in a container
anyway, hence it is safe in this case.

6 years agoman: document that ProtectSystem= also covers /boot
Lennart Poettering [Tue, 27 Jan 2015 01:19:33 +0000 (02:19 +0100)]
man: document that ProtectSystem= also covers /boot

6 years agocore: explain why failing to set up the crash handler is not a real problem
Lennart Poettering [Tue, 27 Jan 2015 00:47:37 +0000 (01:47 +0100)]
core: explain why failing to set up the crash handler is not a real problem

6 years agoupdate TODO
Lennart Poettering [Tue, 27 Jan 2015 00:28:53 +0000 (01:28 +0100)]
update TODO

6 years agosystem-update-generator: accept a dangling symlink
Zbigniew Jędrzejewski-Szmek [Mon, 26 Jan 2015 06:34:32 +0000 (07:34 +0100)]
system-update-generator: accept a dangling symlink

The offline update mechanism is explicitly designed to work with a
separate /var. systemd-update-generator is supposed to run early,
before filesystems are mounted, so it cannot check if the
/system-update symlink actually points to anything.

The update is run *after* filesystems are mounted, so it should be
able to access the target of the symlink without trouble.

6 years agomissing: define correct syscall numbers for memfd_create() and getrandom() on aarch64
Michael Olbrich [Mon, 26 Jan 2015 15:51:17 +0000 (16:51 +0100)]
missing: define correct syscall numbers for memfd_create() and getrandom() on aarch64

6 years agoupdate TODO
Lennart Poettering [Mon, 26 Jan 2015 20:51:57 +0000 (21:51 +0100)]
update TODO

6 years agosd-bus: change serialization of kdbus messages to qualify in their entirety as gvaria...
Lennart Poettering [Mon, 26 Jan 2015 20:48:08 +0000 (21:48 +0100)]
sd-bus: change serialization of kdbus messages to qualify in their entirety as gvariant objects

Previously, we only minimally altered the dbus1 framing for kdbus, and
while the header and its fields where compliant Gvariant objects, and so
was the body, the entire message together was not.

As result of discussions with Ryan Lortie this is now changed, so that
the messages in there entirely are fully compliant GVariants. This
follows the framing description described here:

Note that this change changes the framing of *all* messages sent via
kdbus, this means you have to reboot your kdbus system, after compiling
and installing this new version.

6 years agobus-dump: fix two minor memory leaks
Lennart Poettering [Mon, 26 Jan 2015 19:03:25 +0000 (20:03 +0100)]
bus-dump: fix two minor memory leaks

6 years agoman: fix minor type in man page
Lennart Poettering [Mon, 26 Jan 2015 16:48:58 +0000 (17:48 +0100)]
man: fix minor type in man page

6 years agosd-bus: reuse the KDBUS_CMD_FREE wrapper wherever appropriate
Lennart Poettering [Mon, 26 Jan 2015 16:48:14 +0000 (17:48 +0100)]
sd-bus: reuse the KDBUS_CMD_FREE wrapper wherever appropriate

6 years agotreewide: fix multiple typos
Torstein Husebø [Mon, 26 Jan 2015 14:29:14 +0000 (15:29 +0100)]
treewide: fix multiple typos

6 years agotmpfiles: use casts instead of warning suppression
Zbigniew Jędrzejewski-Szmek [Mon, 26 Jan 2015 15:39:03 +0000 (10:39 -0500)]
tmpfiles: use casts instead of warning suppression

This warning got its own name only in gcc5, so the suppression does
not work in gcc4, and generates a warning of its own. Use a cast,
which is ugly too, but less so.

6 years agoman: minor typo fix
Lennart Poettering [Mon, 26 Jan 2015 14:28:18 +0000 (15:28 +0100)]
man: minor typo fix

Spotted by John Paul Adrian Glaubitz

6 years agolibudev: private - drop some functions from the internal API
Tom Gundersen [Mon, 26 Jan 2015 13:48:04 +0000 (14:48 +0100)]
libudev: private - drop some functions from the internal API

6 years agolibudev: monitor - move nulstr parsing to libudev-device
Tom Gundersen [Mon, 26 Jan 2015 13:45:12 +0000 (14:45 +0100)]
libudev: monitor - move nulstr parsing to libudev-device

Hide the details a bit.

6 years agoudev: event - minor nit
Tom Gundersen [Mon, 26 Jan 2015 13:13:31 +0000 (14:13 +0100)]
udev: event - minor nit

Stay uniform and use 'dev' rather than 'event->dev', as these are aliases (and event->dev looks
like it may be a typo for event->dev_db).

6 years agoudev: event - introduce and use internal udev_device_shallow_clone()
Tom Gundersen [Mon, 26 Jan 2015 13:12:45 +0000 (14:12 +0100)]
udev: event - introduce and use internal udev_device_shallow_clone()

6 years agoudev: event - move renaming of udev_device to libudev
Tom Gundersen [Mon, 26 Jan 2015 12:33:00 +0000 (13:33 +0100)]
udev: event - move renaming of udev_device to libudev

This is not exposed in the public API. We want to simplify the internal libudev-device API as much as possible
so that it will be simpler to rip the whole thing out in the future.

6 years agotmpfiles: do not bump access times of directories we are cleaning up
Zbigniew Jędrzejewski-Szmek [Thu, 2 Jan 2014 05:02:31 +0000 (00:02 -0500)]
tmpfiles: do not bump access times of directories we are cleaning up

Both plain opendir() and glob() will bump access time. Privileged
option O_NOATIME can be used to prevent the access time from being
updated. We already used it for subdirectories of the directories
which we were cleaning up. But for the directories specified directly
in the config files, we wouldn't do that. This means that,
paradoxically, our own temporary directories for PrivateTmp would stay
around forever, as long as one let systemd-tmpfiles-clean.service run
regularly, because they had their own glob patterns specified.

6 years agotmpfiles: add debug statements for all actions
Zbigniew Jędrzejewski-Szmek [Sat, 24 Jan 2015 06:54:05 +0000 (01:54 -0500)]
tmpfiles: add debug statements for all actions

systemd-tmpfiles can be used by users, but it can be quite hard to
figure out the logic it follows, especially since the logic is in some
places rather torturous. Hopefuly this will make it easier for users
to understand what is happening.

6 years agopo: update Russian translation
Sergey Ptashnick [Fri, 23 Jan 2015 17:56:36 +0000 (20:56 +0300)]
po: update Russian translation

Add strings for importd.

6 years agocatalog,po: update Polish translation
Piotr Drąg [Thu, 22 Jan 2015 14:28:04 +0000 (15:28 +0100)]
catalog,po: update Polish translation

Patch updates Polish translation with new strings from, as well as incorporates updates in
catalog and po files to accommodate recent changes in the original
strings (commits 2e219e5672689dad60e110f0b3366765506c4c58 and

6 years agomachinectl: fix typo
Zbigniew Jędrzejewski-Szmek [Sun, 25 Jan 2015 02:07:27 +0000 (21:07 -0500)]
machinectl: fix typo

6 years agomount-setup: Do not bother with /proc/bus/usb
Cristian Rodríguez [Fri, 23 Jan 2015 16:25:30 +0000 (13:25 -0300)]
mount-setup: Do not bother with /proc/bus/usb

Current systemd requires kernel >= 3.7 per the README file
but CONFIG_USB_DEVICEFS disappeared from the kernel in
upstream commit fb28d58b72aa9215b26f1d5478462af394a4d253
(kernel 3.5-rc1)

6 years agobuild-sys: lookup for sulogin, it might not be in /sbin
Cristian Rodríguez [Fri, 23 Jan 2015 17:35:20 +0000 (14:35 -0300)]
build-sys: lookup for sulogin, it might not be in /sbin

6 years agoresolved: when rereading /etc/resolv.conf, always start using first DNS server again
Lennart Poettering [Fri, 23 Jan 2015 17:57:29 +0000 (18:57 +0100)]
resolved: when rereading /etc/resolv.conf, always start using first DNS server again

Previously we tried to stick to a DNS server as long as it is available.
When /etc/resolv.conf changed, and the old DNS server we used was still
in there we'd continue to use it, even if it was at the end of the list.

With this change we'll now always start with the first DNS server in the
list again.

Rationale: certain network managing implementations (notably
NetworkManager) when connected to a VPN place both the VPN DNS server as
well as the local DNS server in /etc/resolv.conf. If we used the local
one before we would thus continue to use the local one, making VPN names
unresolvable. NetworkManager really should be fixed to only place the
VPN DNS servers in the file, but with this commit things are at least
similarly bad as they used to be...

6 years ago#pragma once here and there
Zbigniew Jędrzejewski-Szmek [Fri, 23 Jan 2015 14:20:59 +0000 (09:20 -0500)]
#pragma once here and there

6 years agobuild-sys: fix build on compilers without static_assert
Zbigniew Jędrzejewski-Szmek [Fri, 23 Jan 2015 14:06:00 +0000 (09:06 -0500)]
build-sys: fix build on compilers without static_assert

Build would fail when assert was used on the same line in
different files #included together.

6 years agosystemctl: bugfix for systemctl reboot command with argument
Sangjung Woo [Fri, 23 Jan 2015 11:21:57 +0000 (20:21 +0900)]
systemctl: bugfix for systemctl reboot command with argument

According to systemctl man page, 'systemctl reboot [arg]' should work
without any errors. However, it does not work because of 'Invalid number
of arguments' error, except for 'reboot [arg]'. This patch fixes the bug
so that both of commands work in exactly the same way.

6 years agocore,shutdown: don't bother with unmounting any mounts below /sys, /proc, /dev when...
Lennart Poettering [Fri, 23 Jan 2015 12:44:44 +0000 (13:44 +0100)]
core,shutdown: don't bother with unmounting any mounts below /sys, /proc, /dev when shutting down

After all, mounts below these directories are pretty much guaranteed to
be virtual, and it's hence unnecessary to unmount them during shutdown.
Moreover, in less-priviliged containers we might lack the rights to
unmount them, hence don't even try.

6 years agomount-setup: /selinux, /cgroup, /dev/cgroup are sooo old, don't bother with them...
Lennart Poettering [Fri, 23 Jan 2015 12:44:27 +0000 (13:44 +0100)]
mount-setup: /selinux, /cgroup, /dev/cgroup are sooo old, don't bother with them anymore

6 years agotmpfiles: minor simplification
Zbigniew Jędrzejewski-Szmek [Fri, 23 Jan 2015 04:35:34 +0000 (23:35 -0500)]
tmpfiles: minor simplification

6 years agoman: bring tmpfiles.d(5) in line with code
Zbigniew Jędrzejewski-Szmek [Fri, 23 Jan 2015 04:32:19 +0000 (23:32 -0500)]
man: bring tmpfiles.d(5) in line with code

6 years agoupdate TODO
Lennart Poettering [Fri, 23 Jan 2015 01:59:58 +0000 (02:59 +0100)]
update TODO

6 years agosd-bus: fix typo
Lennart Poettering [Fri, 23 Jan 2015 01:59:30 +0000 (02:59 +0100)]
sd-bus: fix typo

6 years agocore: add a property that shows the current memory usage of a unit
Lennart Poettering [Fri, 23 Jan 2015 01:58:02 +0000 (02:58 +0100)]
core: add a property that shows the current memory usage of a unit

This is exposed the memory.usage_in_bytes cgroup property on the bus,
and makes "systemctl status" show it in its default output.

6 years agocgroup-show: remove duplicated check
Zbigniew Jędrzejewski-Szmek [Fri, 23 Jan 2015 01:03:58 +0000 (20:03 -0500)]
cgroup-show: remove duplicated check

After 3637713a20 it is not necessary anymore.

6 years agoupdate TODO
Lennart Poettering [Fri, 23 Jan 2015 00:44:14 +0000 (01:44 +0100)]
update TODO

6 years agonspawn: when mounting the cgroup hierarchies, use the exact same mount options for...
Lennart Poettering [Fri, 23 Jan 2015 00:43:16 +0000 (01:43 +0100)]
nspawn: when mounting the cgroup hierarchies, use the exact same mount options for the superblock as the host

Otherwise we'll generate kernel runtime warnings about non-matching
mount options.

6 years agonspawn: mount /tmp in the container, don't leave this to the container's init
Lennart Poettering [Fri, 23 Jan 2015 00:27:06 +0000 (01:27 +0100)]
nspawn: mount /tmp in the container, don't leave this to the container's init

We really want /tmp to be properly mounted, especially in containers
that lack CAP_SYS_ADMIN or that are not fully booted up and only get a
shell, hence let's do so in nspawn already.

6 years agonspawn: allow bind-mounting char and block files
Alban Crequy [Thu, 22 Jan 2015 15:47:07 +0000 (16:47 +0100)]
nspawn: allow bind-mounting char and block files