]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
4 years agosd-bus: Add sd_bus_add_node_enumerator docs
Daan De Meyer [Sun, 19 Apr 2020 13:08:42 +0000 (15:08 +0200)] 
sd-bus: Add sd_bus_add_node_enumerator docs

4 years agosd-bus: sd_bus_add_object docs fixes
Daan De Meyer [Sun, 19 Apr 2020 13:04:29 +0000 (15:04 +0200)] 
sd-bus: sd_bus_add_object docs fixes

4 years agosd-bus: Add sd_bus_set_server, sd_bus_get_bus_id docs
Daan De Meyer [Sun, 19 Apr 2020 19:33:14 +0000 (21:33 +0200)] 
sd-bus: Add sd_bus_set_server, sd_bus_get_bus_id docs

4 years agosd-bus: Add sd_bus_add_object_manager docs
Daan De Meyer [Sun, 19 Apr 2020 15:08:06 +0000 (17:08 +0200)] 
sd-bus: Add sd_bus_add_object_manager docs

4 years agosd-bus: Add sd_bus_add_filter docs
Daan De Meyer [Sun, 19 Apr 2020 15:20:53 +0000 (17:20 +0200)] 
sd-bus: Add sd_bus_add_filter docs

4 years agoMerge pull request #15463 from keszybz/resolvectl-query-formatting
Lennart Poettering [Sat, 18 Apr 2020 13:56:16 +0000 (15:56 +0200)] 
Merge pull request #15463 from keszybz/resolvectl-query-formatting

Fix resolvectl query formatting

4 years agoMerge pull request #15444 from poettering/audit-enable
Lennart Poettering [Sat, 18 Apr 2020 13:55:10 +0000 (15:55 +0200)] 
Merge pull request #15444 from poettering/audit-enable

journald: make whether we enable auditing at start-up optional

4 years agoMerge pull request #15396 from keszybz/dbus-api-docs
Lennart Poettering [Fri, 17 Apr 2020 21:40:50 +0000 (23:40 +0200)] 
Merge pull request #15396 from keszybz/dbus-api-docs

D-bus API docs

4 years agosystemctl: hide first column with --plain instead of --no-legend
Jouke Witteveen [Fri, 17 Apr 2020 09:40:03 +0000 (11:40 +0200)] 
systemctl: hide first column with --plain instead of --no-legend

Hiding the first column, which may contain bullet circles, with --no-legend
is undocumented and potentially unexpected. On the other hand, not printing
bullet circles with --plain is documented so hiding the column with that
switch is sensible.

The combination "--full --no-legend --no-pager --plain" is appropriate for
automated processing of systemctl output.

4 years agoMerge pull request #15459 from keszybz/remove-seat_can_multi_session
Lennart Poettering [Fri, 17 Apr 2020 17:15:28 +0000 (19:15 +0200)] 
Merge pull request #15459 from keszybz/remove-seat_can_multi_session

Remove seat_can_multi_session

4 years agonetwork: add TUN/TAP vt-* network rule for VMs
Marc-André Lureau [Thu, 16 Apr 2020 11:05:32 +0000 (13:05 +0200)] 
network: add TUN/TAP vt-* network rule for VMs

VM typically use a TAP device, and work similarly to a veth device from the
host side.

4 years agoresolvectl: fix indentation of hexdump'ed packets 15463/head
Zbigniew Jędrzejewski-Szmek [Fri, 17 Apr 2020 16:29:23 +0000 (18:29 +0200)] 
resolvectl: fix indentation of hexdump'ed packets

ebf963c551e1077abaa5e0fa0f330e6d1c23565e changed the 'sep' argument to always
be either " " or "\n", which broke the indentation logic for the first line
in base64_append_width(). Since it now always is one character, and never NULL,
let's change the type to char and simplify the logic a bit.

$ COLUMNS=30 build/test-dns-packet test/test-resolve/org~20200417.pkts
============== test/test-resolve/org~20200417.pkts ==============
org IN DNSKEY 256 3 RSASHA1-NSEC3-SHA1
        AwEAAcLPVEcg0hFBheXQf
        QOqqLiRgckk69o2KTAsq3
        lNRY0c9mnEjzZDGsGmXNy
        2EQ6yelkIYYus7KLor2Fz
        x59hEqcM82zqkdHV6hXvZ
        yjxxSHG3nl8xQS6gF8mdI
        YouDTWWhTInfjSKoIeDok
        Hq3S67EjSngV7/wVCMTbI
        amS0NF4H
        -- Flags: ZONE_KEY
        -- Key tag: 37022
...

