platform/upstream/systemd.git
9 years agobus-proxy: fix GetConnectionSELinuxSecurityContext() return value
Lennart Poettering [Thu, 21 May 2015 19:24:55 +0000 (21:24 +0200)]
bus-proxy: fix GetConnectionSELinuxSecurityContext() return value

9 years agonspawn: prohibit access to the kernel log buffer by default
Lennart Poettering [Thu, 21 May 2015 18:48:39 +0000 (20:48 +0200)]
nspawn: prohibit access to the kernel log buffer by default

Unless CAP_SYSLOG is explicitly passed block all access to kmg

9 years agodevice: never act on mount events for devices if device support is not available
Lennart Poettering [Thu, 21 May 2015 18:43:21 +0000 (20:43 +0200)]
device: never act on mount events for devices if device support is not available

9 years agocore: properly handle jobs that are suppressed to JOB_NOPs when propagating restarts
Lennart Poettering [Thu, 21 May 2015 18:39:23 +0000 (20:39 +0200)]
core: properly handle jobs that are suppressed to JOB_NOPs when propagating restarts

9 years agoNEWS: add note about gudev
David Herrmann [Thu, 21 May 2015 18:39:47 +0000 (20:39 +0200)]
NEWS: add note about gudev

gudev has been extracted into a separate repository managed by the gnome
project. See the announcement thread on systemd-devel for more:
  http://lists.freedesktop.org/archives/systemd-devel/2015-May/032070.html

9 years agoNEWS: fix sd-boot to systemd-boot
David Herrmann [Thu, 21 May 2015 18:25:38 +0000 (20:25 +0200)]
NEWS: fix sd-boot to systemd-boot

We renamed sd-boot to systemd-boot directly after merging it, to stay
conform to all the other systemd binaries.

9 years agoNEWS: fix typo and expand abbreviation
Zbigniew Jędrzejewski-Szmek [Thu, 21 May 2015 18:30:53 +0000 (14:30 -0400)]
NEWS: fix typo and expand abbreviation

9 years agoNEWS: document the IPForward= confusion
Lennart Poettering [Thu, 21 May 2015 18:24:34 +0000 (20:24 +0200)]
NEWS: document the IPForward= confusion

9 years agotmpfiles: create /etc/resolv.conf symlink only on boot
Zbigniew Jędrzejewski-Szmek [Thu, 21 May 2015 18:22:30 +0000 (14:22 -0400)]
tmpfiles: create /etc/resolv.conf symlink only on boot

We will create the symlink on boot as a fallback to provide name
resolution. But if the symlink was removed afterwards, it most likely
should not be recreated. Creating it only on boot also solves the
issue where it would be created prematurely during installation,
before the system was actually booted.

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

9 years agobuild-sys: bump library and package versions
Lennart Poettering [Thu, 21 May 2015 18:10:26 +0000 (20:10 +0200)]
build-sys: bump library and package versions

9 years agoupdate TODO
Lennart Poettering [Thu, 21 May 2015 17:49:08 +0000 (19:49 +0200)]
update TODO

9 years agoutil: an array with one entry is always ordered
Lennart Poettering [Thu, 21 May 2015 17:49:03 +0000 (19:49 +0200)]
util: an array with one entry is always ordered

9 years agoutil: introduce PERSONALITY_INVALID as macro for 0xffffffffLU
Lennart Poettering [Thu, 21 May 2015 17:48:49 +0000 (19:48 +0200)]
util: introduce PERSONALITY_INVALID as macro for 0xffffffffLU

9 years agoNEWS: start collecting items for v220
Lennart Poettering [Thu, 21 May 2015 17:47:42 +0000 (19:47 +0200)]
NEWS: start collecting items for v220

9 years agonspawn: finish user namespace support
Lennart Poettering [Thu, 21 May 2015 14:30:58 +0000 (16:30 +0200)]
nspawn: finish user namespace support

9 years agoupdate TODO
Lennart Poettering [Thu, 21 May 2015 14:11:38 +0000 (16:11 +0200)]
update TODO

