Lennart Poettering
52975f8672
socket-util: add common API for querying socket MTU
2020-12-07 13:46:35 +01:00
Lennart Poettering
4e25d4cf0f
socket-util: add getsockopt_int() helper
2020-12-07 13:46:35 +01:00
Lennart Poettering
00ed2fff1a
socket-util: add sockopt helper for controlling IP_RECVFRAGSIZE
2020-12-07 13:46:35 +01:00
Zbigniew Jędrzejewski-Szmek
e0f90ad988
Merge pull request #17874 from DaanDeMeyer/mkosi-build-verbosity
...
Reduce mkosi build script verbosity
2020-12-07 10:12:33 +01:00
Yu Watanabe
3c229a9afb
nss-resolve: varlink_call() set error_id only when r >= 0
...
Fixes #17870 .
2020-12-07 09:25:39 +01:00
Yu Watanabe
a7b6e29c1f
network: mtu is neither a boolean nor a pointer
2020-12-07 08:59:21 +01:00
Matt Turner
d6c0fdf492
missing: Define several syscall numbers for Alpha arch
2020-12-07 09:22:45 +09:00
Daan De Meyer
09422f9a28
meson: Respect MESON_INSTALL_QUIET
...
MESON_INSTALL_QUIET is set when --quiet is passed to meson install.
Make sure we check the variable in our custom install scripts and
don't output anything if it is set.
2020-12-06 22:11:11 +00:00
Daan De Meyer
5e577e1737
mkosi: Silence locale checking in mkosi.build
...
Avoid warning and error logs from locale charmap and export LC_CTYPE
by piping to dev/null and checking if locales are available before
using them.
2020-12-06 22:11:11 +00:00
Daan De Meyer
3dab2a4697
mkosi: Remove explicit default_hierarchy=unified option from mkosi.build
...
default_hierarchy is set to unified in meson_options already so
we can remove it from mkosi.build.
2020-12-06 22:11:11 +00:00
Daan De Meyer
fe2b7631ad
mkosi: Add --quiet and --no-rebuild options to meson install in mkosi.build
...
By default, meson install prints a line for every file it installs.
This is verbose and doesn't provide much value. Let's silence the
meson install step to remove this output from the mkosi build step.
The --no-rebuild option removes some additional duplicate output
by the meson install step.
Ubuntu Focal still has meson 0.53.0 so we add a version check and
only use the new feature if the meson version supports it.
2020-12-06 22:11:11 +00:00
Daan De Meyer
1394a3ec35
mkosi: Remove bash -x option from mkosi.build
...
-x is for debugging purposes. During regular usage, using -x mostly
prints useless output when building the mkosi image.
2020-12-06 22:11:11 +00:00
Daan De Meyer
06ac1b1f2c
mkosi: Use meson install instead of ninja install in build script
...
Allows using extra options not available when using ninja.
2020-12-06 22:11:11 +00:00
Luca Boccassi
bf2d8c03c1
Merge pull request #17760 from mrc0mmand/revert-semaphore-timedated
...
Revert "semaphore: temporarily disable the timedated test suite"
2020-12-05 11:12:35 +00:00
Daan De Meyer
77f16dbd6d
Don't assume /run/systemd exists when creating unit-root
...
When running tests in a mkosi container, /run/systemd might not
exist yet in the container which causes test-execute to fail.
Fixes #17842 .
2020-12-05 11:11:58 +00:00
Luca Boccassi
f1027d7c28
Merge pull request #17787 from DaanDeMeyer/mkosi-boot-tests
...
CI: Add mkosi boot tests
2020-12-04 23:38:29 +00:00
Daan De Meyer
448d3462b0
CI: Add mkosi boot tests
...
Using the new mkosi Github Action, we can add some simple boot tests
for the systemd mkosi configs. This makes sure these keep working
as expected.
2020-12-04 22:24:12 +00:00
Daan De Meyer
8f2c4c5e93
mkosi: Add findutils to Fedora config
...
find is needed by test_exec_dynamicuser.
2020-12-04 22:24:12 +00:00
Daan De Meyer
8d036c446a
mkosi: Add rpm to Fedora BuildPackages as it's needed by pkg-config
2020-12-04 20:06:03 +00:00
Frantisek Sumsal
6df7d18090
Revert "semaphore: temporarily disable the timedated test suite"
...
This reverts commit ed9192bb55e23c00bf9ba810a949e7ffe1bbe959.
2020-12-04 18:47:12 +01:00
Lennart Poettering
62ea0ed08d
dissect: don't declare unused variables on archs that have no GPT discovery
...
Fixes : #17839
2020-12-04 17:50:18 +01:00
Yu Watanabe
402506cea5
socket-util: make several socket_set_xxx() functions inline
2020-12-04 17:49:55 +01:00
Lennart Poettering
da2268f9d7
cryptsetup: give command line parameters proper names
...
It's highly confusing to reference the command line parameters via
argv[] indexes. Let's clean this up, and introduce properly named local
variables that make this easier to follow.
No actualy code changes, just some renaming of variables.
2020-12-04 17:49:34 +01:00
Lennart Poettering
fea909c1b9
Merge pull request #17854 from poettering/dns-domain-ret-fix
...
dns-domain: fix some coding style issues
2020-12-04 17:49:05 +01:00
Luca Boccassi
32c7f02bb4
Merge pull request #17829 from anitazha/testoomdfix
...
test: fix TEST-56-OOMD thresholds for linux 5.9 changes
2020-12-04 12:22:46 +00:00
Zbigniew Jędrzejewski-Szmek
a2c2421a05
Merge pull request #17834 from yuwata/network-ipv6-reject-type-route
...
network: handle IPv6 routes with reject type correctly
2020-12-04 12:19:35 +01:00
Vito Caputo
3a595c597a
mmap-cache: replace stats accessors with log func
...
In preparation for logging more mmap-cache statistics get rid of this
piecemeal stats accessor api and just have a debug log output function
for producing the stats.
Updates the one call site using these accessors, moving what that site
did into the new log function. So the output is unchanged for now,
just a trivial refactor.
2020-12-04 12:09:35 +01:00
Lennart Poettering
ffac398613
Merge pull request #17843 from poettering/dlfcn-dlsym-arg
...
add DLSYM_ARG() macro helper
2020-12-04 12:00:53 +01:00
Lennart Poettering
dcbe4a6860
dns-domain: initialize return param on success
2020-12-04 11:52:22 +01:00
Lennart Poettering
cb3714d100
dns-domain: follow coding style, initialize ret params on success
2020-12-04 11:07:06 +01:00
Lennart Poettering
5517e214c8
tree-wide: make use of new DLSYM_ARG() macro everywhere
2020-12-04 10:41:59 +01:00
Lennart Poettering
e2f03674bc
dlfcn-util: add DLSYM_ARG() helper
2020-12-04 10:41:59 +01:00
Yu Watanabe
452d86a532
test-network: add tests for IPv6 routes with reject type
2020-12-04 16:50:35 +09:00
Luca Boccassi
442bc2afee
meson: check that cxx variable is set before using it
...
In some cases it is not defined. Eg in a yocto build:
src/systemd/meson.build:61:15: ERROR: Unknown variable cxx.
2020-12-04 08:35:56 +01:00
Yu Watanabe
37b9c79e5d
test-network: sleep 1s after reloading configs
...
As interfaces will be reconfigured asynchronously after `networkctl reload`.
So, right after `networkctl reload` is finished, interfaces may be still
in 'configured' state with the old .network files.
2020-12-04 11:28:52 +09:00
Yu Watanabe
d9d6a10bce
network: set protocol to route assigned through DHCP6 or DHCP6-PD
2020-12-04 11:23:23 +09:00
Yu Watanabe
575f14eef0
network: make IPv6 routes with reject type managed by Manager
2020-12-04 11:23:23 +09:00
Yu Watanabe
6c252588df
network: introduce route_type_is_reject() helper
2020-12-04 11:23:23 +09:00
Yu Watanabe
62e3a988f2
Merge pull request #17821 from poettering/local-address-fix
...
fix ipv4/ipv6 NXDOMAIN/NODATA confusion for synthesized local addresses
2020-12-04 11:03:35 +09:00
Lennart Poettering
877884fc0d
resolved: synthesize NODATA instead of NXDOMAIN if gateway exists, but of other protocol
...
Fixes : #11192
2020-12-03 23:23:11 +01:00
Lennart Poettering
c3a8c6aa42
local-addresses: make returning accumulated list optional
2020-12-03 23:21:53 +01:00
Lennart Poettering
6c0bacc146
resolved: improve log message when we use TCP a bit
...
DNS-over-TLS being in use isn't precisely the same as "UDP not
supported". Let's make this clearer.
2020-12-03 22:46:59 +01:00
Lennart Poettering
ce9fb09e96
Merge pull request #17809 from yuwata/network-address-fixes-17803
...
network: two fixes for configuring address correctly
2020-12-03 21:04:58 +01:00
Lennart Poettering
61bd7d1ed5
random-util: open /dev/urandom implicitly in random_write_entropy() if needed
2020-12-03 20:14:17 +01:00
Lennart Poettering
e267d76f73
Merge pull request #17836 from poettering/tpm2-condition
...
Add ConditionSecurity=tpm2
2020-12-03 20:13:45 +01:00
Daan De Meyer
aef61dc888
mkosi: Replace iptables-dev with libiptc-dev in debian config
...
Latest debian unstable doesn't have iptables-dev anymore. Instead,
let's use libiptc-dev.
2020-12-03 17:46:49 +00:00
Lennart Poettering
6dd16814a5
Merge pull request #17079 from keszybz/late-exec-resolution
...
Resolve executable paths before execution, use fexecve()
2020-12-03 14:58:20 +01:00
Lennart Poettering
03d8ebb935
Merge pull request #17812 from poettering/systemctl-version-feature-update
...
build.h: add a bunch of missing features strings
2020-12-03 14:34:08 +01:00
Zbigniew Jędrzejewski-Szmek
91b79ba84e
shared/build: make the version string definition less terrible
...
The BLKID and ELFUTILS strings were present twice. Let's reaarange things so that
each times requires definition in exactly one place.
Also let's sort things a bit:
the "heavy hitters" like PAM/MAC first,
then crypto libs,
then other libs, alphabetically,
compressors,
and external compat integrations.
I think it's useful for users to group similar concepts together to some extent.
For example, when checking what compression is available, it helps a lot to have
them listed together.
FDISK is renamed to LIBFDISK to make it clear that this is about he library and
the executable.
2020-12-03 12:16:02 +01:00
Lennart Poettering
699c0f2d30
update TODO
2020-12-03 12:04:11 +01:00