$ COLUMNS=120 build/test-dns-packet test/test-resolve/org~20200417.pkts
============== test/test-resolve/org~20200417.pkts ==============
org IN DNSKEY 256 3 RSASHA1-NSEC3-SHA1 AwEAAcLPVEcg0hFBheXQfQOqqLiRgckk69o2KTAsq3lNRY0c9mnEjzZDGsGmXNy2EQ6yelkIYYus7KLor
                                       2Fzx59hEqcM82zqkdHV6hXvZyjxxSHG3nl8xQS6gF8mdIYouDTWWhTInfjSKoIeDokHq3S67EjSngV7/w
                                       VCMTbIamS0NF4H
        -- Flags: ZONE_KEY
        -- Key tag: 37022
...

4 years agotest-resolve: add a bunch more packets for testing
Zbigniew Jędrzejewski-Szmek [Fri, 17 Apr 2020 15:52:01 +0000 (17:52 +0200)] 
test-resolve: add a bunch more packets for testing

Let's append the date to the domain in the file name, to be able
to have multiple versions for the same domain.

There is no particular rhyme or reason to the domains being used:
I just pulled a few domains that happened to be present in issues reported
on github, even though the issues were not about pretty printing.

4 years agoheaders: get rid of pointless /* deprecated */ comment 15459/head
Zbigniew Jędrzejewski-Szmek [Fri, 17 Apr 2020 12:01:07 +0000 (14:01 +0200)] 
headers: get rid of pointless /* deprecated */ comment

The _sd_deprecated_ annotation gives it all away, and the comment adds
no additional value.

4 years agosd-login: get rid of seat_can_multi_session()
Zbigniew Jędrzejewski-Szmek [Fri, 17 Apr 2020 11:57:40 +0000 (13:57 +0200)] 
sd-login: get rid of seat_can_multi_session()

Follow-up for fa2cf64a917d31605d40d34e98ce9e2e066064fa.
Backwards-compat is retained. A short note is added in docs, in case
people see sd_seat_can_multi_session() mentioned somewhere and wonder what
happened to it.

Also see https://github.com/systemd/systemd/pull/15337#issuecomment-610369404.

4 years agoerrno-util: let's beef up ERRNO_IS_NOT_SUPPORTED() with socket not supported errors 15444/head
Lennart Poettering [Thu, 16 Apr 2020 10:09:48 +0000 (12:09 +0200)] 
errno-util: let's beef up ERRNO_IS_NOT_SUPPORTED() with socket not supported errors

4 years agojournald: add configuration option for enabling/disabling audit during journald startup
Lennart Poettering [Thu, 16 Apr 2020 10:04:03 +0000 (12:04 +0200)] 
journald: add configuration option for enabling/disabling audit during journald startup

Let's make it optional whether auditing is enabled at journald start-up
or not.

Note that this only controls whether audit is enabled/disabled in the
kernel. Either way we'll still collect the audit data if it is
generated, i.e. if some other tool enables it, we'll collect it.

Fixes: #959
4 years agoman/systemd-service: clarify env variable expansion
Luca BRUNO [Thu, 16 Apr 2020 13:28:18 +0000 (13:28 +0000)] 
man/systemd-service: clarify env variable expansion

This clarifies some more aspects of `${FOO}` expansions in service
units, mostly trying to answer my own doubts about what happens when
the matching variable is not defined.

4 years agoAdd .clang-format file
Sebastian Jennen [Thu, 16 Apr 2020 10:48:42 +0000 (12:48 +0200)] 
Add .clang-format file

The result of automatic formatting is not perfect, but if someone uses an
editor that uses that, it's probably better than nothing.

Fixes #15415.

[zjs: I resurrected this patch from #11811 and edited the extended comment
heavily.]

4 years agoMerge pull request #15454 from keszybz/codespell-fixes
Lennart Poettering [Fri, 17 Apr 2020 13:53:01 +0000 (15:53 +0200)] 
Merge pull request #15454 from keszybz/codespell-fixes

Spelling fixes based on codespell suggestions

4 years agoMerge pull request #15347 from hakman/journald-upload-public-cloud
Zbigniew Jędrzejewski-Szmek [Fri, 17 Apr 2020 09:26:34 +0000 (11:26 +0200)] 
Merge pull request #15347 from hakman/journald-upload-public-cloud

Support journal-upload HTTPS without key and certificate

4 years agoMerge pull request #15452 from keszybz/fix-ipproto-assert
Zbigniew Jędrzejewski-Szmek [Fri, 17 Apr 2020 09:25:40 +0000 (11:25 +0200)] 
Merge pull request #15452 from keszybz/fix-ipproto-assert

Fix static assertion failure with recent glibc