9 years agoudev: link-config - fix corruption
Tom Gundersen [Thu, 21 May 2015 13:22:07 +0000 (15:22 +0200)]
udev: link-config - fix corruption

The parser used for MTU and Speed expects them to be size_t, not unsigned int.

This caused a corruption in the rest of the structure.

Reported by David O Neill <david.m.oneill@intel.com>.

9 years agohwdb: add MS Arc Touch Mouse SE
Peter Hutterer [Thu, 21 May 2015 05:39:11 +0000 (15:39 +1000)]
hwdb: add MS Arc Touch Mouse SE

https://bugs.freedesktop.org/show_bug.cgi?id=90540

9 years agosd-device: fix return codes on error
Zbigniew Jędrzejewski-Szmek [Thu, 21 May 2015 03:34:12 +0000 (23:34 -0400)]
sd-device: fix return codes on error

asprintf() does not set errno.

9 years agojson: avoid cleanup of unitialized variable
Zbigniew Jędrzejewski-Szmek [Thu, 21 May 2015 03:25:48 +0000 (23:25 -0400)]
json: avoid cleanup of unitialized variable

9 years agounits: conditionalize audit multicast socket on CAP_AUDIT_READ
Lennart Poettering [Wed, 20 May 2015 15:40:05 +0000 (17:40 +0200)]
units: conditionalize audit multicast socket on CAP_AUDIT_READ

The multicast logic can only work if the capability is available, hence
require it.

9 years agoutil: introduce reset_uid_gid() for resetting all uids and gids to 0
Lennart Poettering [Wed, 20 May 2015 12:41:39 +0000 (14:41 +0200)]
util: introduce reset_uid_gid() for resetting all uids and gids to 0

9 years agojournald: handle more gracefully when bind() fails on audit sockets
Lennart Poettering [Wed, 20 May 2015 12:37:21 +0000 (14:37 +0200)]
journald: handle more gracefully when bind() fails on audit sockets

9 years agocore,nspawn: unify code that moves the root dir
Lennart Poettering [Tue, 19 May 2015 18:32:44 +0000 (20:32 +0200)]
core,nspawn: unify code that moves the root dir

9 years agoTODO: add --merge support for sd-j-remote
Zbigniew Jędrzejewski-Szmek [Wed, 20 May 2015 03:59:27 +0000 (23:59 -0400)]
TODO: add --merge support for sd-j-remote

9 years agobootctl: try to catch all errors
Zbigniew Jędrzejewski-Szmek [Sat, 21 Mar 2015 14:28:55 +0000 (10:28 -0400)]
bootctl: try to catch all errors

Do not print garbage on non-EFI installations.

9 years agobootctl: modernization
Zbigniew Jędrzejewski-Szmek [Wed, 18 Mar 2015 02:29:31 +0000 (22:29 -0400)]
bootctl: modernization

Use strjoina to avoid error handling, and openat to simplify things.

Some fixes on the way:
- ferror does not set errno, so the return value was wrong in some cases
- errors are propagated in more cases
- EFI/systemd was created, but EFI/systemd-boot was deleted
- something is always printed on error
- when checking the version, comparison was done against "systemd-bo" for some reason
- return value was converted from negative to EXIT_SUCCESS/EXIT_FAILURE twice,
  resulting in EXIT_SUCCESS all the time

9 years agobus-socket: simplify initalization of struct msghdr
Zbigniew Jędrzejewski-Szmek [Sat, 16 May 2015 15:06:43 +0000 (11:06 -0400)]
bus-socket: simplify initalization of struct msghdr

9 years agohwdb: add Logitech M570 trackball
Peter Hutterer [Fri, 8 May 2015 01:56:45 +0000 (11:56 +1000)]
hwdb: add Logitech M570 trackball

http://www.logitech.com/en-us/product/wireless-trackball-m570#specs
https://bugzilla.redhat.com/show_bug.cgi?id=1217881

9 years agojson: fix a mem leak
Thomas Hindoe Paaboel Andersen [Tue, 19 May 2015 21:19:29 +0000 (23:19 +0200)]
json: fix a mem leak

9 years agoupdate TODO
Lennart Poettering [Tue, 19 May 2015 17:54:39 +0000 (19:54 +0200)]
update TODO

