]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
5 years agoMerge pull request #8824 from keszybz/analyze-show-config
Lennart Poettering [Thu, 10 May 2018 18:14:23 +0000 (11:14 -0700)] 
Merge pull request #8824 from keszybz/analyze-show-config

systemd-analyze show-config

5 years agomtd: some basic code cleanups
Lennart Poettering [Tue, 24 Apr 2018 15:50:01 +0000 (17:50 +0200)] 
mtd: some basic code cleanups

While looking at our exit() invocations I noticed that the mtd_probe
stuff uses 'exit(-1)' at various places, which is not really a good
idea, as exit codes of processes on Linux are supposed to be in the
range of 0…255.

This patch cleans that up a bit, and fixes a number of other things:

1. Let's always let main() exit, nothing intermediary. We generally
   don't like code that invokes exit() on its own.

2. Close the file descriptors opened.

3. Some logging for errors is added, mostly on debug level.

Please review this with extra care. As I don't have the right hardware
to test this patch I only did superficial testing.

5 years agoNetworkd tests: add bridge link properties to test
Susant Sahani [Sun, 29 Apr 2018 04:02:22 +0000 (09:32 +0530)] 
Networkd tests: add bridge link properties to test

Test the "[Bridge]" section keys

```
[Bridge]
UnicastFlood=true
HairPin=true
UseBPDU=true
FastLeave=true
AllowPortToBeRoot=true
Cost=555
Priority=23
```

```
test_bridge_init (__main__.BridgeTest) ... ok
test_bridge_port_priority (__main__.BridgeTest) ... ok
test_bridge_port_priority_set_zero (__main__.BridgeTest)
It should be possible to set the bridge port priority to 0 ... ok
test_bridge_port_property (__main__.BridgeTest)
Test the "[Bridge]" section keys ... ok

```

5 years agoman: journal-gatewayd.service: links on {rem,upl}
Mikhail Kasimov [Thu, 10 May 2018 16:58:12 +0000 (19:58 +0300)] 
man: journal-gatewayd.service: links on {rem,upl}

While set of systemd-journal-{gatewayd,remote,upload}.service services presents single subsystem on journald logs network transmission, systemd-journal-gatewayd.service description should also contain links to other parts of this subsystem: systemd-journal-remote.service and systemd-journal-upload.service.

5 years agoMerge pull request #8950 from dtardon/cleanup
Zbigniew Jędrzejewski-Szmek [Thu, 10 May 2018 15:23:40 +0000 (17:23 +0200)] 
Merge pull request #8950 from dtardon/cleanup

use automatic cleanup more

5 years agogithub: use multiple issue templates
Zbigniew Jędrzejewski-Szmek [Thu, 10 May 2018 07:01:22 +0000 (09:01 +0200)] 
github: use multiple issue templates

Github now has issue templates in the web interface, and allows
more than one to be specified. Let's split our single template
in two: bug report and RFE.

5 years agoMerge pull request #8943 from keszybz/coverity-fixes
Yu Watanabe [Thu, 10 May 2018 14:22:38 +0000 (23:22 +0900)] 
Merge pull request #8943 from keszybz/coverity-fixes

Coverity fixes

5 years agosd-bus: use automatic cleanup more 8950/head
David Tardon [Thu, 10 May 2018 13:55:56 +0000 (15:55 +0200)] 
sd-bus: use automatic cleanup more

5 years agobasic: use automatic cleanup more
David Tardon [Thu, 10 May 2018 12:10:53 +0000 (14:10 +0200)] 
basic: use automatic cleanup more

5 years agobasic: use automatic cleanup more
David Tardon [Thu, 10 May 2018 12:08:35 +0000 (14:08 +0200)] 
basic: use automatic cleanup more

5 years agobasic: use automatic cleanup more
David Tardon [Thu, 10 May 2018 12:04:30 +0000 (14:04 +0200)] 
basic: use automatic cleanup more

5 years agojournal: use automatic cleanup more
David Tardon [Thu, 10 May 2018 11:42:36 +0000 (13:42 +0200)] 
journal: use automatic cleanup more