4 years agonetwork: fix typo 15454/head
Zbigniew Jędrzejewski-Szmek [Thu, 16 Apr 2020 16:00:10 +0000 (18:00 +0200)] 
network: fix typo

I was worried about backwards compat, but this was only added
in af94bb24b59a2abc8d9f3ba6b5ba168372c9237c, and can be changed
with impunity.

4 years agoresolved: fix typo in an unused function and add comment
Zbigniew Jędrzejewski-Szmek [Thu, 16 Apr 2020 15:55:48 +0000 (17:55 +0200)] 
resolved: fix typo in an unused function and add comment

Follow-up for 2615691003b9d73a92590b8250a54ad135e3a33b.

4 years agoman: fixes from online review 15396/head
Daan De Meyer [Tue, 14 Apr 2020 11:43:11 +0000 (13:43 +0200)] 
man: fixes from online review

Also includes the issues pointed out by @boucman.

4 years agoman: update description of polkit rules for systemd1
Zbigniew Jędrzejewski-Szmek [Sun, 12 Apr 2020 17:14:20 +0000 (19:14 +0200)] 
man: update description of polkit rules for systemd1

Fixes #2562.

v2: the erroneous part about CAP_SYS_ADMIN is removed

4 years agoshared/reboot-util: indentation update
Zbigniew Jędrzejewski-Szmek [Sun, 12 Apr 2020 16:43:28 +0000 (18:43 +0200)] 
shared/reboot-util: indentation update

4 years agoman: locale1(5) — adjust page structure and fill in the missing parts
Zbigniew Jędrzejewski-Szmek [Sun, 12 Apr 2020 14:24:14 +0000 (16:24 +0200)] 
man: locale1(5) — adjust page structure and fill in the missing parts

4 years agoman: login1(5) — fix markup and fill in the missing descriptions
Zbigniew Jędrzejewski-Szmek [Sun, 12 Apr 2020 13:05:08 +0000 (15:05 +0200)] 
man: login1(5) — fix markup and fill in the missing descriptions

Partially fixes #1042.

4 years agoman: review of import1(5)
Daan De Meyer [Sun, 12 Apr 2020 17:39:51 +0000 (19:39 +0200)] 
man: review of import1(5)

4 years agoman: various tweaks to org.freedesktop.hostname1(5)
Zbigniew Jędrzejewski-Szmek [Sat, 11 Apr 2020 15:08:04 +0000 (17:08 +0200)] 
man: various tweaks to org.freedesktop.hostname1(5)

Co-Authored-By: Daan De Meyer <daan.j.demeyer@gmail.com>
4 years agoman: run dbus api docs through the updater
Zbigniew Jędrzejewski-Szmek [Fri, 10 Apr 2020 13:07:03 +0000 (15:07 +0200)] 
man: run dbus api docs through the updater

This replaces the api export tables with updated versions, and inserts
comments for all "undocumented" items. The slow work of documented them
is left for later ;)

lxml does some formatting changes that are not significant for lxml processing,
but generate spurious difference in the diff (namely: ulinks become one-line,
and double quotes are used instead of single quotes for element attribute
values). This should be a one-time thing: subsequent renegeration should be
idempotent with regards to this.

4 years agoupdate-dbus-docs: add support for settings printing just one selected interface
Zbigniew Jędrzejewski-Szmek [Fri, 10 Apr 2020 12:46:44 +0000 (14:46 +0200)] 
update-dbus-docs: add support for settings printing just one selected interface

So far the units there were being documented had only one custom interface.
But for the pid1 case, something more flexibile is needed. So let's add
an annotation in the page what we want to print, and filter in the generator.

4 years agoAdd updater for dbus introspection in man pages
Zbigniew Jędrzejewski-Szmek [Tue, 7 Apr 2020 14:58:58 +0000 (16:58 +0200)] 
Add updater for dbus introspection in man pages

Compares to gdbus output, the values of properties are replaced by ellipses.
For arrays and strings, the outer markers are kept. This is obviously also told
by the type string, but it seems a bit easier to read this way.

For any elements which are undocumented, a comment is inserted in sources.
"Undocumented" means that the expected element was not found. This might
require some adjustments if I missed some markup types.

Invocation is manual:
$ tools/update-dbus-docs.py tools/update-dbus-docs.py man/org.freedesktop.login1.xml
$ tools/update-dbus-docs.py tools/update-dbus-docs.py man/org.freedesktop.resolve1.xml
$ tools/update-dbus-docs.py tools/update-dbus-docs.py man/org.freedesktop.systemd1.xml
...

If some object is not found on the bus, the existing output is retained. So the
user needs to make sure that the appropriate objects have been instantiated
before calling this. We don't change the dbus interface very often, so I think
this manual mode is OK as a starting point. Making this fully automatic later
would be nice of course.