9 years agounits: make sure systemd-nspawn@.slice instances are actually located in machine...
Lennart Poettering [Tue, 19 May 2015 17:47:52 +0000 (19:47 +0200)]
units: make sure systemd-nspawn@.slice instances are actually located in machine.slice

https://plus.google.com/112206451048767236518/posts/SYAueyXHeEX

9 years agocore: don't consider boot-up finished if we are still reloading
Lennart Poettering [Tue, 19 May 2015 17:09:03 +0000 (19:09 +0200)]
core: don't consider boot-up finished if we are still reloading

http://lists.freedesktop.org/archives/systemd-devel/2015-May/032025.html

9 years agopull-dkr: fix memleak
Thomas Hindoe Paaboel Andersen [Tue, 19 May 2015 17:23:53 +0000 (19:23 +0200)]
pull-dkr: fix memleak

9 years agoimport/pull-dkr: V2 image specification and manifest support
Pavel Odvody [Tue, 19 May 2015 14:30:33 +0000 (16:30 +0200)]
import/pull-dkr: V2 image specification and manifest support

The maximum number of layers changed to 127, as in Dkr.

9 years agoimport/pull: Tag replaced with reference
Pavel Odvody [Tue, 19 May 2015 14:30:04 +0000 (16:30 +0200)]
import/pull: Tag replaced with reference

Default pull version set to V2

9 years agotest/test-json: Tests for the tokenizer bugfix and the DOM parser
Pavel Odvody [Tue, 19 May 2015 14:29:53 +0000 (16:29 +0200)]
test/test-json: Tests for the tokenizer bugfix and the DOM parser

The DOM parser tests are accompanied with structure and element analysis

9 years agoshared/json: Added DOM-like JSON parser
Pavel Odvody [Tue, 19 May 2015 14:29:42 +0000 (16:29 +0200)]
shared/json: Added DOM-like JSON parser

This makes working with complexly structured documents easy
and more reliable as the parser is not susceptible to
element re-ordering.

Also fixes a bug when the tokenizer would choke after reading
a number.

9 years agoshared/import-util: Tag renamed to reference
Pavel Odvody [Tue, 19 May 2015 14:29:29 +0000 (16:29 +0200)]
shared/import-util: Tag renamed to reference

Added (sha256) digest validation function

9 years agocore: when propagating restart requests due to deps, downgrade restart to try-restart
Lennart Poettering [Tue, 19 May 2015 16:13:22 +0000 (18:13 +0200)]
core: when propagating restart requests due to deps, downgrade restart to try-restart

Previously, if a service A depended on a service B via Requires=, and A
was not running and B restarted this would trigger a start of A as well,
since the restart was propagated as restart independently of the state
of A.

This patch ensures that a restart of B would be propagated as a
try-restart to A, thus not changing its state if it isn't up.

http://lists.freedesktop.org/archives/systemd-devel/2015-May/032061.html

9 years agodhcp-identifier: fix for unaligned write
Tom Gundersen [Tue, 19 May 2015 15:47:19 +0000 (17:47 +0200)]
dhcp-identifier: fix for unaligned write

Reported by Michael Olbrich.

9 years agocore: sd_bus_error() already checks for NULL, no need to duplicate check
Lennart Poettering [Tue, 19 May 2015 15:56:44 +0000 (17:56 +0200)]
core: sd_bus_error() already checks for NULL, no need to duplicate check

9 years agocore: reinstate propagation of stop/restart jobs via RequsiteOf dependencies
Lennart Poettering [Tue, 19 May 2015 15:40:50 +0000 (17:40 +0200)]
core: reinstate propagation of stop/restart jobs via RequsiteOf dependencies

This reverts the primary effect of be7d9ff730cb88d7c6a869dd5c47754c78ceaef2.

After all Requisite= should be close to Requires=, without the one
exception that it doesn't pull in dependencies on start. However,
reverse deps on stop/restart should be treated the same way as for
Restart=, and this is already documented in the man page, hence stick to
it.

http://lists.freedesktop.org/archives/systemd-devel/2015-May/032049.html