5 years agoman: systemd-networkd-wait-online: systemd.service (#8945)
Mikhail Kasimov [Thu, 10 May 2018 03:47:03 +0000 (06:47 +0300)] 
man: systemd-networkd-wait-online: systemd.service (#8945)

* man: systemd-networkd-wait-online: systemd.service

While service type is mentioned (is a oneshot system service), link on systemd.service is added. 'See Also' section is also updated with link on systemd.service man-page.

5 years agoman: systemd-escape: add missed short keys (#8944)
Mikhail Kasimov [Thu, 10 May 2018 03:15:55 +0000 (06:15 +0300)] 
man: systemd-escape: add missed short keys (#8944)

Added short keys -u and -m for --unescape and --mangle respectively. These short keys are present in systemd-escape --help output and are absent in man systemd-escape page.

5 years agoconf-parser: accept trailing backslash at the end of the file (#8941)
Filipe Brandenburger [Thu, 10 May 2018 01:10:07 +0000 (18:10 -0700)] 
conf-parser: accept trailing backslash at the end of the file (#8941)

This makes it behave the same whether there is a blank line or not at
the end of the file.  This is also consistent with the behavior of the
shell on a shell script that ends on a trailing backslash at the last
line.

Added tests to test_config_parse(), which only pass if the corresponding
change to config_parse() is included.

5 years agoadd journal-upload.conf refentrytitle (#8942)
Mikhail Kasimov [Thu, 10 May 2018 00:18:59 +0000 (03:18 +0300)] 
add journal-upload.conf refentrytitle (#8942)

Add journal-upload.conf refentrytitle to have the same format to systemd-journal-remote.service description, which contains refentrytitle on journal-remote.conf in 'See Also' section.

5 years agocore/mount-setup: remove part of check which is always true 8943/head
Zbigniew Jędrzejewski-Szmek [Thu, 10 May 2018 00:03:23 +0000 (02:03 +0200)] 
core/mount-setup: remove part of check which is always true

k was set to join_controllers at this point and only incremented, so
it cannot be null at this point.

CID #1390949.

5 years agobasic/fs-util: remove logically dead code
Zbigniew Jędrzejewski-Szmek [Wed, 9 May 2018 23:55:05 +0000 (01:55 +0200)] 
basic/fs-util: remove logically dead code

We can jump to chase_one from two places. In the first 'todo' is set to
'buffer', which comes from path_make_absolute_cwd() and is nonnull In the
second 'todo' is set to 'joined' which is checked to be nonull a few lines
above the jump. So let's kill the code that deals with null todo there.

CID #1390941.

5 years agoudevadm: fix null dererefence on allocation error
Zbigniew Jędrzejewski-Szmek [Wed, 9 May 2018 23:49:01 +0000 (01:49 +0200)] 
udevadm: fix null dererefence on allocation error

CID #1390936.

5 years agolocaled: fix memleak in error path
Zbigniew Jędrzejewski-Szmek [Wed, 9 May 2018 23:45:20 +0000 (01:45 +0200)] 
localed: fix memleak in error path

CID #1390929.

5 years agologind: fix borked r check
Zbigniew Jędrzejewski-Szmek [Wed, 9 May 2018 23:34:33 +0000 (01:34 +0200)] 
logind: fix borked r check

CID #1390947, #1390952.

5 years agobasic/format-table: add missing va_end()
Zbigniew Jędrzejewski-Szmek [Wed, 9 May 2018 23:22:29 +0000 (01:22 +0200)] 
basic/format-table: add missing va_end()

CID #1390930, #1390940.

5 years agoIntroduce _cleanup_(strbuf_cleanupp) and use it to fix null deref on error
Zbigniew Jędrzejewski-Szmek [Wed, 9 May 2018 23:16:03 +0000 (01:16 +0200)] 
Introduce _cleanup_(strbuf_cleanupp) and use it to fix null deref on error

catalog_update() would call strbuf_cleanup(NULL) on allocation error.
CID #1390928.

5 years agoshared/sleep-config: fix memleak of strv, add test
Zbigniew Jędrzejewski-Szmek [Wed, 9 May 2018 23:04:53 +0000 (01:04 +0200)] 
shared/sleep-config: fix memleak of strv, add test

CID #1390921, #1390951.

5 years agoMerge pull request #8689 from davide125/static
Zbigniew Jędrzejewski-Szmek [Wed, 9 May 2018 22:39:36 +0000 (00:39 +0200)] 
Merge pull request #8689 from davide125/static

meson: add support for building static libsystemd and libudev

5 years agoMerge pull request #8939 from yuwata/fix-comment
Igor Gnatenko [Wed, 9 May 2018 18:55:26 +0000 (20:55 +0200)] 
Merge pull request #8939 from yuwata/fix-comment

several cleanups

5 years agotimedate: use free_and_strdup() 8939/head
Yu Watanabe [Wed, 9 May 2018 15:59:47 +0000 (00:59 +0900)] 
timedate: use free_and_strdup()

5 years agotree-wide: use strv_free_and_replace() macro
Yu Watanabe [Wed, 9 May 2018 15:34:46 +0000 (00:34 +0900)] 
tree-wide: use strv_free_and_replace() macro

5 years agotime-util: fix indentation for comments
Yu Watanabe [Wed, 9 May 2018 13:50:07 +0000 (22:50 +0900)] 
time-util: fix indentation for comments

5 years agoMerge pull request #8923 from yuwata/resolvectl-drop-funcs
Zbigniew Jędrzejewski-Szmek [Wed, 9 May 2018 12:12:33 +0000 (14:12 +0200)] 
Merge pull request #8923 from yuwata/resolvectl-drop-funcs

resolvectl: drop service_family_{from,to}_string()

5 years agoMerge pull request #8938 from keszybz/sd-bus-automatic-cleanup
Yu Watanabe [Wed, 9 May 2018 08:54:30 +0000 (17:54 +0900)] 
Merge pull request #8938 from keszybz/sd-bus-automatic-cleanup

Use automatic cleanup more in sd-bus

5 years agouse max. message size allowed by DBus spec (#8936)
David Tardon [Wed, 9 May 2018 08:33:28 +0000 (10:33 +0200)] 
use max. message size allowed by DBus spec (#8936)

C.f. https://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol-messages.

5 years agoMerge pull request #8934 from yuwata/fix-8913
Zbigniew Jędrzejewski-Szmek [Wed, 9 May 2018 08:31:24 +0000 (10:31 +0200)] 
Merge pull request #8934 from yuwata/fix-8913

 bus-util: print a friendly message when PID1 is not systemd

5 years agobus-util: print a friendly message when PID1 is not systemd 8934/head
Yu Watanabe [Wed, 9 May 2018 08:06:46 +0000 (17:06 +0900)] 
bus-util: print a friendly message when PID1 is not systemd

Follow-up for 861f16d2679eeda79e8185057cef24653913e300.

Fixes #8913.

5 years agoanalyze: merge acquire_full_bus() and acquire_systemd_bus()
Yu Watanabe [Wed, 9 May 2018 05:56:40 +0000 (14:56 +0900)] 
analyze: merge acquire_full_bus() and acquire_systemd_bus()

Follow-up for 5c69b31c137ffa24bca5a4628f9b4879d0f4e84a.

5 years agosd-bus: add bus_freep and use _cleanup_ 8938/head
Zbigniew Jędrzejewski-Szmek [Wed, 9 May 2018 07:44:37 +0000 (09:44 +0200)] 
sd-bus: add bus_freep and use _cleanup_

5 years agosd-bus: use automatic cleanup more
Zbigniew Jędrzejewski-Szmek [Wed, 9 May 2018 07:35:01 +0000 (09:35 +0200)] 
sd-bus: use automatic cleanup more

5 years agosd-bus: trivial simplification
Zbigniew Jędrzejewski-Szmek [Wed, 9 May 2018 07:25:03 +0000 (09:25 +0200)] 
sd-bus: trivial simplification

5 years agoman: fix invalid option name --devpath in 'udevadm info' (#8935)
Yu Watanabe [Wed, 9 May 2018 07:17:37 +0000 (16:17 +0900)] 
man: fix invalid option name --devpath in 'udevadm info' (#8935)

5 years agoman: --debug option is implied in udev test and test-builtin commands (#8933)
Yu Watanabe [Wed, 9 May 2018 07:00:55 +0000 (16:00 +0900)] 
man: --debug option is implied in udev test and test-builtin commands (#8933)

5 years agoMerge pull request #8902 from yuwata/link-multiple-mac
Zbigniew Jędrzejewski-Szmek [Wed, 9 May 2018 06:35:26 +0000 (08:35 +0200)] 
Merge pull request #8902 from yuwata/link-multiple-mac

network,link: make MACAddress= in [Match] section can take multiple MAC addresses

5 years agonetwork,udev: sort included headers 8902/head
Yu Watanabe [Fri, 4 May 2018 08:56:34 +0000 (17:56 +0900)] 
network,udev: sort included headers

5 years agoman: document that MACAddress= in [Match] section can take multiple MAC addresses
Yu Watanabe [Wed, 9 May 2018 03:00:16 +0000 (12:00 +0900)] 
man: document that MACAddress= in [Match] section can take multiple MAC addresses

5 years agonetwork,udev: make MACAddress= in [Match] section take multiple MAC addresses
Yu Watanabe [Wed, 9 May 2018 02:59:18 +0000 (11:59 +0900)] 
network,udev: make MACAddress= in [Match] section take multiple MAC addresses

5 years agotest: add tests for config_parse_hwaddrs()
Yu Watanabe [Sun, 6 May 2018 04:51:30 +0000 (13:51 +0900)] 
test: add tests for config_parse_hwaddrs()

5 years agolibsystemd-network: introduce config_parse_hwaddrs()
Yu Watanabe [Sun, 6 May 2018 04:47:15 +0000 (13:47 +0900)] 
libsystemd-network: introduce config_parse_hwaddrs()

5 years agoether-addr-util: add hash_ops functions for struct ether_addr
Yu Watanabe [Sun, 6 May 2018 16:30:00 +0000 (01:30 +0900)] 
ether-addr-util: add hash_ops functions for struct ether_addr

5 years agoether-addr-util: make ether_addr_from_string() stricter
Yu Watanabe [Fri, 4 May 2018 08:36:40 +0000 (17:36 +0900)] 
ether-addr-util: make ether_addr_from_string() stricter

5 years agomeson: recompile all sources for install_libudev_static and install_libsystemd_static 8689/head
Zbigniew Jędrzejewski-Szmek [Wed, 25 Apr 2018 13:29:48 +0000 (15:29 +0200)] 
meson: recompile all sources for install_libudev_static and install_libsystemd_static

This means that when those targets are built, all the sources are built again,
instead of reusing the work done to create libbasic.a and other convenience static
libraries. It would be nice to not do this, but there seems to be no support in
our toolchain for joining multiple static libraries into one. When linking
a static library, any -l arguments are simply ignored by ar/gcc-ar, and .a
libraries given as positional arguments are copied verbatim into the archive
so they objects in them cannot be accessed.

https://stackoverflow.com/questions/2157629/linking-static-libraries-to-other-static-libraries
suggests either unzipping all the archives and putting them back togather,
or using a linker script. Unzipping and zipping back together seems ugly.
The other option is not very nice. The linker script language does not
allow "+" to appear in the filenames, and filenames that meson generates
use that, so files would have to be renamed before a linker script was used.
And we would have to generate the linker script on the fly. Either way, this
doesn't seem attractive. Since those static libraries are a niche use case,
it seems reasonable to just go with the easiest and safest solution and
recompile all the source files. Thanks to ccache, this is probably almost as
cheap as actually reusing the convenience .a libraries.

test-libsystemd-sym.c and test-libudev-sym.c compile fine with the generated
static libs, so it seems that they indeed provide all the symbols they should.

5 years agomeson: only build test-lib{systemd,udev}-static-sym for pic
Davide Cavalca [Tue, 24 Apr 2018 20:34:48 +0000 (13:34 -0700)] 
meson: only build test-lib{systemd,udev}-static-sym for pic

5 years agomeson: add test-lib{systemd,udev}-static-sym
Zbigniew Jędrzejewski-Szmek [Mon, 23 Apr 2018 11:49:27 +0000 (13:49 +0200)] 
meson: add test-lib{systemd,udev}-static-sym

This is the same as test-lib{systemd,udev}-sym, but linked to the static
variants of those libraries.

5 years agomeson: add support for building static libsystemd and libudev
Davide Cavalca [Mon, 9 Apr 2018 09:43:35 +0000 (02:43 -0700)] 
meson: add support for building static libsystemd and libudev

5 years agotools/oss-fuzz: install private shared library non-executable (#8927)
Zbigniew Jędrzejewski-Szmek [Tue, 8 May 2018 15:00:19 +0000 (17:00 +0200)] 
tools/oss-fuzz: install private shared library non-executable (#8927)

Apparently oss-fuzz's "bad build check" is confused by the library.
Let's make it non-executable, so the checker ignores it.

Should fix https://github.com/google/oss-fuzz/issues/1330.

5 years agoman/systemd.special: fix network v.s. LSB scripts (#8930)
Alan Jenkins [Tue, 8 May 2018 14:53:41 +0000 (15:53 +0100)] 
man/systemd.special: fix network v.s. LSB scripts (#8930)

$network is converted to network-online.target, not network-target.

See https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/
and the implementation at `src/sysv-generator/sysv-generator.c`.

5 years agoMerge pull request #8915 from yuwata/fix-8904
Michael Biebl [Tue, 8 May 2018 13:03:27 +0000 (15:03 +0200)] 
Merge pull request #8915 from yuwata/fix-8904

 login: do not wall message on cancelling shutdown when Manager.enable_wall_messages is false

5 years agolink: Add support to configure channels of the specified network device (#8882)
Susant Sahani [Tue, 8 May 2018 11:03:41 +0000 (16:33 +0530)] 
link: Add support to configure channels of the specified network device (#8882)

closes #8856

5 years agoMerge pull request #8898 from poettering/nspawn-mount-block
Zbigniew Jędrzejewski-Szmek [Tue, 8 May 2018 10:54:58 +0000 (12:54 +0200)] 
Merge pull request #8898 from poettering/nspawn-mount-block

some nspawn cgroup and mount lock-down fixes

5 years agoMerge pull request #8926 from keszybz/man-journal-remote
Yu Watanabe [Tue, 8 May 2018 08:56:51 +0000 (17:56 +0900)] 
Merge pull request #8926 from keszybz/man-journal-remote

Small additions to sd-journal-{remote,upload}.service man pages

5 years agoman: fix title of systemd-networkd-wait-online(8) (#8925)
Yu Watanabe [Tue, 8 May 2018 08:53:52 +0000 (17:53 +0900)] 
man: fix title of systemd-networkd-wait-online(8) (#8925)

5 years agoresolvectl: drop service_family_{from,to}_string() 8923/head
Yu Watanabe [Tue, 8 May 2018 08:52:36 +0000 (17:52 +0900)] 
resolvectl: drop service_family_{from,to}_string()

These functions are used only for checking the validity of input string.
Hence, this drops them and introduces a simple checking function.

5 years agoman: add missing 'query' command in examples of resolvectl
Yu Watanabe [Tue, 8 May 2018 03:09:31 +0000 (12:09 +0900)] 
man: add missing 'query' command in examples of resolvectl

5 years agoman: add a bit more text about systemd-journal-upload.service 8926/head
Zbigniew Jędrzejewski-Szmek [Tue, 8 May 2018 08:39:18 +0000 (10:39 +0200)] 
man: add a bit more text about systemd-journal-upload.service

5 years agoman: add a bit more text about systemd-journal-remote.service
Zbigniew Jędrzejewski-Szmek [Tue, 8 May 2018 08:37:09 +0000 (10:37 +0200)] 
man: add a bit more text about systemd-journal-remote.service

5 years agoMerge pull request #8922 from yuwata/fix-8920-8921
Zbigniew Jędrzejewski-Szmek [Tue, 8 May 2018 08:31:50 +0000 (10:31 +0200)] 
Merge pull request #8922 from yuwata/fix-8920-8921

man: update references to systemd-journal-{remote,upload}

5 years agoman: fix typo 8922/head
Yu Watanabe [Tue, 8 May 2018 03:41:59 +0000 (12:41 +0900)] 
man: fix typo

5 years agoman: mention that --url option of journal-upload can specify the port number
Yu Watanabe [Tue, 8 May 2018 02:58:16 +0000 (11:58 +0900)] 
man: mention that --url option of journal-upload can specify the port number

5 years agoman: mention the default port number of journal-remote
Yu Watanabe [Tue, 8 May 2018 02:57:28 +0000 (11:57 +0900)] 
man: mention the default port number of journal-remote

5 years agoman: update references to systemd-journal-{remote,upload}
Yu Watanabe [Tue, 8 May 2018 01:14:02 +0000 (10:14 +0900)] 
man: update references to systemd-journal-{remote,upload}

Fixes #8920 and #8921.

5 years agoEliminate config_dirs vars which hold a static strv 8824/head
Zbigniew Jędrzejewski-Szmek [Fri, 27 Apr 2018 16:20:17 +0000 (18:20 +0200)] 
Eliminate config_dirs vars which hold a static strv

5 years agoanalyze: allow full paths for cat-config
Zbigniew Jędrzejewski-Szmek [Fri, 27 Apr 2018 10:50:07 +0000 (12:50 +0200)] 
analyze: allow full paths for cat-config

$ systemd-analyze cat-config systemd/logind.conf
$ systemd-analyze cat-config /etc/systemd/logind.conf
$ systemd-analyze cat-config /usr/lib/systemd/logind.conf
are all equvalent,
$ systemd-analyze cat-config /var/systemd/logind.conf
is an error.

5 years agoanalyze: seperate config file groups by underline
Zbigniew Jędrzejewski-Szmek [Fri, 27 Apr 2018 07:55:32 +0000 (09:55 +0200)] 
analyze: seperate config file groups by underline

When multiple configuration file groups are shown together (e.g.
systemd-analyze cat-config systemd/system.conf systemd/user.conf), it's nice
to separate them visually.

I tried first to write a line of spaces and underline that. This does not look
too good, because the line is too low. Then I tried a block of blue-background
spaces. In this version, there are two lines, one is full of spaces and
underlined, so visually we get an empty line in the middle.

I then tried underlining the last line of the previous file. This does not look
right, unless the line is full width, i.e. unless spaces are written out until
the end of the line. But when those spaces are added, it's not clear if they
were part of the original file or not. Here, the spaces are between groups, so
it seems less likely that somebody will mistake those spaces for part of the
configuration file.

5 years agodoc: clarify at which point user/group name resolution needs to work (#8884)
Lennart Poettering [Mon, 7 May 2018 12:49:16 +0000 (14:49 +0200)] 
doc: clarify at which point user/group name resolution needs to work (#8884)

Prompted by the discussions on:

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

5 years agonetworkd: add support to send DHCP user class option (#7499)
Susant Sahani [Mon, 7 May 2018 12:21:02 +0000 (17:51 +0530)] 
networkd: add support to send DHCP user class option (#7499)

This patch add support to enables to send User Class option code 77
RFC 3004.

This option MAY carry multiple User Classes.

The format of this option is as follows:

         Code   Len   Value
        +-----+-----+---------------------  . . .  --+
        | 77  |  N  | User Class Data ('Len' octets) |
        +-----+-----+---------------------  . . .  --+

   where Value consists of one or more instances of User Class Data.
   Each instance of User Class Data is formatted as follows:

         UC_Len_i     User_Class_Data_i
        +--------+------------------------  . . .  --+
        |  L_i   | Opaque-Data ('UC_Len_i' octets)   |
        +--------+------------------------  . . .  --+

UserClass=
A DHCPv4 client can use UserClass option to identify the type or category of user or applications
it represents. The information contained in this option is an string that represents the user class
of which the client is a member. Each class sets an identifying string of information to be used by the DHCP service to classify clients. Takes a whitespace-separated list.

UserClass= hello world how are you

Closes: RFC: #5134
5 years agomeson: generate m4 preprocessor from config.h (#8914)
Yu Watanabe [Mon, 7 May 2018 09:17:35 +0000 (18:17 +0900)] 
meson: generate m4 preprocessor from config.h (#8914)

5 years agologin: do not wall message on cancelling shutdown when Manager.enable_wall_messages... 8915/head
Yu Watanabe [Mon, 7 May 2018 01:16:04 +0000 (10:16 +0900)] 
login: do not wall message on cancelling shutdown when Manager.enable_wall_messages is false

Fixes #8904.

5 years agologin: change variable type of enable_wall_messages as it matches Manager.enable_wall...
Yu Watanabe [Mon, 7 May 2018 01:13:54 +0000 (10:13 +0900)] 
login: change variable type of enable_wall_messages as it matches Manager.enable_wall_messages

5 years agomeson: also try to search gnu-efi based on EFI_MACHINE_TYPE_NAME (#8900)
Yu Watanabe [Fri, 4 May 2018 15:49:57 +0000 (00:49 +0900)] 
meson: also try to search gnu-efi based on EFI_MACHINE_TYPE_NAME (#8900)

On Fedora rawhide, since gnu-efi-3.0.8-3.fc29, many file paths are
changed to use `EFI_MACHINE_TYPE_NAME` instead of `gnu_efi_arch`.

Fixes #8896.

5 years agoupdate TODO 8898/head
Lennart Poettering [Mon, 30 Apr 2018 19:20:31 +0000 (21:20 +0200)] 
update TODO

5 years agonamespace: extend list of masked files by ProtectKernelTunables=
Lennart Poettering [Thu, 3 May 2018 15:44:20 +0000 (17:44 +0200)] 
namespace: extend list of masked files by ProtectKernelTunables=

This adds a number of entries nspawn already applies to regular service
namespacing too. Most importantly let's mask /proc/kcore and
/proc/kallsyms too.

5 years agonspawn: move nspawn cgroup hierarchy one level down unconditionally
Lennart Poettering [Wed, 2 May 2018 12:24:54 +0000 (14:24 +0200)] 
nspawn: move nspawn cgroup hierarchy one level down unconditionally

We need to do this in all cases, including on cgroupsv1 in order to
ensure the host systemd and any systemd in the payload won't fight for
the cgroup attributes of the top-level cgroup of the payload.

This is because systemd for Delegate=yes units will only delegate the
right to create children as well as their attributes. However, nspawn
expects that the cgroup delegated covers both the right to create
children and the attributes of the cgroup itself. Hence, to clear this
up, let's unconditionally insert a intermediary cgroup, on cgroupsv1 as
well as cgroupsv2, unconditionally.

This is also nice as it reduces the differences in the various setups
and exposes very close behaviour everywhere.

5 years agonspawn: let's make use of SPECIAL_MACHINE_SLICE macro, after all we already set it
Lennart Poettering [Wed, 2 May 2018 12:24:39 +0000 (14:24 +0200)] 
nspawn: let's make use of SPECIAL_MACHINE_SLICE macro, after all we already set it

5 years agonspawn: don't make /proc/kmsg node too special
Lennart Poettering [Mon, 30 Apr 2018 19:22:41 +0000 (21:22 +0200)] 
nspawn: don't make /proc/kmsg node too special

Similar to the previous commit, let's just use our regular calls for
managing temporary nodes take care of this.

5 years agonspawn: mount boot ID from temporary file in /tmp
Lennart Poettering [Mon, 30 Apr 2018 19:20:50 +0000 (21:20 +0200)] 
nspawn: mount boot ID from temporary file in /tmp

Let's not make /run too special and let's make sure the source file is
not guessable: let's use our regular temporary file helper calls to
create the source node.

5 years agonspawn: lock down a few things in /proc by default
Lennart Poettering [Mon, 30 Apr 2018 10:22:41 +0000 (12:22 +0200)] 
nspawn: lock down a few things in /proc by default

This tightens security on /proc: a couple of files exposed there are now
made inaccessible. These files might potentially leak kernel internals
or expose non-virtualized concepts, hence lock them down by default.
Moreover, a couple of dirs in /proc that expose stuff also exposed in
/sys are now marked read-only, similar to how we handle /sys.

The list is taken from what docker/runc based container managers
generally apply, but slightly extended.

5 years agoMerge pull request #8868 from yuwata/resolve-show-current-server
Lennart Poettering [Thu, 3 May 2018 15:24:34 +0000 (17:24 +0200)] 
Merge pull request #8868 from yuwata/resolve-show-current-server

resolvectl: show current DNS server

5 years agoMerge pull request #8644 from yuwata/rfe-1589
Lennart Poettering [Thu, 3 May 2018 15:23:40 +0000 (17:23 +0200)] 
Merge pull request #8644 from yuwata/rfe-1589

timesync: expose NTP response on DBus

5 years agoethtool: get_glinksettings Fix copy (#8889)
Susant Sahani [Thu, 3 May 2018 15:20:56 +0000 (20:50 +0530)] 
ethtool: get_glinksettings Fix copy (#8889)

It should be other way around.

5 years agonspawn: use free_and_replace() at more places
Lennart Poettering [Fri, 27 Apr 2018 20:03:14 +0000 (22:03 +0200)] 
nspawn: use free_and_replace() at more places

5 years agonspawn: size_t more stuff
Lennart Poettering [Fri, 27 Apr 2018 20:01:54 +0000 (22:01 +0200)] 
nspawn: size_t more stuff

A follow-up for #8840

5 years agodoc: document nore carefully that tmpfs within the cgroupfs setup shouldn't confuse...
Lennart Poettering [Wed, 2 May 2018 12:23:45 +0000 (14:23 +0200)] 
doc: document nore carefully that tmpfs within the cgroupfs setup shouldn't confuse statfs() checks

5 years agoMerge pull request #8859 from poettering/virt-xen-lying
Yu Watanabe [Thu, 3 May 2018 14:23:32 +0000 (23:23 +0900)] 
Merge pull request #8859 from poettering/virt-xen-lying

Prefer DMI over CPUID when detecting Xen

5 years agolocale-util: add comment with link to unicode chars supported by eurlatgr (#8894)
Lennart Poettering [Thu, 3 May 2018 14:15:04 +0000 (16:15 +0200)] 
locale-util: add comment with link to unicode chars supported by eurlatgr (#8894)

See: #6443

5 years agomount-setup: add a comment that the character/block device nodes are "optional" ...
Lennart Poettering [Thu, 3 May 2018 14:10:35 +0000 (16:10 +0200)] 
mount-setup: add a comment that the character/block device nodes are "optional" (#8893)

if we lack privs to create device nodes that's fine, and creating
/run/systemd/inaccessible/chr or /run/systemd/inaccessible/blk won't
work then. Document this in longer comments.

Fixes: #4484
5 years agoMerge pull request #8887 from poettering/file-hier-efi
Yu Watanabe [Thu, 3 May 2018 14:07:07 +0000 (23:07 +0900)] 
Merge pull request #8887 from poettering/file-hier-efi

three improvements to the file-hierarchy(7) man page

5 years agoman: docbook doesn't like line breaks within table cells (#8885)
Lennart Poettering [Thu, 3 May 2018 14:02:43 +0000 (16:02 +0200)] 
man: docbook doesn't like line breaks within table cells (#8885)

It will pass them on as they are to the formatted man pages, which is
pretty uncool. Let's hence avoid line breaks with table cells.

5 years agotest: don't send image building output to /dev/null (#8886)
Lennart Poettering [Thu, 3 May 2018 13:47:42 +0000 (15:47 +0200)] 
test: don't send image building output to /dev/null (#8886)

Yes, the output is sometimes annyoing, but /dev/null is not the right
place...

I figure this redirection was left in from some debugging session, let's
fix it, and make the setup_basic_environment invocation like in all
other test scripts.

5 years agoMerge pull request #8865 from yuwata/fix-signal
Evgeny Vereshchagin [Thu, 3 May 2018 13:35:38 +0000 (16:35 +0300)] 
Merge pull request #8865 from yuwata/fix-signal

util: fix integer overflow

5 years agoupdate TODO
Lennart Poettering [Thu, 3 May 2018 13:13:42 +0000 (15:13 +0200)] 
update TODO

5 years agoMerge pull request #8892 from poettering/binfmt-misc-rst
Lennart Poettering [Thu, 3 May 2018 11:07:56 +0000 (13:07 +0200)] 
Merge pull request #8892 from poettering/binfmt-misc-rst

binfmt_misc url fixes

5 years agoman: add explanations of show-timesync and timesync-status commands 8644/head
Yu Watanabe [Mon, 30 Apr 2018 13:42:40 +0000 (22:42 +0900)] 
man: add explanations of show-timesync and timesync-status commands