4 years agomanager: add dbus parameter names
Zbigniew Jędrzejewski-Szmek [Fri, 10 Apr 2020 10:50:21 +0000 (12:50 +0200)] 
manager: add dbus parameter names

4 years agoman: import org.freedesktop.systemd1(3) from the wiki
Zbigniew Jędrzejewski-Szmek [Fri, 10 Apr 2020 09:34:32 +0000 (11:34 +0200)] 
man: import org.freedesktop.systemd1(3) from the wiki

As usual, the formatting was fixed and various obvious updates
were done, but nothing major.

I removed documentation of snapshots and related methods though.

4 years agoresolved: add dbus parameter names
Zbigniew Jędrzejewski-Szmek [Thu, 9 Apr 2020 20:49:47 +0000 (22:49 +0200)] 
resolved: add dbus parameter names

4 years agoman: import org.freedesktop.resolve1(3) from the wiki
Zbigniew Jędrzejewski-Szmek [Thu, 9 Apr 2020 19:57:16 +0000 (21:57 +0200)] 
man: import org.freedesktop.resolve1(3) from the wiki

4 years agoresolved: tone down comment in /run/systemd/{stub-,}resolve.conf
Lennart Poettering [Thu, 16 Apr 2020 13:06:58 +0000 (15:06 +0200)] 
resolved: tone down comment in /run/systemd/{stub-,}resolve.conf

There are legitimate reasons to access the file directly, as currently
discussed on fedora-devel. Hence tone things down from "must" to "should
typically not".

Also, let's use fputs() instead of fputs_unlocked() here,
fopen_temporary_label() turns off stdio locking anyway for the whole
FILE*, hence no need to do this manually each time.

4 years agoMerge pull request #15448 from keszybz/logind-avoid-polkit-query
Lennart Poettering [Thu, 16 Apr 2020 17:42:42 +0000 (19:42 +0200)] 
Merge pull request #15448 from keszybz/logind-avoid-polkit-query

logind: avoid polkit query for SetWallMessage()

4 years agotree-wide: spellcheck using codespell
Zbigniew Jędrzejewski-Szmek [Thu, 16 Apr 2020 15:50:21 +0000 (17:50 +0200)] 
tree-wide: spellcheck using codespell

Fixes #15436.

4 years agonetwork: use "FooOverUDP" as one word 15452/head
Zbigniew Jędrzejewski-Szmek [Thu, 16 Apr 2020 15:23:41 +0000 (17:23 +0200)] 
network: use "FooOverUDP" as one word

The whole thing is one name, and I think it's confusing to break it
up into separate words.

4 years agonetwork: fix static assertion on IPPROTO_MAX range
Zbigniew Jędrzejewski-Szmek [Thu, 16 Apr 2020 14:49:30 +0000 (16:49 +0200)] 
network: fix static assertion on IPPROTO_MAX range