9 years agoutil: fix typo
Jan Synacek [Tue, 19 May 2015 12:26:09 +0000 (14:26 +0200)]
util: fix typo

9 years agomount: properly check for mounts currently in /proc/self/mountinfo
Lennart Poettering [Tue, 19 May 2015 15:19:27 +0000 (17:19 +0200)]
mount: properly check for mounts currently in /proc/self/mountinfo

http://lists.freedesktop.org/archives/systemd-devel/2015-May/032059.html

9 years agoUpdate TODO
Lennart Poettering [Tue, 19 May 2015 14:57:33 +0000 (16:57 +0200)]
Update TODO

9 years agounit: drop support for pre-v44 job serialization
Lennart Poettering [Tue, 19 May 2015 14:41:14 +0000 (16:41 +0200)]
unit: drop support for pre-v44 job serialization

No distro ships that old systemd versions anyway, hence let's drop
support for live-upgrades for them. Offline updates are still supported.
And live-upgrades will only lose the job queue, hence basically still
work...

9 years agocore: also enforce ratelimiter if we stop a unit due to BindsTo=
Lennart Poettering [Tue, 19 May 2015 14:23:14 +0000 (16:23 +0200)]
core: also enforce ratelimiter if we stop a unit due to BindsTo=

This extends on bea355dac94e82697aa98e25d80ee4248263bf92, and extends
the ratelimiter to not only be used for StopWhenUnneeded=1 units but
also for units that have BindsTo= on a unit that is dead.

http://lists.freedesktop.org/archives/systemd-devel/2015-April/030224.html

9 years agocore: use bitfield where possible
Lennart Poettering [Tue, 19 May 2015 14:03:01 +0000 (16:03 +0200)]
core: use bitfield where possible

9 years agoupdate TODO
Lennart Poettering [Tue, 19 May 2015 14:02:51 +0000 (16:02 +0200)]
update TODO

9 years agocore: enforce a ratelimiter when stopping units due to StopWhenUnneeded=1
Lennart Poettering [Tue, 19 May 2015 14:00:24 +0000 (16:00 +0200)]
core: enforce a ratelimiter when stopping units due to StopWhenUnneeded=1

Otherwise we might end up in an endless stop loop.

http://lists.freedesktop.org/archives/systemd-devel/2015-April/030224.html

9 years agounit: fix unit_check_unneeded() dependency iteration
Lennart Poettering [Tue, 19 May 2015 13:42:03 +0000 (15:42 +0200)]
unit: fix unit_check_unneeded() dependency iteration

Fixes a regression introduced in be7d9ff730cb88d7c6a869dd5c47754c78ceaef2.

9 years agomount: don't claim a device is gone from /proc/self/mountinfo before it is gone from...
Lennart Poettering [Tue, 19 May 2015 11:50:36 +0000 (13:50 +0200)]
mount: don't claim a device is gone from /proc/self/mountinfo before it is gone from *all* lines

Devices might be referenced by multiple mount points in
/proc/self/mountinfo, hence we should consider them unmounted only after
they disappeared from all lines, not just from one.

http://lists.freedesktop.org/archives/systemd-devel/2015-May/032026.html

9 years agodevice: create units with intended "found" value
Martin Pitt [Sun, 17 May 2015 13:07:47 +0000 (15:07 +0200)]
device: create units with intended "found" value

Change device_found_node() to also create a .device unit if a device is not
known by udev; this is the case for "tentative" devices picked up by mountinfo
(DEVICE_FOUND_MOUNT).  With that we can record the "found" attribute on the
unit.

Change device_setup_unit() to also accept a NULL udev_device, and don't
add the extra udev information in that case.

Previously device_found_node() would not create a .device unit, and
unit_add_node_link() would then create a "dead" stub one via
manager_load_unit(), so we lost the "found" attribute and unmounted everything
from that device.

https://launchpad.net/bugs/1444402
http://lists.freedesktop.org/archives/systemd-devel/2015-May/031658.html

9 years agohostname: Allow comments in /etc/hostname
Martin Pitt [Tue, 19 May 2015 05:49:56 +0000 (07:49 +0200)]
hostname: Allow comments in /etc/hostname

