]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
5 years agoMerge pull request #10450 from poettering/foreach-line-excorcism
Yu Watanabe [Thu, 18 Oct 2018 23:44:51 +0000 (08:44 +0900)] 
Merge pull request #10450 from poettering/foreach-line-excorcism

FOREACH_LINE excorcism

5 years agoMerge pull request #10447 from poettering/fgets-excorcism
Yu Watanabe [Thu, 18 Oct 2018 23:36:01 +0000 (08:36 +0900)] 
Merge pull request #10447 from poettering/fgets-excorcism

let's get rid of fgets()

5 years agoMerge pull request #10456 from poettering/setsockopt-int
Lennart Poettering [Thu, 18 Oct 2018 19:53:01 +0000 (21:53 +0200)] 
Merge pull request #10456 from poettering/setsockopt-int

add a setsockopt_int() helper and make use of it everywhere

5 years agotests: clean up again after running tests (#10446)
Lennart Poettering [Thu, 18 Oct 2018 18:59:24 +0000 (20:59 +0200)] 
tests: clean up again after running tests (#10446)

Currently, if I run the full "run-integration-tests.sh" script it will
fail on my machine because it fills up /var/tmp whith just too much
crap until the disk is full.

Let's make sure that "run-integration-tests.sh" cleans up after every
test. For that change the make targets to run from "clean setup run" to
"clean setup run clean" — except that that doesn't work since make is
smart enough to realize that the same target appears twice on the
command line and will only execute it once. Let's fix that by defining
another target "clean-again" which is just like "clean", but allows us
to be added to the same command line a second time. Then, let's build
with "clean setup run clean-again" and all is good.

While we are at it, let's also add .PHONY where appropriate, after all
these all are phony targets.

5 years agojob: add a comment that JOB_DONE also means skipped due to condition (#10453)
Lennart Poettering [Thu, 18 Oct 2018 18:55:30 +0000 (20:55 +0200)] 
job: add a comment that JOB_DONE also means skipped due to condition (#10453)

5 years agoutil: drop const_int_one/const_int_zero again 10456/head
Lennart Poettering [Thu, 18 Oct 2018 17:49:18 +0000 (19:49 +0200)] 
util: drop const_int_one/const_int_zero again

There's only a single user remaining now that we have setsockopt_int(),
let's define those variables locally.

This more or less reverts 6d5e65f6454212cd400d0ebda34978a9f20cc26a.

5 years agotree-wide: introduce setsockopt_int() helper and make use of it everywhere
Lennart Poettering [Thu, 18 Oct 2018 17:48:18 +0000 (19:48 +0200)] 
tree-wide: introduce setsockopt_int() helper and make use of it everywhere

As suggested by @heftig:

https://github.com/systemd/systemd/commit/6d5e65f6454212cd400d0ebda34978a9f20cc26a#commitcomment-30938667

5 years agoefi: rework OFFSETOF() based on __builtin_offsetof()
Lennart Poettering [Thu, 18 Oct 2018 15:10:42 +0000 (17:10 +0200)] 
efi: rework OFFSETOF() based on __builtin_offsetof()

Since both LLVM and gcc supported this for a long time, we are not
adding a fallback compat kludge. And even if there's some relevant
compiler that doesn't know this concept, it'll fail with a compiler
error, and we'll fix it then.

As suggested by @keszybz:

https://github.com/systemd/systemd/pull/10174#discussion_r226266540

5 years agoMerge pull request #10239 from yuwata/sd-device-monitor
Lennart Poettering [Thu, 18 Oct 2018 16:30:38 +0000 (18:30 +0200)] 
Merge pull request #10239 from yuwata/sd-device-monitor

sd-device: introduce sd_device_monitor

5 years agoMerge pull request #10407 from yuwata/netlink-slot
Lennart Poettering [Thu, 18 Oct 2018 16:05:58 +0000 (18:05 +0200)] 
Merge pull request #10407 from yuwata/netlink-slot

sd-netlink: introduce sd_netlink_slot object and relevant functions

5 years agomkosi: use Fedora 29
Zbigniew Jędrzejewski-Szmek [Thu, 18 Oct 2018 11:46:01 +0000 (13:46 +0200)] 
mkosi: use Fedora 29

F29 is at beta now, but should be out within two or three weeks, by the time
next systemd release happens.

5 years agotmpfiles: FOREACH_LINE excorcism 10450/head
Lennart Poettering [Thu, 18 Oct 2018 14:21:05 +0000 (16:21 +0200)] 
tmpfiles: FOREACH_LINE excorcism

5 years agosysv-generator: FOREACH_LINE excorcism
Lennart Poettering [Thu, 18 Oct 2018 14:20:43 +0000 (16:20 +0200)] 
sysv-generator: FOREACH_LINE excorcism

5 years agosysusers: FOREACH_LINE excorcism
Lennart Poettering [Thu, 18 Oct 2018 14:18:52 +0000 (16:18 +0200)] 
sysusers: FOREACH_LINE excorcism

5 years agoinstall: pass encountered error number to log_syntax()
Lennart Poettering [Thu, 18 Oct 2018 14:18:35 +0000 (16:18 +0200)] 
install: pass encountered error number to log_syntax()

5 years agoinstall: FOREACH_LINE excorcism
Lennart Poettering [Thu, 18 Oct 2018 14:18:20 +0000 (16:18 +0200)] 
install: FOREACH_LINE excorcism

5 years agoclean-ipc: FOREACH_LINE excorcism
Lennart Poettering [Thu, 18 Oct 2018 14:18:01 +0000 (16:18 +0200)] 
clean-ipc: FOREACH_LINE excorcism

5 years agoresolved-resolv-conf: FOREACH_LINE excorcism
Lennart Poettering [Thu, 18 Oct 2018 14:17:23 +0000 (16:17 +0200)] 
resolved-resolv-conf: FOREACH_LINE excorcism

5 years agoresolved-etc-hosts: FOREACH_LINE excorcism
Lennart Poettering [Thu, 18 Oct 2018 14:16:52 +0000 (16:16 +0200)] 
resolved-etc-hosts: FOREACH_LINE excorcism

5 years agoresolved-dns-trust-anchor: FOREACH_LINE excorcism
Lennart Poettering [Thu, 18 Oct 2018 14:16:06 +0000 (16:16 +0200)] 
resolved-dns-trust-anchor: FOREACH_LINE excorcism

Also, properly ignore these read errors, and say so.

5 years agolocalectl: FOREACH_LINE excorcism
Lennart Poettering [Thu, 18 Oct 2018 14:15:35 +0000 (16:15 +0200)] 
localectl: FOREACH_LINE excorcism

5 years agosd-path: FOREACH_LINE exorcism
Lennart Poettering [Thu, 18 Oct 2018 14:15:18 +0000 (16:15 +0200)] 
sd-path: FOREACH_LINE exorcism

5 years agobus-creds: FOREACH_LINE excorcism
Lennart Poettering [Thu, 18 Oct 2018 14:14:59 +0000 (16:14 +0200)] 
bus-creds: FOREACH_LINE excorcism

5 years agocoredump: FOREACH_LINE excorcism
Lennart Poettering [Thu, 18 Oct 2018 14:14:42 +0000 (16:14 +0200)] 
coredump: FOREACH_LINE excorcism

5 years agosmack-setup: include error cause in log message
Lennart Poettering [Thu, 18 Oct 2018 14:14:25 +0000 (16:14 +0200)] 
smack-setup: include error cause in log message

5 years agosmcak-setup: FOREACH_LINE excorcism
Lennart Poettering [Thu, 18 Oct 2018 14:14:12 +0000 (16:14 +0200)] 
smcak-setup: FOREACH_LINE excorcism

5 years agoshutdown: FOREACH_LINE() excorcism
Lennart Poettering [Thu, 18 Oct 2018 14:12:40 +0000 (16:12 +0200)] 
shutdown: FOREACH_LINE() excorcism

5 years agoima-setup: prefer safe_close() over plain close()
Lennart Poettering [Thu, 18 Oct 2018 14:12:06 +0000 (16:12 +0200)] 
ima-setup: prefer safe_close() over plain close()

5 years agoima-setup: include error cause in failure messages
Lennart Poettering [Thu, 18 Oct 2018 14:11:54 +0000 (16:11 +0200)] 
ima-setup: include error cause in failure messages

5 years agoima-setup: FOREACH_LINE excorcism
Lennart Poettering [Thu, 18 Oct 2018 14:10:37 +0000 (16:10 +0200)] 
ima-setup: FOREACH_LINE excorcism

5 years agocgroup: FOREACH_LINE excorcism
Lennart Poettering [Thu, 18 Oct 2018 14:09:53 +0000 (16:09 +0200)] 
cgroup: FOREACH_LINE excorcism

5 years agotime-util: FOREACH_LINE excorcism
Lennart Poettering [Thu, 18 Oct 2018 14:09:19 +0000 (16:09 +0200)] 
time-util: FOREACH_LINE excorcism

5 years agoprocess-util: FOREACH_LINE excorcism
Lennart Poettering [Thu, 18 Oct 2018 14:08:51 +0000 (16:08 +0200)] 
process-util: FOREACH_LINE excorcism

5 years agomount-util: FOREACH_LINE() excorcism
Lennart Poettering [Thu, 18 Oct 2018 14:08:30 +0000 (16:08 +0200)] 
mount-util: FOREACH_LINE() excorcism

5 years agocgroup-util: FOREACH_LINE() excorcism
Lennart Poettering [Thu, 18 Oct 2018 14:08:13 +0000 (16:08 +0200)] 
cgroup-util: FOREACH_LINE() excorcism

5 years agoMerge pull request #10174 from poettering/sd-boot-counter-efi
Zbigniew Jędrzejewski-Szmek [Thu, 18 Oct 2018 14:06:01 +0000 (16:06 +0200)] 
Merge pull request #10174 from poettering/sd-boot-counter-efi

the EFI changes from PR #9437 (the boot counting PR)

5 years agobus-unit-util: use streq() instead of STR_IN_SET()
Yu Watanabe [Thu, 18 Oct 2018 08:50:25 +0000 (17:50 +0900)] 
bus-unit-util: use streq() instead of STR_IN_SET()

Follow-up for 90fc172e191f44979005a524521112f2bd1ff21b (#10308).

5 years agoudev-rules: fgets() excorcism 10447/head
Lennart Poettering [Thu, 18 Oct 2018 11:41:09 +0000 (13:41 +0200)] 
udev-rules: fgets() excorcism

5 years agocondition: fgets() excorcism
Lennart Poettering [Thu, 18 Oct 2018 11:40:55 +0000 (13:40 +0200)] 
condition: fgets() excorcism

5 years agoreply-password: fgets() excorcism
Lennart Poettering [Thu, 18 Oct 2018 11:40:39 +0000 (13:40 +0200)] 
reply-password: fgets() excorcism

5 years agomodules-load: fgets() excorcism
Lennart Poettering [Thu, 18 Oct 2018 11:40:21 +0000 (13:40 +0200)] 
modules-load: fgets() excorcism

5 years agokeymap-util: fgets() excorcism
Lennart Poettering [Thu, 18 Oct 2018 11:40:03 +0000 (13:40 +0200)] 
keymap-util: fgets() excorcism

5 years agohwdb: fgets() excorcism
Lennart Poettering [Thu, 18 Oct 2018 11:39:41 +0000 (13:39 +0200)] 
hwdb: fgets() excorcism

5 years agocatalog: fgets() excorcism
Lennart Poettering [Thu, 18 Oct 2018 11:39:29 +0000 (13:39 +0200)] 
catalog: fgets() excorcism

5 years agocryptsetup-generator: fgets() excorcism
Lennart Poettering [Thu, 18 Oct 2018 11:34:40 +0000 (13:34 +0200)] 
cryptsetup-generator: fgets() excorcism

5 years agocgtop: fgets() excorcism
Lennart Poettering [Thu, 18 Oct 2018 11:34:12 +0000 (13:34 +0200)] 
cgtop: fgets() excorcism

5 years agobinfmt: fgets() excorcism
Lennart Poettering [Thu, 18 Oct 2018 11:33:19 +0000 (13:33 +0200)] 
binfmt: fgets() excorcism

Also, let's not claim we ignored errors when we don't.

5 years agobinfmt: validate rule file name before using it
Lennart Poettering [Thu, 18 Oct 2018 11:33:00 +0000 (13:33 +0200)] 
binfmt: validate rule file name before using it

5 years agoterminal-util: use fgetc() carefully instead of fread()
Lennart Poettering [Thu, 18 Oct 2018 11:32:34 +0000 (13:32 +0200)] 
terminal-util: use fgetc() carefully instead of fread()

5 years agoterminal-util: excorcise fgets()
Lennart Poettering [Thu, 18 Oct 2018 11:32:05 +0000 (13:32 +0200)] 
terminal-util: excorcise fgets()

5 years agoclock-util: excorcise fgets()
Lennart Poettering [Thu, 18 Oct 2018 11:30:20 +0000 (13:30 +0200)] 
clock-util: excorcise fgets()

5 years agodocs: use h2 headers
Michael Biebl [Wed, 17 Oct 2018 22:56:41 +0000 (00:56 +0200)] 
docs: use h2 headers

The primer theme does not add a mouse-over anchor link for h1 headers.
So use h2 for subsection headers which looks nicer anyway.

Followup for #10421

5 years agocore: implement per unit journal rate limiting
Anita Zhang [Mon, 8 Oct 2018 03:28:36 +0000 (20:28 -0700)] 
core: implement per unit journal rate limiting

Add LogRateLimitIntervalSec= and LogRateLimitBurst= options for
services. If provided, these values get passed to the journald
client context, and those values are used in the rate limiting
function in the journal over the the journald.conf values.

Part of #10230

5 years agoresolve: set IP_RECVERR
Yu Watanabe [Tue, 16 Oct 2018 17:32:26 +0000 (02:32 +0900)] 
resolve: set IP_RECVERR

Closes #10345.

5 years agoMerge pull request #10438 from poettering/path-is-valid
Yu Watanabe [Wed, 17 Oct 2018 21:20:41 +0000 (06:20 +0900)] 
Merge pull request #10438 from poettering/path-is-valid

be a bit more carful when processing transient socket paths via the bus

5 years agoMerge pull request #10439 from poettering/job-struct-init
Lennart Poettering [Wed, 17 Oct 2018 20:55:00 +0000 (22:55 +0200)] 
Merge pull request #10439 from poettering/job-struct-init

three trivial simplifications/clean-ups

5 years agoMerge pull request #10440 from poettering/fflush-and-check-some-more
Lennart Poettering [Wed, 17 Oct 2018 20:54:34 +0000 (22:54 +0200)] 
Merge pull request #10440 from poettering/fflush-and-check-some-more

use fflush_and_check() and free_and_replace() where we can

5 years agoMerge pull request #10428 from keszybz/failure-actions
Lennart Poettering [Wed, 17 Oct 2018 19:29:10 +0000 (21:29 +0200)] 
Merge pull request #10428 from keszybz/failure-actions

Implement manager status changes using SuccessAction=

5 years agoservice: use free_and_replace() where we can 10440/head
Lennart Poettering [Wed, 17 Oct 2018 18:18:27 +0000 (20:18 +0200)] 
service: use free_and_replace() where we can

5 years agoexec-util: use fflush_and_check() where appropriate
Lennart Poettering [Wed, 17 Oct 2018 18:14:51 +0000 (20:14 +0200)] 
exec-util: use fflush_and_check() where appropriate

5 years agoexecute: shorten things a bit 10439/head
Lennart Poettering [Wed, 17 Oct 2018 18:13:54 +0000 (20:13 +0200)] 
execute: shorten things a bit

5 years agojob: add lots of colons to log messages
Lennart Poettering [Wed, 17 Oct 2018 18:16:52 +0000 (20:16 +0200)] 
job: add lots of colons to log messages

5 years agojob: use structured initialization
Lennart Poettering [Wed, 17 Oct 2018 17:07:15 +0000 (19:07 +0200)] 
job: use structured initialization

5 years agocore: use structured initialization 10438/head
Lennart Poettering [Wed, 17 Oct 2018 19:06:23 +0000 (21:06 +0200)] 
core: use structured initialization

5 years agocore: shorten list appending a bit, by using better macros
Lennart Poettering [Wed, 17 Oct 2018 19:06:09 +0000 (21:06 +0200)] 
core: shorten list appending a bit, by using better macros

5 years agodbus: add missing OOM check
Lennart Poettering [Wed, 17 Oct 2018 19:00:16 +0000 (21:00 +0200)] 
dbus: add missing OOM check

5 years agocore: validate socket path with path_is_valid()
Lennart Poettering [Wed, 17 Oct 2018 16:28:43 +0000 (18:28 +0200)] 
core: validate socket path with path_is_valid()

5 years agopath-util: add new path_is_valid() helper
Lennart Poettering [Wed, 17 Oct 2018 16:28:14 +0000 (18:28 +0200)] 
path-util: add new path_is_valid() helper

5 years agolist: fix double avaluation in LIST_APPEND()
Lennart Poettering [Wed, 17 Oct 2018 19:05:33 +0000 (21:05 +0200)] 
list: fix double avaluation in LIST_APPEND()

5 years agosulogin-shell: Use force if SYSTEMD_SULOGIN_FORCE set
Andreas Henriksson [Sun, 14 Oct 2018 12:53:09 +0000 (14:53 +0200)] 
sulogin-shell: Use force if SYSTEMD_SULOGIN_FORCE set

When the root account is locked sulogin will either inform you of
this and not allow you in or if --force is used it will hand
you passwordless root (if using a recent enough version of util-linux).

Not being allowed a shell is ofcourse inconvenient, but at the same
time handing out passwordless root unconditionally is probably not
a good idea everywhere.

This patch thus allows to control which behaviour you want by
setting the SYSTEMD_SULOGIN_FORCE environment variable to true
or false to control the behaviour, eg. via adding this to
'systemctl edit rescue.service' (or emergency.service):

[Service]
Environment=SYSTEMD_SULOGIN_FORCE=1

Distributions who used locked root accounts and want the passwordless
behaviour could thus simply drop in the override file in
/etc/systemd/system/rescue.service.d/override.conf

Fixes: #7115
Addresses: https://bugs.debian.org/802211

5 years agocore: do not "warn" about mundane emergency actions 10428/head
Zbigniew Jędrzejewski-Szmek [Wed, 17 Oct 2018 15:27:20 +0000 (17:27 +0200)] 
core: do not "warn" about mundane emergency actions

For example in a container we'd log:
Oct 17 17:01:10 rawhide systemd[1]: Started Power-Off.
Oct 17 17:01:10 rawhide systemd[1]: Forcibly powering off: unit succeeded
Oct 17 17:01:10 rawhide systemd[1]: Reached target Power-Off.
Oct 17 17:01:10 rawhide systemd[1]: Shutting down.
and on the console we'd write (in red)
[  !!  ] Forcibly powering off: unit succeeded

This is not useful in any way, and the fact that we're calling an "emergency action"
is an internal implementation detail. Let's log about c-a-d and the watchdog actions
only.

5 years agounits: allow and use SuccessAction=exit-force in system systemd-exit.service
Zbigniew Jędrzejewski-Szmek [Tue, 16 Oct 2018 14:34:45 +0000 (16:34 +0200)] 
units: allow and use SuccessAction=exit-force in system systemd-exit.service

C.f. 287419c119ef961db487a281162ab037eba70c61: 'systemctl exit 42' can be
used to set an exit value and pulls in exit.target, which pulls in systemd-exit.service,
which calls org.fdo.Manager.Exit, which calls method_exit(), which sets the objective
to MANAGER_EXIT. Allow the same to happen through SuccessAction=exit.

v2: update for 'exit' and 'exit-force'

5 years agounits: use SuccessAction=poweroff-force in systemd-poweroff.service
Zbigniew Jędrzejewski-Szmek [Tue, 16 Oct 2018 13:34:57 +0000 (15:34 +0200)] 
units: use SuccessAction=poweroff-force in systemd-poweroff.service

Explicit systemctl calls remain in systemd-halt.service and the system
systemd-exit.service. To convert systemd-halt, we'd need to add
SuccessAction=halt-force. Halting doesn't make much sense, so let's just
leave that is. systemd-exit.service will be converted in the next commit.

5 years agounits: use SuccessAction=reboot-force in systemd-reboot.service
Zbigniew Jędrzejewski-Szmek [Tue, 16 Oct 2018 13:30:53 +0000 (15:30 +0200)] 
units: use SuccessAction=reboot-force in systemd-reboot.service

5 years agounits: use SuccessAction=exit-force in systemd-exit.service
Zbigniew Jędrzejewski-Szmek [Tue, 16 Oct 2018 13:09:11 +0000 (15:09 +0200)] 
units: use SuccessAction=exit-force in systemd-exit.service

Fixes #10414.

v2:
- rename .service.in to .service
- rename 'exit' to 'exit-force'

5 years agocore: limit service-watchdogs=no to actual "watchdog" commands
Zbigniew Jędrzejewski-Szmek [Tue, 16 Oct 2018 13:24:44 +0000 (15:24 +0200)] 
core: limit service-watchdogs=no to actual "watchdog" commands

The setting is now only looked at when considering an action for a job timeout
or unit start limit. It is ignored for ctrl-alt-del, SuccessAction, SuccessFailure.

v2: turn the parameter into a flag field
v3: rename Options to Flags

5 years agocore: allow services with no commands but SuccessAction set
Zbigniew Jędrzejewski-Szmek [Tue, 16 Oct 2018 13:07:42 +0000 (15:07 +0200)] 
core: allow services with no commands but SuccessAction set

5 years agocore: accept system mode emergency action specifiers with a warning
Zbigniew Jędrzejewski-Szmek [Tue, 16 Oct 2018 12:49:36 +0000 (14:49 +0200)] 
core: accept system mode emergency action specifiers with a warning

Before we would only accept those "system" values, so there wasn't other
chocie. Let's provide backwards compatiblity in case somebody made use of
this functionality in user mode.

v2: use 'exit-force' not 'exit'
v3: use error value in log_syntax

5 years agocore: define "exit" and "exit-force" actions for user units and only accept that
Zbigniew Jędrzejewski-Szmek [Tue, 16 Oct 2018 11:28:39 +0000 (13:28 +0200)] 
core: define "exit" and "exit-force" actions for user units and only accept that

We would accept e.g. FailureAction=reboot-force in user units and then do an
exit in the user manager. Let's be stricter, and define "exit"/"exit-force" as
the only supported actions in user units.

v2:
- rename 'exit' to 'exit-force' and add new 'exit'
- add test for the parsing function

5 years agoman: move description of *Action= modes to FailureAction=/SuccessAction=
Zbigniew Jędrzejewski-Szmek [Tue, 16 Oct 2018 13:56:35 +0000 (15:56 +0200)] 
man: move description of *Action= modes to FailureAction=/SuccessAction=

FailureAction=/SuccessAction= were added later then StartLimitAction=, so it
was easiest to refer to the existing description. But those two settings are
somewhat simpler (they just execute the action unconditionally) while
StartLimitAction= has additional timing and burst parameters, and they are
about to take on a more prominent role, so let's move the description of
allowed values.

5 years agocore: consider service with no start command immediately started
Zbigniew Jędrzejewski-Szmek [Tue, 16 Oct 2018 20:45:34 +0000 (22:45 +0200)] 
core: consider service with no start command immediately started

The service would always be in state == SERVICE_INACTIVE, but it needs to go
through state == SERVICE_START so that SuccessAction/FailureAction are executed.

5 years agoudev: make sd_device_get_devname() failure non-fatal
Yu Watanabe [Tue, 16 Oct 2018 19:04:35 +0000 (04:04 +0900)] 
udev: make sd_device_get_devname() failure non-fatal

As it is just for logging.

Follow-up for eb276e98419af59d4a587f2dd37e0b923e4c6fd2.

5 years agoMerge pull request #10244 from poettering/nofile-bump
Lennart Poettering [Wed, 17 Oct 2018 15:59:36 +0000 (17:59 +0200)] 
Merge pull request #10244 from poettering/nofile-bump

bump RLIMIT_NOFILE

5 years agocore: return true from cg_is_empty* on ENOENT
Zbigniew Jędrzejewski-Szmek [Wed, 17 Oct 2018 15:48:35 +0000 (17:48 +0200)] 
core: return true from cg_is_empty* on ENOENT

5 years agomeson: simplify definition of MEMORY_ACCOUNTING_DEFAULT 10244/head
Zbigniew Jędrzejewski-Szmek [Wed, 17 Oct 2018 12:36:09 +0000 (14:36 +0200)] 
meson: simplify definition of MEMORY_ACCOUNTING_DEFAULT

Let's just use the simplest form, it doesn't really matter how the define
looks after preprocessing.

5 years agomeson: define @HIGH_RLIMIT_NOFILE@ and use it everywhere
Zbigniew Jędrzejewski-Szmek [Wed, 17 Oct 2018 08:21:48 +0000 (10:21 +0200)] 
meson: define @HIGH_RLIMIT_NOFILE@ and use it everywhere

5 years agomain: introduce a define HIGH_RLIMIT_MEMLOCK similar to HIGH_RLIMIT_NOFILE
Lennart Poettering [Thu, 11 Oct 2018 16:31:11 +0000 (18:31 +0200)] 
main: introduce a define HIGH_RLIMIT_MEMLOCK similar to HIGH_RLIMIT_NOFILE

5 years agomain: bump fs.nr_open + fs.max-file to their largest possible values
Lennart Poettering [Thu, 11 Oct 2018 16:23:26 +0000 (18:23 +0200)] 
main: bump fs.nr_open + fs.max-file to their largest possible values

After discussions with kernel folks, a system with memcg really
shouldn't need extra hard limits on file descriptors anymore, as they
are properly accounted for by memcg anyway. Hence, let's bump these
values to their maximums.

This also adds a build time option to turn thiss off, to cover those
users who do not want to use memcg.

5 years agoMerge pull request #10429 from yuwata/drop-udev-list
Lennart Poettering [Wed, 17 Oct 2018 09:58:02 +0000 (11:58 +0200)] 
Merge pull request #10429 from yuwata/drop-udev-list

udev: replace udev_list by Hashmap

5 years agoudev: use Hashmap for storing global properties 10429/head
Yu Watanabe [Tue, 16 Oct 2018 21:47:16 +0000 (06:47 +0900)] 
udev: use Hashmap for storing global properties

5 years agoudev: use Hashmap for storing PROGRAM or BUILTIN
Yu Watanabe [Tue, 16 Oct 2018 21:11:33 +0000 (06:11 +0900)] 
udev: use Hashmap for storing PROGRAM or BUILTIN

5 years agoudev: use Hashmap for storing SECLABEL
Yu Watanabe [Tue, 16 Oct 2018 20:37:34 +0000 (05:37 +0900)] 
udev: use Hashmap for storing SECLABEL

5 years agosystemctl: fix typo
Zbigniew Jędrzejewski-Szmek [Tue, 16 Oct 2018 08:38:19 +0000 (10:38 +0200)] 
systemctl: fix typo

5 years agoudevadm-monitor: use sd_event_loop() 10239/head
Yu Watanabe [Tue, 9 Oct 2018 07:02:53 +0000 (16:02 +0900)] 
udevadm-monitor: use sd_event_loop()

5 years agoudevadm-trigger: use sd_event_loop()
Yu Watanabe [Tue, 9 Oct 2018 06:35:56 +0000 (15:35 +0900)] 
udevadm-trigger: use sd_event_loop()

5 years agoudevadm-info: use strdup() instead of strscpy()
Yu Watanabe [Tue, 2 Oct 2018 07:23:50 +0000 (16:23 +0900)] 
udevadm-info: use strdup() instead of strscpy()

5 years agoudevadm-trigger: modernize code a bit
Yu Watanabe [Tue, 2 Oct 2018 07:11:54 +0000 (16:11 +0900)] 
udevadm-trigger: modernize code a bit

5 years agoudevadm-trigger: replace udev_monitor by sd_device_monitor
Yu Watanabe [Tue, 2 Oct 2018 07:10:39 +0000 (16:10 +0900)] 
udevadm-trigger: replace udev_monitor by sd_device_monitor

5 years agoudevadm-info,trigger: replace udev_device by sd_device
Yu Watanabe [Wed, 29 Aug 2018 08:28:05 +0000 (17:28 +0900)] 
udevadm-info,trigger: replace udev_device by sd_device

5 years agoudevadm-monitor: replace udev_monitor by sd_device_monitor
Yu Watanabe [Mon, 8 Oct 2018 13:49:44 +0000 (22:49 +0900)] 
udevadm-monitor: replace udev_monitor by sd_device_monitor