Builds with recent glibc would fail with:
../src/network/netdev/fou-tunnel.c: In function ‘config_parse_ip_protocol’:
../src/basic/macro.h:380:9: error: static assertion failed: "IPPROTO_MAX-1 <= UINT8_MAX"
  380 |         static_assert(expr, #expr)
      |         ^~~~~~~~~~~~~
../src/network/netdev/fou-tunnel.c:161:9: note: in expansion of macro ‘assert_cc’
  161 |         assert_cc(IPPROTO_MAX-1 <= UINT8_MAX);
      |         ^~~~~~~~~

This is because f9ac84f92f151e07586c55e14ed628d493a5929d (present in
glibc-2.31.9000-9.fc33.x86_64) added IPPROTO_MPTCP=262, following
v5.5-rc5-1002-gfaf391c382 in the kernel.

4 years agounits: use correct path to refer to plymouth
Lennart Poettering [Tue, 7 Apr 2020 12:00:28 +0000 (14:00 +0200)] 
units: use correct path to refer to plymouth

This doesn't really matter, since in non-/usr-merged systems plymouth
needs to be in /bin and on merged ones it doesn't matter, but it is
still prettier to insert the right path, and avoid /bin on merged
systems, since it's just a compat symlink.

Replaces: #15351

4 years agowatchdog: reduce watchdog pings in timeout interval
Alin Popa [Thu, 2 Apr 2020 07:10:55 +0000 (09:10 +0200)] 
watchdog: reduce watchdog pings in timeout interval

The watchdog ping is performed for every iteration of manager event
loop. This results in a lot of ioctls on watchdog device driver
especially during boot or if services are aggressively using sd_notify.
Depending on the watchdog device driver this may have performance
impact on embedded systems.
The patch skips sending the watchdog to device driver if the ping is
requested before half of the watchdog timeout.

4 years agoMerge pull request #15437 from keszybz/man-nss-resolve
Lennart Poettering [Thu, 16 Apr 2020 14:11:24 +0000 (16:11 +0200)] 
Merge pull request #15437 from keszybz/man-nss-resolve

Move "files" and "dns" later in the recommended hosts: lines

4 years agoMerge pull request #15441 from sartura/src/analyze
Lennart Poettering [Thu, 16 Apr 2020 12:11:44 +0000 (14:11 +0200)] 
Merge pull request #15441 from sartura/src/analyze

systemd-analyze: Add new meson configure option for controlling systemd-analyze support

4 years agologind: skip polkit query with --no-wall 15448/head
Zbigniew Jędrzejewski-Szmek [Thu, 16 Apr 2020 11:46:37 +0000 (13:46 +0200)] 
logind: skip polkit query with --no-wall

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

4 years agologinctl: adjust indentation
Zbigniew Jędrzejewski-Szmek [Tue, 14 Apr 2020 14:53:43 +0000 (16:53 +0200)] 
loginctl: adjust indentation

4 years agoSupport journal-upload HTTPS without key and certificate 15347/head
Ciprian Hacman [Mon, 6 Apr 2020 12:44:15 +0000 (15:44 +0300)] 
Support journal-upload HTTPS without key and certificate

4 years agoman: move "myhostname" right after "resolve" 15437/head
Zbigniew Jędrzejewski-Szmek [Wed, 15 Apr 2020 16:15:51 +0000 (18:15 +0200)] 
man: move "myhostname" right after "resolve"

The text in the man page provides the justification why I think this is
generally the right thing. An additional reason is that with the previous
commit (to move resolved earlier), since resolved internally implements the
same rules that nss-myhostname does, we'd have this strange inversion where
the priority of external configuration would be different in the "resolve"
path and in the fallback path.

4 years agoman: move "files" after "resolve" in the suggested configuration
Zbigniew Jędrzejewski-Szmek [Wed, 15 Apr 2020 16:05:39 +0000 (18:05 +0200)] 
man: move "files" after "resolve" in the suggested configuration

resolved caches files, so we should move nss-files after nss-resolve
to speed up local access (and yes, people like to have thousands of
lines in /etc/hosts).

See https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/LCX6YXLM62QEYJSOLJBWXXVXTZVL73GI/
for the background.

4 years agoInclude new configure options in features list 15441/head
Jakov Smolic [Wed, 15 Apr 2020 15:58:25 +0000 (17:58 +0200)] 
Include new configure options in features list

Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr>
Signed-off-by: Luka Perkov <luka.perkov@sartura.hr>
4 years agonetwork: Allow DHCPv6 client to be started even if no O or M bit in RA.
Susant Sahani [Wed, 8 Apr 2020 14:01:21 +0000 (16:01 +0200)] 
network: Allow DHCPv6 client to be started even if no O or M bit in RA.

4 years agovirt: Use cache for VIRTUALIZATION_PROOT
Chris Down [Wed, 15 Apr 2020 17:40:14 +0000 (18:40 +0100)] 
virt: Use cache for VIRTUALIZATION_PROOT

Of course, the very moment after I merged #15426, I noticed something
was off: everything works, but the cache isn't updated. 🙈

4 years agoAdd Logitech G502 HERO to mouse hwdb
Arthur Moraes do Lago [Wed, 15 Apr 2020 02:59:30 +0000 (23:59 -0300)] 
Add Logitech G502 HERO to mouse hwdb

4 years agosd-boot: Add → as alternative to boot selected entry
Jan Janssen [Wed, 15 Apr 2020 12:18:15 +0000 (14:18 +0200)] 
sd-boot: Add → as alternative to boot selected entry

This is sometimes slightly more convenient to use
and is also what GRUB supports.

4 years agovirt: Detect proot virtualisation by ptrace metadata
Chris Down [Tue, 14 Apr 2020 17:15:04 +0000 (18:15 +0100)] 
virt: Detect proot virtualisation by ptrace metadata

proot provides userspace-powered emulation of chroot and mount --bind,
lending it to be used on environments without unprivileged user
namespaces, or in otherwise restricted environments like Android.

In order to achieve this, proot makes use of the kernel's ptrace()
facility, which we can use in order to detect its presence. Since it
doesn't use any kind of namespacing, including PID namespacing, we don't
need to do any tricks when trying to get the tracer's metadata.

For our purposes, proot is listed as a "container", since we mostly use
this also as the bucket for non-container-but-container-like
technologies like WSL. As such, it seems like a good fit for this
section as well.

4 years agoMerge pull request #15431 from poettering/lock-and-key-emoji
Lennart Poettering [Wed, 15 Apr 2020 15:55:21 +0000 (17:55 +0200)] 
Merge pull request #15431 from poettering/lock-and-key-emoji

display lock/key emoji when prompting for passwords

4 years agoAdd new meson configure option for controlling systemd-analyze support
Jakov Smolic [Wed, 15 Apr 2020 15:53:36 +0000 (17:53 +0200)] 
Add new meson configure option for controlling systemd-analyze support

Enables building systemd without systemd-analyze, which in
return saves approx. 4 MB of space upon installing systemd.

Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr>
Signed-off-by: Luka Perkov <luka.perkov@sartura.hr>
4 years agoman: update os-release(5) to use 24bit ANSI color in example
Lennart Poettering [Mon, 13 Apr 2020 07:20:25 +0000 (09:20 +0200)] 
man: update os-release(5) to use 24bit ANSI color in example

Given that ANSI_COLOR= is mostly about branding it probably makes sense
to use RGB rather than paletted colors for them, so that the colors
match the project design as close as possible. Hence, provide a 25bit
RGB example for ANSI_COLOR, and update the overall example to something
newer.

Also see: https://bugzilla.redhat.com/show_bug.cgi?id=1823099

4 years agomeson,resolved: make default LLMNR= and MulticastDNS= values configurable
Zbigniew Jędrzejewski-Szmek [Tue, 14 Apr 2020 20:18:18 +0000 (22:18 +0200)] 
meson,resolved: make default LLMNR= and MulticastDNS= values configurable

For https://fedoraproject.org/wiki/Changes/systemd-resolved.

4 years agoask-password-api: reword some debug messages 15431/head
Lennart Poettering [Wed, 15 Apr 2020 10:01:03 +0000 (12:01 +0200)] 
ask-password-api: reword some debug messages

Otherwise, seeing this in the log output is confusing since we don't
know what kind of timeout or what kind if key we are adjusting here.

4 years agoask-password: prefix password questions with lock and key emoji
Lennart Poettering [Wed, 15 Apr 2020 09:59:30 +0000 (11:59 +0200)] 
ask-password: prefix password questions with lock and key emoji

It's pretty, and it highlights that the pw prompt is kinda special and
needs user input.

We suppress the emoji entirel if there's no emoji support (i.e. this
means we suppress the ASCII replacement), since it carries no additional
information, it is just decoration to highlight a line.