The hostname(1) tool allows comments in /etc/hostname. Introduce a new
read_hostname_config() in hostname-util which reads a hostname configuration
file like /etc/hostname, strips out comments, whitespace, and cleans the
hostname. Use it in hostname-setup.c and hostnamed and remove duplicated code.

Update hostname manpage. Add tests.

https://launchpad.net/bugs/1053048

9 years agocore: fix OOM checks in dbus-unit
Thomas Hindoe Paaboel Andersen [Tue, 19 May 2015 04:45:52 +0000 (06:45 +0200)]
core: fix OOM checks in dbus-unit

CID#1299014

9 years agotest-hashmap: fix an assert
Thomas Hindoe Paaboel Andersen [Tue, 19 May 2015 04:33:54 +0000 (06:33 +0200)]
test-hashmap: fix an assert

CID#1299016

9 years agoman: explain UseDomains a bit more
Zbigniew Jędrzejewski-Szmek [Tue, 19 May 2015 02:34:07 +0000 (22:34 -0400)]
man: explain UseDomains a bit more

https://bugs.freedesktop.org/show_bug.cgi?id=85397

9 years agoupdate TODO
Lennart Poettering [Mon, 18 May 2015 23:32:40 +0000 (01:32 +0200)]
update TODO

9 years agoupdate TODO
Lennart Poettering [Mon, 18 May 2015 23:27:33 +0000 (01:27 +0200)]
update TODO

9 years agocore: introduce seperate reverse dependencies for Requires= and Requisite=
Lennart Poettering [Mon, 18 May 2015 23:24:28 +0000 (01:24 +0200)]
core: introduce seperate reverse dependencies for Requires= and Requisite=

This allows us to ensure that Requisite= dependencies never cause
propagation between units, while Requires= dependencies might.

http://lists.freedesktop.org/archives/systemd-devel/2015-May/031742.html

9 years agojournalctl: unify how we free boot id lists a bit
Lennart Poettering [Mon, 18 May 2015 22:35:02 +0000 (00:35 +0200)]
journalctl: unify how we free boot id lists a bit

Instead of use LIST_FOREACH_SAFE, just use the same, seperate destructor
everywhere.

9 years agojournalctl: clean up how we log errors
Lennart Poettering [Mon, 18 May 2015 22:25:45 +0000 (00:25 +0200)]
journalctl: clean up how we log errors

All functions should either log the errors they run into, or only return
them in which case the caller should log them.

Make sure this rule is followed, so that each error is logged precisely
once, and neither never, nor more than once.

9 years agojournalctl: rename boot_id_t to BootId
Lennart Poettering [Mon, 18 May 2015 22:24:27 +0000 (00:24 +0200)]
journalctl: rename boot_id_t to BootId

So far we tried to reserve the _t suffix to types we use like a value in
contrast to types we use as objects, hence let's do this in journalctl
too.

9 years agojournalctl: lstat() should suffice if we call canonicalize_file_name() first
Lennart Poettering [Mon, 18 May 2015 22:22:56 +0000 (00:22 +0200)]
journalctl: lstat() should suffice if we call canonicalize_file_name() first

9 years agojournalctl: free all command line argument objects
Lennart Poettering [Mon, 18 May 2015 21:54:05 +0000 (23:54 +0200)]
journalctl: free all command line argument objects

let's try to be valgrind clean

9 years agojournalctl: only have a single exit path from main()
Lennart Poettering [Mon, 18 May 2015 21:50:34 +0000 (23:50 +0200)]
journalctl: only have a single exit path from main()

That way we can be sure we execute the destructors properly, and can be
valgrind-clean.

9 years agojournalctl: Improve boot ID lookup
Jan Janssen [Fri, 1 May 2015 13:15:16 +0000 (15:15 +0200)]
journalctl: Improve boot ID lookup

This method should greatly improve offset based lookup, by simply jumping
from one boot to the next boot. It starts at the journal head to get the
a boot ID, makes a _BOOT_ID match and then comes from the opposite
journal direction (tail) to get to the end that boot. After flushing the matches
and advancing the journal from that exact position, we arrive at the start
of next boot. Rinse and repeat.

