platform/upstream/systemd.git
6 years agocgroup: IODeviceWeight= or friends can take device node files in /run/systemd/inacces...
Yu Watanabe [Sat, 23 Dec 2017 10:10:24 +0000 (19:10 +0900)]
cgroup: IODeviceWeight= or friends can take device node files in /run/systemd/inaccessible/

systemd creates several device nodes in /run/systemd/inaccessible/.
This makes CGroup's settings related to IO can take device node
files in the directory.

6 years agocore/socket: shorten socket_fdname()
Yu Watanabe [Tue, 19 Dec 2017 11:12:01 +0000 (20:12 +0900)]
core/socket: shorten socket_fdname()

6 years agocore/socket: dump more settings
Yu Watanabe [Sat, 23 Dec 2017 09:53:36 +0000 (18:53 +0900)]
core/socket: dump more settings

6 years agodbus-cgroup: merge several blocks which operate almost same tasks
Yu Watanabe [Tue, 19 Dec 2017 09:14:39 +0000 (18:14 +0900)]
dbus-cgroup: merge several blocks which operate almost same tasks

6 years agodbus-execute: use empty_to_null() where it can be applicable
Yu Watanabe [Tue, 19 Dec 2017 07:49:37 +0000 (16:49 +0900)]
dbus-execute: use empty_to_null() where it can be applicable

6 years agodoc: add {Condition,Assert}ControlGroupController= to TRANSIENT-SETTINGS.md
Yu Watanabe [Tue, 19 Dec 2017 06:36:36 +0000 (15:36 +0900)]
doc: add {Condition,Assert}ControlGroupController= to TRANSIENT-SETTINGS.md

Follow-up for e16647c39d195804711a006667d5bce49c0ef73d.

6 years agocgroup: move path checking logic to dbus-cgroup.c
Yu Watanabe [Tue, 19 Dec 2017 06:34:04 +0000 (15:34 +0900)]
cgroup: move path checking logic to dbus-cgroup.c

6 years agobus-unit-util: simplify bus_append_cgroup_property()
Yu Watanabe [Tue, 19 Dec 2017 06:33:20 +0000 (15:33 +0900)]
bus-unit-util: simplify bus_append_cgroup_property()

6 years agobus-unit-util: make dependency settings can take multiple units
Yu Watanabe [Tue, 19 Dec 2017 06:32:11 +0000 (15:32 +0900)]
bus-unit-util: make dependency settings can take multiple units

This allows people to specify multiple units in dependency settings
e.g. `Requires=foo.service baz.service`.

6 years agodbus-socket: move truncation check to bus_socket_set_transient_property()
Yu Watanabe [Tue, 19 Dec 2017 06:30:59 +0000 (15:30 +0900)]
dbus-socket: move truncation check to bus_socket_set_transient_property()

6 years agobasic: introduce socket_protocol_{from,to}_name()
Yu Watanabe [Sat, 23 Dec 2017 10:32:04 +0000 (19:32 +0900)]
basic: introduce socket_protocol_{from,to}_name()

And use them where they can be applicable.

6 years agodoc: update TRANSIENT-SETTINGS.md
Yu Watanabe [Tue, 19 Dec 2017 01:53:38 +0000 (10:53 +0900)]
doc: update TRANSIENT-SETTINGS.md

6 years agoman: add explanation about transient path or socket units in systemd-run
Yu Watanabe [Mon, 18 Dec 2017 15:07:11 +0000 (00:07 +0900)]
man: add explanation about transient path or socket units in systemd-run

6 years agorun: add support to create transient path and socket unit
Yu Watanabe [Mon, 18 Dec 2017 14:46:45 +0000 (23:46 +0900)]
run: add support to create transient path and socket unit

6 years agobus-unit-util: add socket unit related options
Yu Watanabe [Sat, 23 Dec 2017 07:59:56 +0000 (16:59 +0900)]
bus-unit-util: add socket unit related options