4 years agolocale-util: export emoji_enable() for other code to use
Lennart Poettering [Wed, 15 Apr 2020 09:59:06 +0000 (11:59 +0200)] 
locale-util: export emoji_enable() for other code to use

4 years agolocale-util: add support for lock+key emoji
Lennart Poettering [Wed, 15 Apr 2020 09:58:25 +0000 (11:58 +0200)] 
locale-util: add support for lock+key emoji

It looks pretty nice on gnome-terminal at least, let's make use of it
when asking for passwords.

4 years agoverify: ignore nonexistent executables if required
Giedrius Statkevičius [Tue, 7 Apr 2020 21:38:16 +0000 (00:38 +0300)] 
verify: ignore nonexistent executables if required

We provide a way via the '-' symbol to ignore errors when nonexistent
executable files are passed to Exec* parameters & so on. In such a case,
the flag `EXEC_COMMAND_IGNORE_FAILURE` is set and we go on happily with
our life if that happens. However, `systemd-analyze verify` complained
about missing executables even in such a case. In such a case it is not
an error for this to happen so check if the flag is set before checking
if the file is accessible and executable.

Add some small tests to check this condition.

Closes #15218.

4 years agoAdd meson build option to prevent building kernel-install
Jakov Smolic [Sat, 11 Apr 2020 12:32:52 +0000 (14:32 +0200)] 
Add meson build option to prevent building kernel-install

This commit introduces new meson build option "kernel-install" to prevent kernel-install from building if the user
sets the added option as "false".
Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr>
Signed-off-by: Luka Perkov <luka.perkov@sartura.hr>
4 years agoMerge pull request #15417 from poettering/fileno-can-fail
Zbigniew Jędrzejewski-Szmek [Tue, 14 Apr 2020 10:54:27 +0000 (12:54 +0200)] 
Merge pull request #15417 from poettering/fileno-can-fail

fileio: fileno() can realistically return -1

4 years agoMerge pull request #15414 from mrc0mmand/coredumpctl-file
Anita Zhang [Mon, 13 Apr 2020 20:54:24 +0000 (13:54 -0700)] 
Merge pull request #15414 from mrc0mmand/coredumpctl-file