This is faster than the old method of aggregating the full boot listing just
so we can jump to a specific boot, which can be a real pain on big journals
just for a mere "-b -1" case.

As an additional benefit --list-boots should improve slightly too, because
it does less seeking.

Note that there can be a change in boot order with this lookup method
because it will use the order of boots in the journal, not the realtime stamp
stored in them. That's arguably better, though.
Another deficiency is that it will get confused with boots interleaving in the
journal, therefore, it will refuse operation in --merge, --file and --directory mode.

https://bugs.freedesktop.org/show_bug.cgi?id=72601

9 years agoudevd: main - use _exit() when daemonizing
Tom Gundersen [Mon, 18 May 2015 15:21:03 +0000 (17:21 +0200)]
udevd: main - use _exit() when daemonizing

Makes it a bit clearer what is going on, rather than jumping to the end of main().

No functional change.

9 years agoudevd: main - reshuffle
Tom Gundersen [Mon, 18 May 2015 15:19:38 +0000 (17:19 +0200)]
udevd: main - reshuffle

First parse config, then sanitize environment before donig any further setup.

No functional change.

9 years agoudevd: rename on_reque_{exit,reload} to on_sig{term,chld}
Tom Gundersen [Mon, 18 May 2015 15:18:46 +0000 (17:18 +0200)]
udevd: rename on_reque_{exit,reload} to on_sig{term,chld}

No functional change.

9 years agoudevd: introduce on_event_timeout{,_warning}
Tom Gundersen [Mon, 18 May 2015 15:17:07 +0000 (17:17 +0200)]
udevd: introduce on_event_timeout{,_warning}

This uses kill_and_sigcont() instead of kill(), otherwise no functional change.

9 years agoudevd: process all SIGCHLD events every time the handler is invoked
Tom Gundersen [Mon, 18 May 2015 15:07:04 +0000 (17:07 +0200)]
udevd: process all SIGCHLD events every time the handler is invoked

We were returning rather than continuing in some cases. The intention
was always to fully process all pending events before returning
from the SIGCHLD handler. Restore this behaviour.

9 years agoudevd: init/exit the builtins in manager_new/free
Tom Gundersen [Wed, 13 May 2015 09:39:45 +0000 (11:39 +0200)]
udevd: init/exit the builtins in manager_new/free

No functional change.

9 years agoudevd: move file descriptors to Manager
Tom Gundersen [Tue, 12 May 2015 19:16:47 +0000 (21:16 +0200)]
udevd: move file descriptors to Manager

No functional change.

9 years agoresolved: allow DnsAnswer objects with no space for RRs
Lennart Poettering [Mon, 18 May 2015 21:38:47 +0000 (23:38 +0200)]
resolved: allow DnsAnswer objects with no space for RRs

They might be created as result of merged answer sets, hence accept
them.

http://lists.freedesktop.org/archives/systemd-devel/2015-April/030834.html

9 years agoresolved: fix crash when shutting down
Lennart Poettering [Mon, 18 May 2015 21:23:17 +0000 (23:23 +0200)]
resolved: fix crash when shutting down

Reported by Cristian Rodríguez

http://lists.freedesktop.org/archives/systemd-devel/2015-May/031626.html

9 years agonspawn: close extra fds before execing init
Alban Crequy [Mon, 18 May 2015 14:45:30 +0000 (16:45 +0200)]
nspawn: close extra fds before execing init

When systemd-nspawn gets exec*()ed, it inherits the followings file
descriptors:
- 0, 1, 2: stdin, stdout, stderr
- SD_LISTEN_FDS_START, ... SD_LISTEN_FDS_START+LISTEN_FDS: file
  descriptors passed by the system manager (useful for socket
  activation). They are passed to the child process (process leader).
- extra lock fd: rkt passes a locked directory as an extra fd, so the
  directory remains locked as long as the container is alive.

systemd-nspawn used to close all open fds except 0, 1, 2 and the
SD_LISTEN_FDS_START..SD_LISTEN_FDS_START+LISTEN_FDS. This patch delays
the close just before the exec so the nspawn process (parent) keeps the
extra fds open.