Also, split bus_append_unit_property_assignment().

6 years agocore: implement transient socket unit
Yu Watanabe [Sat, 23 Dec 2017 09:47:33 +0000 (18:47 +0900)]
core: implement transient socket unit

6 years agosocket-util: add socket_address_type_{from,to}_string()
Yu Watanabe [Sat, 23 Dec 2017 07:55:36 +0000 (16:55 +0900)]
socket-util: add socket_address_type_{from,to}_string()

6 years agocore/socket: add socket_port_type_from_string()
Yu Watanabe [Sat, 23 Dec 2017 07:29:40 +0000 (16:29 +0900)]
core/socket: add socket_port_type_from_string()

6 years agocore:socket: fix string in socket_exec_command_table
Yu Watanabe [Tue, 19 Dec 2017 13:14:07 +0000 (22:14 +0900)]
core:socket: fix string in socket_exec_command_table

6 years agocore,seccomp: fix logic to parse RestrictAddressFamilies= in dbus-execute.c
Yu Watanabe [Tue, 19 Dec 2017 02:05:43 +0000 (11:05 +0900)]
core,seccomp: fix logic to parse RestrictAddressFamilies= in dbus-execute.c

If multiple RestrictAddressFamilies= settings, some of them are
whitelist and the others are blacklist, are sent to bus, then parsing
result was corrupted.
This fixes the parse logic, now it is the same as one used in
load-fragment.c

6 years agocore,seccomp: fix logic to parse syscall filter in dbus-execute.c
Yu Watanabe [Sat, 23 Dec 2017 09:45:32 +0000 (18:45 +0900)]
core,seccomp: fix logic to parse syscall filter in dbus-execute.c

If multiple SystemCallFilter= settings, some of them are whitelist
and the others are blacklist, are sent to bus, then the parse
result was corrupted.
This fixes the parse logic, now it is the same as one used in
load-fragment.c

6 years agocore: move path_kill_slashes() to manager
Yu Watanabe [Fri, 15 Dec 2017 12:25:00 +0000 (21:25 +0900)]
core: move path_kill_slashes() to manager

6 years agocore: fix wrong validity check
Yu Watanabe [Fri, 15 Dec 2017 12:22:01 +0000 (21:22 +0900)]
core: fix wrong validity check

6 years agotree-wide: use !strv_isempty() instead of strv_length() > 0
Yu Watanabe [Fri, 15 Dec 2017 07:36:35 +0000 (16:36 +0900)]
tree-wide: use !strv_isempty() instead of strv_length() > 0