coredumpctl: support --file=PATH

4 years agoFix pam_systemd_home's debug parameter to match man page description
Joel Shapiro [Sun, 12 Apr 2020 05:40:17 +0000 (00:40 -0500)] 
Fix pam_systemd_home's debug parameter to match man page description

4 years agosd-network: DHCPv6 - Add status codes
Susant Sahani [Mon, 13 Apr 2020 10:17:22 +0000 (12:17 +0200)] 
sd-network: DHCPv6 - Add status codes

https://www.iana.org/assignments/dhcpv6-parameters/dhcpv6-parameters.xhtml#dhcpv6-parameters-5

4 years agocore: make sure ProtectHostname= is handled gracefully in containers lacking seccomp
Lennart Poettering [Mon, 13 Apr 2020 09:38:34 +0000 (11:38 +0200)] 
core: make sure ProtectHostname= is handled gracefully in containers lacking seccomp

Fixes: #15408
4 years agocoredumpctl: support --file=PATH 15414/head
Frantisek Sumsal [Sun, 12 Apr 2020 18:39:09 +0000 (20:39 +0200)] 
coredumpctl: support --file=PATH

Let's match journalctl's functionality by throwing --file for
coredumpctl into the mix, so we can work on a single journal file
as well.

4 years agoupdate TODO
Lennart Poettering [Mon, 13 Apr 2020 12:31:46 +0000 (14:31 +0200)] 
update TODO

4 years agohwdb: optimize isatty()-per-line away 15417/head
Lennart Poettering [Mon, 13 Apr 2020 09:26:15 +0000 (11:26 +0200)] 
hwdb: optimize isatty()-per-line away

Fixes: #15407
4 years agofileio: extend comment a bit
Lennart Poettering [Mon, 13 Apr 2020 09:25:43 +0000 (11:25 +0200)] 
fileio: extend comment a bit

4 years agofileio: optionally allow telling read_line_full() whether we are processing a tty...
Lennart Poettering [Mon, 13 Apr 2020 09:20:59 +0000 (11:20 +0200)] 
fileio: optionally allow telling read_line_full() whether we are processing a tty or not

4 years agofileio: fileno() can realistically return -1
Lennart Poettering [Mon, 13 Apr 2020 08:09:44 +0000 (10:09 +0200)] 
fileio: fileno() can realistically return -1

An stdio FILE* stream usually refers to something with a file
descriptor, but that's just "usually". It doesn't have to, when taking
fmemopen() and similar into account. Most of our calls to fileno()
assumed the call couldn't fail. In most cases this was correct, but in
some cases where we didn't know whether we work on files or memory we'd
use the returned fd as if it was unconditionally valid while it wasn't,
and passed it to a multitude of kernel syscalls. Let's fix that, and do
something reasonably smart when encountering this case.

(Running test-fileio with this patch applied will remove tons of ioctl()
calls on -1).

4 years agoMerge pull request #15411 from ssahani/systemd-issue-15375
Lennart Poettering [Mon, 13 Apr 2020 08:58:38 +0000 (10:58 +0200)] 
Merge pull request #15411 from ssahani/systemd-issue-15375

sd-network: DHCPv6 - Add NoPrefixAvail to error code

4 years agoMerge pull request #15397 from ssahani/vxlan
Lennart Poettering [Mon, 13 Apr 2020 08:47:40 +0000 (10:47 +0200)] 
Merge pull request #15397 from ssahani/vxlan

network: VXlan group and remote fixes

4 years agoRemove unneded {}s
Zbigniew Jędrzejewski-Szmek [Sun, 12 Apr 2020 16:26:05 +0000 (18:26 +0200)] 
Remove unneded {}s