This patch supersedes the previous attempt ("cloexec extraneous fds"):
http://lists.freedesktop.org/archives/systemd-devel/2015-May/031608.html

9 years agoata_id: drop spurious space
Lennart Poettering [Mon, 18 May 2015 19:52:26 +0000 (21:52 +0200)]
ata_id: drop spurious space

9 years agoCODING_STYLE: document that we should avoid kernel types like u32
Lennart Poettering [Mon, 18 May 2015 16:47:22 +0000 (18:47 +0200)]
CODING_STYLE: document that we should avoid kernel types like u32

9 years agocore: Private*/Protect* options with RootDirectory
Alban Crequy [Mon, 18 May 2015 10:20:28 +0000 (12:20 +0200)]
core: Private*/Protect* options with RootDirectory

When a service is chrooted with the option RootDirectory=/opt/..., then
the options PrivateDevices, PrivateTmp, ProtectHome, ProtectSystem must
mount the directories under $RootDirectory/{dev,tmp,home,usr,boot}.

The test-ns tool can test setup_namespace() with and without chroot:
 $ sudo TEST_NS_PROJECTS=/home/lennart/projects ./test-ns
 $ sudo TEST_NS_CHROOT=/home/alban/debian-tree TEST_NS_PROJECTS=/home/alban/debian-tree/home/alban/Documents ./test-ns

9 years agokmod-setup: conditionalize kmod autoloading properly
Lennart Poettering [Mon, 18 May 2015 15:27:37 +0000 (17:27 +0200)]
kmod-setup: conditionalize kmod autoloading properly

Load kdbus.ko only if we are built with kdbus, and load ip_tables.ko
only if we are built with iptables support.

9 years agoutil: split all hostname related calls into hostname-util.c
Lennart Poettering [Mon, 18 May 2015 15:10:07 +0000 (17:10 +0200)]
util: split all hostname related calls into hostname-util.c

9 years agoREADME: document that we prefer if CONFIG_CHECKPOINT_RESTORE is turned on, for the...
Lennart Poettering [Mon, 18 May 2015 14:35:24 +0000 (16:35 +0200)]
README: document that we prefer if CONFIG_CHECKPOINT_RESTORE is turned on, for the kcmp() syscall

9 years agofstab-generator: add x-systemd.requires and x-systemd.requires-mounts-for
Karel Zak [Mon, 18 May 2015 10:30:37 +0000 (12:30 +0200)]
fstab-generator: add x-systemd.requires and x-systemd.requires-mounts-for

Currently we have no way how to specify dependencies between fstab
entries (or another units) in the /etc/fstab. It means that users are
forced to bypass fstab and write .mount units manually.

The patch introduces new systemd fstab options:

x-systemd.requires=<PATH>

 - to specify dependence an another mount (PATH is translated to unit name)

x-systemd.requires=<UNIT>

 - to specify dependence on arbitrary UNIT

x-systemd.requires-mounts-for=<PATH ...>

 - to specify dependence on another paths, implemented by
   RequiresMountsFor=. The option may be specified more than once.

For example two bind mounts where B depends on A:

 /mnt/test/A    /mnt/test/A     none    bind,defaults
 /mnt/test/A    /mnt/test/B     none    bind,x-systemd.requires=/mnt/test/A

More complex example with overlay FS where one mount point depends on
"low" and "upper" directories:

 /dev/sdc1   /mnt/low    ext4     defaults
 /dev/sdc2   /mnt/high   ext4     defaults
 overlay     /mnt/merged overlay  lowerdir=/mnt/low,upperdir=/mnt/high/data,workdir=/mnt/high/work,x-systemd.requires-mounts-for=/mnt/low,x-systemd.requires-mounts-for=mnt/high

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

9 years agobuildsys: actually install 70-pointingstick.hwdb
Mantas Mikulėnas [Mon, 18 May 2015 08:18:10 +0000 (11:18 +0300)]
buildsys: actually install 70-pointingstick.hwdb