6 years agoanalyze: use normal bus connection for "plot" verb (#7685)
Zbigniew Jędrzejewski-Szmek [Mon, 18 Dec 2017 18:35:03 +0000 (19:35 +0100)]
analyze: use normal bus connection for "plot" verb (#7685)

We need to connect to hostnamed, so a private bus connection is no good.
It'd be simpler to use the normal bus connection unconditionally, but
that'd mean that e.g. systemd-analyze set-log-level might not work in
emergency mode. So let's keep trying to use the private connection except
for "plot".

Fixes #7667.

6 years agoMerge pull request #7687 from hbakken/work/add-missing-features2
Lennart Poettering [Mon, 18 Dec 2017 18:29:00 +0000 (19:29 +0100)]
Merge pull request #7687 from hbakken/work/add-missing-features2

Kernel 3.10 compat

6 years agobuild-sys: install TRANSIENT-SETTINGS.md and UIDS-GIDS.md (#7690)
Felipe Sateler [Mon, 18 Dec 2017 13:58:13 +0000 (10:58 -0300)]
build-sys: install TRANSIENT-SETTINGS.md and UIDS-GIDS.md (#7690)

6 years agocryptsetup-generator: Don't mistake NULL input as OOM (#7688)
Jan Alexander Steffens [Mon, 18 Dec 2017 13:47:18 +0000 (14:47 +0100)]
cryptsetup-generator: Don't mistake NULL input as OOM (#7688)

Since systemd v236, several Arch users complained that
systemd-cryptsetup-generator exits with an OOM error and that it
prevents the boot from continuing.

Investigating the diff of cryptsetup-generator between v235 and v236 I
noticed that create_disk allowed for the `password` and `filtered`
variables to be NULL (they're handled with `strempty()`) but not their
`*_escaped` versions, and returned OOM errors in those cases.

Fix this by checking that the input string is non-NULL before deciding
that `specifier_escape` had an OOM error.

I could not test this fix myself, but some users have reported success.

Downstream bug: https://bugs.archlinux.org/task/56733

6 years agomissing: Add DM_DEFERRED_REMOVE
Henrik Grindal Bakken [Thu, 23 Mar 2017 15:19:15 +0000 (16:19 +0100)]
missing: Add DM_DEFERRED_REMOVE

Also include missing.h in dissect-image.c to pick it up.

6 years agomissing: Define SMACK_MAGIC if it's missing
Henrik Grindal Bakken [Thu, 23 Mar 2017 15:09:10 +0000 (16:09 +0100)]
missing: Define SMACK_MAGIC if it's missing

6 years agonspawn: Include missing.h
Henrik Grindal Bakken [Thu, 23 Mar 2017 15:02:43 +0000 (16:02 +0100)]
nspawn: Include missing.h

6 years agomissing: Define EFIVARFS_MAGIC if missing
Henrik Grindal Bakken [Thu, 23 Mar 2017 15:02:20 +0000 (16:02 +0100)]
missing: Define EFIVARFS_MAGIC if missing

6 years agomissing: Add MAX_HANDLE_SZ
Henrik Grindal Bakken [Thu, 23 Mar 2017 15:07:33 +0000 (16:07 +0100)]
missing: Add MAX_HANDLE_SZ

6 years agocatalog: update Russian translation (#7678)
Sergey Ptashnick [Mon, 18 Dec 2017 12:41:43 +0000 (15:41 +0300)]
catalog: update Russian translation (#7678)

Translated taint message.

Also added a blank line before "Current system is tagged" for better
visual separation between current system state and tags description.

6 years agomissing: Add PR_SET_MM_{ARG,ENV}_{START,END}
Henrik Grindal Bakken [Thu, 23 Mar 2017 14:42:15 +0000 (15:42 +0100)]
missing: Add PR_SET_MM_{ARG,ENV}_{START,END}

6 years agomissing: Add some more btrfs structs and constants
Henrik Grindal Bakken [Thu, 23 Mar 2017 14:33:06 +0000 (15:33 +0100)]
missing: Add some more btrfs structs and constants

6 years agobtrfs: Include missing.h in btrfs-ctree.h
Henrik Grindal Bakken [Thu, 23 Mar 2017 14:30:57 +0000 (15:30 +0100)]
btrfs: Include missing.h in btrfs-ctree.h

6 years agocondition: Create AssertControlGroupController (#7630)
Chris Down [Mon, 18 Dec 2017 07:53:29 +0000 (07:53 +0000)]
condition: Create AssertControlGroupController (#7630)

Up until now, the behaviour in systemd has (mostly) been to silently
ignore failures to action unit directives that refer to an unavailble
controller. The addition of AssertControlGroupController and its
conditional counterpart allow explicit specification of the desired
behaviour when such a situation occurs.

As for how this can happen, it is possible that a particular controller
is not available in the cgroup hierarchy. One possible reason for this
is that, in the running kernel, the controller simply doesn't exist --
for example, the CPU controller in cgroup v2 has only recently been
merged and was out of tree until then. Another possibility is that the
controller exists, but has been forcibly disabled by `cgroup_disable=`
on the kernel command line.

In future this will also support whatever comes out of issue #7624,
`DefaultXAccounting=never`, or similar.

6 years agoMerge pull request #7665 from poettering/main-cleanup
Zbigniew Jędrzejewski-Szmek [Mon, 18 Dec 2017 07:26:36 +0000 (08:26 +0100)]
Merge pull request #7665 from poettering/main-cleanup

let's split up main() into more functions, to make it digestable

6 years agocatalog: update Polish translation (#7660)
Piotr Drąg [Sat, 16 Dec 2017 14:20:34 +0000 (15:20 +0100)]
catalog: update Polish translation (#7660)

6 years agoMerge pull request #7664 from poettering/fix-integration-tests
Zbigniew Jędrzejewski-Szmek [Sat, 16 Dec 2017 14:01:04 +0000 (15:01 +0100)]
Merge pull request #7664 from poettering/fix-integration-tests

Fix integration tests

6 years agoman: generalize "binary" to "program" (#7668)
Alan Jenkins [Sat, 16 Dec 2017 10:48:12 +0000 (10:48 +0000)]
man: generalize "binary" to "program" (#7668)

Systemd services are permitted to be scripts, as well as binary
executables.

The same also applies to the underlying /sbin/mount and /sbin/swapon.
It is not necessary for the user to consider what type of program file
these are.  Nor is it necessary with systemd-nspawn, to distinguish between
init as a "binary" v.s. a user-specified "program".

Also fix a couple of grammar nits in the modified sentences.

6 years agomeson: libudev_core and udevadm should have LOG_REALM=LOG_REALM_UDEV (#7666)
Franck Bui [Sat, 16 Dec 2017 08:36:36 +0000 (09:36 +0100)]
meson: libudev_core and udevadm should have LOG_REALM=LOG_REALM_UDEV (#7666)

Otherwise, setting udev_log=debug in /etc/udev/udev.conf has no effects since
systemd-udevd is built with LOG_REALM=LOG_REALM_UDEV.

However using LOG_REALM_UDEV (for libudev_core) reveals another similar bug for
udevadm which should also define LOG_REALM_UDEV.

6 years agoMerge pull request #7661 from keszybz/slice-cleanups
Lennart Poettering [Fri, 15 Dec 2017 19:55:39 +0000 (20:55 +0100)]
Merge pull request #7661 from keszybz/slice-cleanups

Slice cleanups and systemd-mount --owner

6 years agomain: add some more comments for the early initialization phase
Lennart Poettering [Fri, 15 Dec 2017 18:03:17 +0000 (19:03 +0100)]
main: add some more comments for the early initialization phase

6 years agomain: reorder variable declarations a bit
Lennart Poettering [Fri, 15 Dec 2017 18:02:35 +0000 (19:02 +0100)]
main: reorder variable declarations a bit

Let's remove a bit redundancy, and list variables of the same
type/category in one declaration line.

6 years agomain: split out 'skip_setup' check into its own functions
Lennart Poettering [Fri, 15 Dec 2017 17:53:03 +0000 (18:53 +0100)]
main: split out 'skip_setup' check into its own functions

And let's optimize it a tiny bit, by only iterating through the argument
list once, instead of twice.

6 years agomain: do bother with uid_to_name() unless we do debug logging
Lennart Poettering [Fri, 15 Dec 2017 17:51:54 +0000 (18:51 +0100)]
main: do bother with uid_to_name() unless we do debug logging

6 years agomain: conditionalize fixup_environment() internally
Lennart Poettering [Fri, 15 Dec 2017 16:54:20 +0000 (17:54 +0100)]
main: conditionalize fixup_environment() internally

This code is executed before we parse command line/configuration
parameters, hence let's not use arg_system to figure our how to clean up
things, but instead PID == 1. Let's move that check inside of the
function, to make things a bit more robust abstract from the outside.

Also, let's add a log message about this, that was so far missing.

6 years agomain: let's move ACTION_RUN test into initialize_runtime()
Lennart Poettering [Fri, 15 Dec 2017 16:52:33 +0000 (17:52 +0100)]
main: let's move ACTION_RUN test into initialize_runtime()

Let's hide this check inside the function and make it easier to follow
the general control flow of main().

6 years agomount-setup: fix MNT_CHECK_WRITABLE error handling, and log about the issue
Lennart Poettering [Fri, 15 Dec 2017 16:37:16 +0000 (17:37 +0100)]
mount-setup: fix MNT_CHECK_WRITABLE error handling, and log about the issue

Let's correct the error handling (the error is in errno, not r), and
let's add logging like the rest of the function has it.

6 years agomain: tweak timerslack message a bit
Lennart Poettering [Fri, 15 Dec 2017 16:36:19 +0000 (17:36 +0100)]
main: tweak timerslack message a bit

Let's clarify that this is a non-issue, by downgrading it to LOG_WARN
and saying "ignoring" in the message.

6 years agomain: move install_crash_handler() and mount_cgroup_controllers() invocations
Lennart Poettering [Fri, 15 Dec 2017 16:34:12 +0000 (17:34 +0100)]
main: move install_crash_handler() and mount_cgroup_controllers() invocations

Let's place them in initialize_runtime(), where they appear to fit best.
Effectively this is just a move a little bit down, swapping places with
log_execution_mode(), which should require neither call to be done
first.

Note that changes the conditionalization a bit for these calls, from
(PID == 1) to (arg_system && arg_action == ACTION_RUN). At this point this is pretty much the same
however, as we don't allow PID 1 without ACTION_RUN and without
arg_system set, safety_checks() ensures that.

6 years agocore: move arg_show_status fix-up into load_configuration()
Lennart Poettering [Fri, 15 Dec 2017 16:16:24 +0000 (17:16 +0100)]
core: move arg_show_status fix-up into load_configuration()

It's part of finalizing our runtime parameters, hence let's move this
into load_configuration() after we loaded everything else. This is safe,
since we don't use it between the location where it was and where we
place it now yet.

6 years agomain: split out code that sets up the console/terminal and stuff
Lennart Poettering [Fri, 15 Dec 2017 16:13:36 +0000 (17:13 +0100)]
main: split out code that sets up the console/terminal and stuff

More refactoring to make main() more digestable.

6 years agomain: split out code that collects passed fds
Lennart Poettering [Fri, 15 Dec 2017 16:09:18 +0000 (17:09 +0100)]
main: split out code that collects passed fds

More refactoring to make main() more digestable

6 years agomain: slight modernizations for status_welcome()
Lennart Poettering [Fri, 15 Dec 2017 16:03:55 +0000 (17:03 +0100)]
main: slight modernizations for status_welcome()

There's no point in duplicating the complex parse_env_file() invocation,
hence let's not do it.

6 years agomain: let's move the arg_show_status check into status_welcome()
Lennart Poettering [Fri, 15 Dec 2017 16:00:35 +0000 (17:00 +0100)]
main: let's move the arg_show_status check into status_welcome()

It's kinda nice to hide this check inside of status_welcome() itself, so
that it handles all this on its own.

6 years agomain: slightly rearrange serialization fdset, and logging/console setup
Lennart Poettering [Fri, 15 Dec 2017 15:53:13 +0000 (16:53 +0100)]
main: slightly rearrange serialization fdset, and logging/console setup

Let's merge two if blocks, and move log_close()/log_open() out of the
testing codepath, as there's no reason to have it there.

6 years agomain: move chdir("/") a bit earlier
Lennart Poettering [Fri, 15 Dec 2017 15:49:43 +0000 (16:49 +0100)]
main: move chdir("/") a bit earlier

There's no need to do this within the block where logging is closed,
hence move it earlier, so that this block can be kept as small as
possible.

6 years agomain: move initialize_join_controllers() invocation into load_configuration()
Lennart Poettering [Fri, 15 Dec 2017 15:48:07 +0000 (16:48 +0100)]
main: move initialize_join_controllers() invocation into load_configuration()

This just sets up some variables the loaded configuration will then
modify. Let's invoke it hence right before loading the configuration.

This moves the initialization just a tiny bit later, but that shouldn't
matter, since we never access it in-between.

6 years agomain: split out taint string logging into its own function
Lennart Poettering [Fri, 15 Dec 2017 15:38:57 +0000 (16:38 +0100)]
main: split out taint string logging into its own function

It's sufficiently complex now, let's add our own function for this too.

6 years agocore: add more safety check
Lennart Poettering [Fri, 15 Dec 2017 15:38:20 +0000 (16:38 +0100)]
core: add more safety check

Let's make sure that if we are PID 1 we are invoked in ACTION_RUN mode,
and in arg_system mode, as well as the opposite.

Everything else is untested and probably not worth supporting hence
let's bail out early if people try anyway.

6 years agocore: split out test summary output into its own function
Lennart Poettering [Fri, 15 Dec 2017 15:34:13 +0000 (16:34 +0100)]
core: split out test summary output into its own function

More refactoring to make main() shorter.

6 years agomain: split out security policy loading into its own function
Lennart Poettering [Fri, 15 Dec 2017 15:32:10 +0000 (16:32 +0100)]
main: split out security policy loading into its own function

More refactoring to make things more digestable.

6 years agomain: invoke pager_open() only at one place
Lennart Poettering [Fri, 15 Dec 2017 15:25:28 +0000 (16:25 +0100)]
main: invoke pager_open() only at one place

Let's just move this up a few lines and unify the invocation.

6 years agocore: split out various startup safety checks from main() into its own function
Lennart Poettering [Fri, 15 Dec 2017 15:23:09 +0000 (16:23 +0100)]
core: split out various startup safety checks from main() into its own function

No functional changes, just some refactoring to make main() more
digestable.

6 years agomain: split out all parsing of command line arguments/kernel arguments/configuration...
Lennart Poettering [Fri, 15 Dec 2017 15:14:19 +0000 (16:14 +0100)]
main: split out all parsing of command line arguments/kernel arguments/configuration files

Let's shorten main() a bit, and split out everything that loads our
configuration and runtime parameters into a function of its own.

No changes in behaviour.

6 years agomain: minor optimization
Lennart Poettering [Fri, 15 Dec 2017 15:13:44 +0000 (16:13 +0100)]
main: minor optimization

Let's remove one memory allocation in the common path.

6 years agotest: fix TEST-13-NSPAWN-SMOKE
Lennart Poettering [Fri, 15 Dec 2017 19:49:11 +0000 (20:49 +0100)]
test: fix TEST-13-NSPAWN-SMOKE

We need to specify a full path to the "ip" binary and busybox "ip" has a
slightly different output than the normal ip, and won't show "DOWN".
hence instead ensure that at lest not "UP" is in there.

6 years agotest: make sure "make" in the test directories works again
Lennart Poettering [Fri, 15 Dec 2017 18:47:16 +0000 (19:47 +0100)]
test: make sure "make" in the test directories works again

Fixes: #7648

6 years agogenerator: add helper function for writing unit files
Zbigniew Jędrzejewski-Szmek [Sat, 9 Dec 2017 18:23:26 +0000 (19:23 +0100)]
generator: add helper function for writing unit files

It doesn't save too much, but it's a common pattern so I think it's worth
to factor this out.

6 years agoFix logical error in meson.build (#7658)
Max Harmathy [Fri, 15 Dec 2017 15:05:25 +0000 (16:05 +0100)]
Fix logical error in meson.build (#7658)

sysvinit_path and sysvrcnd_path have to be set both to activate Sysv compatibility.

6 years agomount: add option to specify uid= and gid=
Zbigniew Jędrzejewski-Szmek [Sat, 9 Dec 2017 09:18:48 +0000 (10:18 +0100)]
mount: add option to specify uid= and gid=

The kernel needs two numbers, but for the user it's most convenient to provide the
user name and have that resolved to uid and gid.

Right now the primary group of the specified user is always used. That's the most
common case anyway. In the future we can extend the --owner option to allow a group
after a colon.

[I added this before realizing that this will not be enough to be used for user
runtime directory. But this seems useful on its own, so I'm keeping this commit.]

6 years agologind: use free_and_replace in one spot
Zbigniew Jędrzejewski-Szmek [Thu, 7 Dec 2017 21:16:16 +0000 (22:16 +0100)]
logind: use free_and_replace in one spot

No functional change.

6 years agotree-wide: use SPECIAL_ROOT_SLICE
Zbigniew Jędrzejewski-Szmek [Thu, 7 Dec 2017 13:28:00 +0000 (14:28 +0100)]
tree-wide: use SPECIAL_ROOT_SLICE

6 years agocore: reuse slice_build_parent_slice
Zbigniew Jędrzejewski-Szmek [Thu, 7 Dec 2017 13:23:58 +0000 (14:23 +0100)]
core: reuse slice_build_parent_slice

6 years agologind: fix misleading message
Zbigniew Jędrzejewski-Szmek [Thu, 7 Dec 2017 12:12:13 +0000 (13:12 +0100)]
logind: fix misleading message

This message would also be emitted at boot for any user with linger
enabled, so "logged in" is the wrong term to use.

6 years agologind: simplify one conditional
Zbigniew Jędrzejewski-Szmek [Thu, 7 Dec 2017 11:57:31 +0000 (12:57 +0100)]
logind: simplify one conditional

Don't bother with removing the directory if we didn't create it.

6 years agoman: Clarify when OnFailure= activates after restarts (#7646)
Ken (Bitsko) MacLeod [Fri, 15 Dec 2017 10:10:41 +0000 (04:10 -0600)]
man: Clarify when OnFailure= activates after restarts (#7646)

6 years agotree-wide: add DEBUG_LOGGING macro that checks whether debug logging is on (#7645)
Lennart Poettering [Fri, 15 Dec 2017 10:09:00 +0000 (11:09 +0100)]
tree-wide: add DEBUG_LOGGING macro that checks whether debug logging is on (#7645)

This makes things a bit easier to read I think, and also makes sure we
always use the _unlikely_ wrapper around it, which so far we used
sometimes and other times we didn't. Let's clean that up.

6 years agoMerge pull request #7637 from yuwata/transient-path
Lennart Poettering [Fri, 15 Dec 2017 09:53:49 +0000 (10:53 +0100)]
Merge pull request #7637 from yuwata/transient-path

core/path: implement transient path unit

6 years agoMerge pull request #7631 from cgwalters/systemctl-offline
Lennart Poettering [Fri, 15 Dec 2017 09:29:21 +0000 (10:29 +0100)]
Merge pull request #7631 from cgwalters/systemctl-offline

systemctl,verbs: Introduce SYSTEMCTL_OFFLINE environment variable

6 years agoMerge pull request #7644 from poettering/memzero
Lennart Poettering [Fri, 15 Dec 2017 09:27:31 +0000 (10:27 +0100)]
Merge pull request #7644 from poettering/memzero

add memzero()/zero() coccinelle scripts and use them

6 years agoCODING_STYLE: provide better explanation why /* */ over // (#7647)
Lennart Poettering [Fri, 15 Dec 2017 09:26:07 +0000 (10:26 +0100)]
CODING_STYLE: provide better explanation why /* */ over // (#7647)

Let's provide a real reason why /* */ should be used for commenting,
rather than //, beyond mere taste.

(This ultimately simply codifies how I use // vs. /* */ comments, and I
think this is useful as an explanation and reason hence.)

6 years agoTODO: update
Yu Watanabe [Thu, 14 Dec 2017 13:17:17 +0000 (22:17 +0900)]
TODO: update

6 years agodoc: update TRANSIENT-SETTINGS.md
Yu Watanabe [Thu, 14 Dec 2017 13:02:06 +0000 (22:02 +0900)]
doc: update TRANSIENT-SETTINGS.md

6 years agobus-unit-util: add path unit related options
Yu Watanabe [Fri, 15 Dec 2017 00:11:39 +0000 (09:11 +0900)]
bus-unit-util: add path unit related options

6 years agocore/path: implement transient path unit
Yu Watanabe [Mon, 11 Dec 2017 15:10:58 +0000 (00:10 +0900)]
core/path: implement transient path unit

6 years agocore/dbus-timer: improve error messages
Yu Watanabe [Thu, 14 Dec 2017 12:52:47 +0000 (21:52 +0900)]
core/dbus-timer: improve error messages

6 years agobus-unit-util: improve error messages
Yu Watanabe [Thu, 14 Dec 2017 07:34:26 +0000 (16:34 +0900)]
bus-unit-util: improve error messages

6 years agobus-unit-util: remove unnecessary oom check
Yu Watanabe [Thu, 14 Dec 2017 07:32:59 +0000 (16:32 +0900)]
bus-unit-util: remove unnecessary oom check

We cannot detect error by alloca().

6 years agofinal v236 update (#7649) v236
Lennart Poettering [Thu, 14 Dec 2017 22:09:57 +0000 (23:09 +0100)]
final v236 update (#7649)

6 years agoMerge pull request #7608 from poettering/more-news-v236
Lennart Poettering [Thu, 14 Dec 2017 21:58:22 +0000 (22:58 +0100)]
Merge pull request #7608 from poettering/more-news-v236

more v236 news improvements

6 years agoMerge pull request #6598 from kyle-walker/shutdown-limit
Lennart Poettering [Thu, 14 Dec 2017 21:57:57 +0000 (22:57 +0100)]
Merge pull request #6598 from kyle-walker/shutdown-limit

core: Limit the time and attempts in shutdown remount/umount efforts

6 years agoMerge pull request #7640 from keszybz/tainting-updates
Lennart Poettering [Thu, 14 Dec 2017 21:57:17 +0000 (22:57 +0100)]
Merge pull request #7640 from keszybz/tainting-updates

Tainting updates

6 years agoMerge pull request #7469 from kinvolk/dongsu/nspawn-netns
Zbigniew Jędrzejewski-Szmek [Thu, 14 Dec 2017 21:47:57 +0000 (22:47 +0100)]
Merge pull request #7469 from kinvolk/dongsu/nspawn-netns

nspawn: introduce an option for specifying network namespace path

6 years agoUpdate TODO
Zbigniew Jędrzejewski-Szmek [Thu, 14 Dec 2017 13:12:39 +0000 (14:12 +0100)]
Update TODO

6 years agomeson: restore --update-catalog call after install
Zbigniew Jędrzejewski-Szmek [Thu, 14 Dec 2017 13:12:31 +0000 (14:12 +0100)]
meson: restore --update-catalog call after install

This got dropped by mistake in 72cdb3e783174dcf9223a49f03e3b0e2ca95ddb8.

6 years agoMake taint message structured and add catalog entry
Zbigniew Jędrzejewski-Szmek [Thu, 14 Dec 2017 09:15:41 +0000 (10:15 +0100)]
Make taint message structured and add catalog entry

Dec 14 14:10:54 krowka systemd[1]: System is tainted: overflowgid-not-65534
-- Subject: The system is configured in a way that might cause problems
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- The following "tags" are possible:
-- - "split-usr" — /usr is a separate file system and was not mounted when systemd
--   was booted
-- - "cgroups-missing" — the kernel was compiled without cgroup support or access
--   to expected interface files is resticted
-- - "var-run-bad" — /var/run is not a symlink to /run
-- - "overflowuid-not-65534" — the kernel user ID used for "unknown" users (with
--   NFS or user namespaces) is not 65534
-- - "overflowgid-not-65534" — the kernel group ID used for "unknown" users (with
--   NFS or user namespaces) is not 65534
-- Current system is tagged as overflowgid-not-65534.