$ perl -i -0pe 's|\s+{\n([^\n]*;)\n\s+}\n|\n\1\n|gms' **/*.c

Inspired by ea7cbf5bdd68d7861ebf1570c439e8bbabd83f6c.

4 years agosd-network: DHCP6 - Use readable error status rather than numeric 15411/head
Susant Sahani [Mon, 13 Apr 2020 03:04:22 +0000 (05:04 +0200)] 
sd-network: DHCP6 - Use readable error status rather than numeric
value in the log message

4 years agolocaled: add dbus parameter names
Zbigniew Jędrzejewski-Szmek [Thu, 9 Apr 2020 15:53:03 +0000 (17:53 +0200)] 
localed: add dbus parameter names

4 years agoman: import org.freedesktop.locale1(3) from the wiki
Zbigniew Jędrzejewski-Szmek [Thu, 9 Apr 2020 15:43:52 +0000 (17:43 +0200)] 
man: import org.freedesktop.locale1(3) from the wiki

4 years agotimedated: add dbus parameter names
Zbigniew Jędrzejewski-Szmek [Thu, 9 Apr 2020 15:24:55 +0000 (17:24 +0200)] 
timedated: add dbus parameter names

4 years agoman: import org.freedesktop.timedate1(3) from the wiki
Zbigniew Jędrzejewski-Szmek [Thu, 9 Apr 2020 15:17:16 +0000 (17:17 +0200)] 
man: import org.freedesktop.timedate1(3) from the wiki

4 years agohostnamed: add dbus parameter names
Zbigniew Jędrzejewski-Szmek [Thu, 9 Apr 2020 13:39:58 +0000 (15:39 +0200)] 
hostnamed: add dbus parameter names

4 years agoman: import org.freedesktop.hostname1(3) from the wiki
Zbigniew Jędrzejewski-Szmek [Thu, 9 Apr 2020 13:42:27 +0000 (15:42 +0200)] 
man: import org.freedesktop.hostname1(3) from the wiki

4 years agoimportd: add dbus parameter names
Zbigniew Jędrzejewski-Szmek [Wed, 8 Apr 2020 19:51:59 +0000 (21:51 +0200)] 
importd: add dbus parameter names

4 years agoman: import org.freedesktop.import1(3) from the wiki
Zbigniew Jędrzejewski-Szmek [Wed, 8 Apr 2020 19:55:37 +0000 (21:55 +0200)] 
man: import org.freedesktop.import1(3) from the wiki

4 years agomachined: add dbus parameter names
Zbigniew Jędrzejewski-Szmek [Tue, 7 Apr 2020 13:42:08 +0000 (15:42 +0200)] 
machined: add dbus parameter names

4 years agoman: import org.freedesktop.machine1(3) from the wiki
Zbigniew Jędrzejewski-Szmek [Tue, 7 Apr 2020 19:22:13 +0000 (21:22 +0200)] 
man: import org.freedesktop.machine1(3) from the wiki

The wiki was primarily describing the D-Bus API, but it also had a large
introduction to the daemon functionality. I moved that latter part into
the page that describes the daemon, and the API description into the new
page.

This is mostly a straighforward import. Apart from some required formatting
changes, I removed obvious repetitions, and made tiny grammar and typo fixes
where I noticed them. The goal is not to have a perfect text immediately.

<interfacename>org.foo.bar</interface> is used for interface names,
<function>function()</function> for methods, and <function>signal</function>
(no parentheses) for signal names. In D-Bus, signals are similar to methods,
and docbook doesn't have a nice tag for them.

4 years agologind: add dbus parameter names
Zbigniew Jędrzejewski-Szmek [Wed, 8 Apr 2020 21:34:17 +0000 (23:34 +0200)] 
logind: add dbus parameter names

4 years agoman: import org.freedesktop.login1(3) from the wiki
Zbigniew Jędrzejewski-Szmek [Mon, 6 Apr 2020 18:42:12 +0000 (20:42 +0200)] 
man: import org.freedesktop.login1(3) from the wiki

4 years agoMerge pull request #15281 from keszybz/functional-test-rework
Zbigniew Jędrzejewski-Szmek [Sun, 12 Apr 2020 17:31:53 +0000 (19:31 +0200)] 
Merge pull request #15281 from keszybz/functional-test-rework

Post-merge tweaks to the functional tests

4 years agoMerge pull request #15406 from DaanDeMeyer/sd-bus-set-exec-docs
Zbigniew Jędrzejewski-Szmek [Sun, 12 Apr 2020 16:38:49 +0000 (18:38 +0200)] 
Merge pull request #15406 from DaanDeMeyer/sd-bus-set-exec-docs

Add sd_bus_set_exec docs

4 years agosd-bus: Add sd_bus_set_exec docs 15406/head
Daan De Meyer [Sat, 11 Apr 2020 19:57:36 +0000 (21:57 +0200)] 
sd-bus: Add sd_bus_set_exec docs

4 years agohome: switch to BusLocator-oriented helpers
Vito Caputo [Sat, 4 Apr 2020 13:36:51 +0000 (06:36 -0700)] 
home: switch to BusLocator-oriented helpers

Remove some unnecessary verbosity, largely mechanical change with
no functional difference.

4 years agohwdb: Add accel orientation quirk for Geoflex laptop
Ross Lagerwall [Sat, 11 Apr 2020 16:01:37 +0000 (17:01 +0100)] 
hwdb: Add accel orientation quirk for Geoflex laptop

Add a quirk to fix the accelerometer orientation on the Geoflex laptop
so that the display is upright rather than upside-down.