9 years agohwdb: Add trackpoint sensitivity setting for Thinkpad X230 tablet
Hans de Goede [Mon, 18 May 2015 07:54:00 +0000 (09:54 +0200)]
hwdb: Add trackpoint sensitivity setting for Thinkpad X230 tablet

This model needs the trackpoint sensitivity to be boosted to not be too slow
to be usable, see: https://bugzilla.redhat.com/show_bug.cgi?id=1200717

9 years agozsh-completion: make the arrays _sys_active_units, _sys_startable_units and _sys_rest...
Eric Cook [Mon, 18 May 2015 05:02:43 +0000 (01:02 -0400)]
zsh-completion: make the arrays _sys_active_units, _sys_startable_units and _sys_restartable_units local to the completer.

9 years agozsh-completion: removing more pointless forks
Eric Cook [Mon, 18 May 2015 07:19:59 +0000 (03:19 -0400)]
zsh-completion: removing more pointless forks

I seem to have forgot about _systemctl_active_units().

9 years agozsh-completion: less forking in _systemctl_failed_units() and make the array `_sys_fa...
Eric Cook [Mon, 18 May 2015 05:02:41 +0000 (01:02 -0400)]
zsh-completion: less forking in _systemctl_failed_units() and make the array `_sys_failed_units' local to the completer.

9 years agozsh-completion: less forking in _systemctl_get_template_names()
Eric Cook [Mon, 18 May 2015 05:02:40 +0000 (01:02 -0400)]
zsh-completion: less forking in _systemctl_get_template_names()

9 years agozsh-completion: actually complete template names for subcommands enable, reenable...
Eric Cook [Mon, 18 May 2015 05:02:39 +0000 (01:02 -0400)]
zsh-completion: actually complete template names for subcommands enable, reenable and disable.

compadd's -a option treats non-option arguments as arrays. So
$(_systemctl_get_template_names) expands to some words that aren't
legal array names. Even if there were, they would be empty; thus adding
nothing.

deduplicated a few functions too.

9 years agozsh-completion: actually run _filter_units_by_property when creating the arrays _sys_...
Eric Cook [Mon, 18 May 2015 05:02:38 +0000 (01:02 -0400)]
zsh-completion: actually run _filter_units_by_property when creating the arrays _sys_(re|)startable_units

9 years agoUse "new" --job-mode= option in more places
Zbigniew Jędrzejewski-Szmek [Mon, 18 May 2015 04:58:24 +0000 (00:58 -0400)]
Use "new" --job-mode= option in more places

--irreversible/--ignore-dependencies/--fail are deprececated since 4dc5b821ae737914499119e29811fc3346e3d97c.

Also add shell completions for --jobs-mode.

9 years agoload-fragment: put quotes around iffy rvalue
Zbigniew Jędrzejewski-Szmek [Sat, 16 May 2015 22:21:01 +0000 (18:21 -0400)]
load-fragment: put quotes around iffy rvalue

9 years agoUse fflush_and_check() in more places
Zbigniew Jędrzejewski-Szmek [Sat, 16 May 2015 22:11:12 +0000 (18:11 -0400)]
Use fflush_and_check() in more places

9 years agobuildsys: Remove X_SERVER from AM_CPPFLAGS
Cristian Rodríguez [Sat, 16 May 2015 15:58:15 +0000 (12:58 -0300)]
buildsys: Remove X_SERVER from AM_CPPFLAGS

It is a leftover from multi-seat-x wrapper which is long
gone.

9 years agozsh-completion: add missing completions for systemd-nspawn
Lukas Rusak [Wed, 22 Apr 2015 18:07:39 +0000 (11:07 -0700)]
zsh-completion: add missing completions for systemd-nspawn

9 years agozsh-completion: update -M completion for systemd-analyze
Lukas Rusak [Wed, 22 Apr 2015 18:07:38 +0000 (11:07 -0700)]
zsh-completion: update -M completion for systemd-analyze

9 years agozsh-completion: add missing completions for machinectl
Lukas Rusak [Wed, 22 Apr 2015 22:52:59 +0000 (15:52 -0700)]
zsh-completion: add missing completions for machinectl

Appologies, I'm still getting used to this mailing list thing and using git send-email