]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
5 years agoreadme: Minor style and spacing fix 11727/head
Filipe Brandenburger [Fri, 15 Feb 2019 19:05:04 +0000 (11:05 -0800)] 
readme: Minor style and spacing fix

Fix section header for stable branches and backports. All the other
headings end in a colon and have no blank lines between them and the
body of the section, so fix this one accordingly.

5 years agoeditors: Prevent ctags from following symlinks
Filipe Brandenburger [Fri, 15 Feb 2019 19:01:20 +0000 (11:01 -0800)] 
editors: Prevent ctags from following symlinks

Some tests will create a subtree of /sys under build/test/sys and
depending on the local system that tree might end up having an infinite
chain of symlinks. For example:

  $ ls build/test/sys/devices/pnp0/00:00/subsystem/devices/00:00/subsystem/devices/00:00/subsystem/devices/00:00/subsystem/devices/00:00/subsystem/devices/00:00/subsystem/
  devices  drivers  drivers_autoprobe

Exuberant ctags will by default follow symlinks, so configure it not to
do so through a local .ctags file setting --links=no.

Tested that `ctags -R` doesn't get stuck with the dotfile present.

5 years agounits: add usb-gadget target
Andrzej Pietrasiewicz [Tue, 29 Jan 2019 10:13:44 +0000 (11:13 +0100)] 
units: add usb-gadget target

Linux can be run on a device meant to act as a USB peripheral. In order
for a machine to act as such a USB device it has to be equipped with
a UDC - USB Device Controller.

This patch adds a target reached when UDC becomes available. It can be used
for activating e.g. a service unit which composes a USB gadget with
configfs and activates it.

5 years agoFail RequisiteOf units with oneshots
Jonathon Kowalski [Sat, 19 Jan 2019 05:19:46 +0000 (05:19 +0000)] 
Fail RequisiteOf units with oneshots

Fixes: #11422
Oneshots going to inactive directly without ever entering UNIT_ACTIVE is
considered success. This however means that if something both Requires=
and Requisites= a unit of such nature, the verify-active job getting
merged into the start job makes it lose this property of failing the
depending jobs, as there, the start job has the result JOB_DONE on
success, so we never walk over RequisiteOf units.

This change makes sure that such units always go down. It is also only
meaningful with After=, but so is Requisite= itself. Also, we also catch
cases like a oneshot having RemainAfterExit= true making us start up
properly in such a setting, but then removing it, reloading the unit,
and restarting it. In such a case, we go down due to restart propagation
before them, and our start job waits on theirs, properly failing with
the JOB_DEPENDENCY result.

This covers cases where ConditionXYZ= creates a similar situation as
well.

5 years agonetlink: fix netlink type for routing-rule FRA_L3MDEV
Thomas Haller [Thu, 14 Feb 2019 16:14:25 +0000 (17:14 +0100)] 
netlink: fix netlink type for routing-rule FRA_L3MDEV

Fixes: bce67bbee359eec19e6778619b6651100a1c1477
5 years agoMerge pull request #11716 from ssahani/drop-autoconf-address
Lennart Poettering [Fri, 15 Feb 2019 11:17:46 +0000 (12:17 +0100)] 
Merge pull request #11716 from ssahani/drop-autoconf-address

networkd: ipv6ra allow to ignore addresses

5 years agoMerge pull request #11589 from yuwata/udevd-is-device-busy
Lennart Poettering [Fri, 15 Feb 2019 11:16:37 +0000 (12:16 +0100)] 
Merge pull request #11589 from yuwata/udevd-is-device-busy

udevd: refactoring is_device_busy()

5 years agov4l_id: use device_caps if available
Michael Olbrich [Sun, 3 Feb 2019 09:52:02 +0000 (10:52 +0100)] 
v4l_id: use device_caps if available

According to the specification[1] the 'capabilities' describe the physical
device as a whole and the 'device_caps' describe the current device node.
The existence of 'device_caps' is indicated by the V4L2_CAP_DEVICE_CAPS
capability flag.
Use the 'device_caps' if available to generate the correct
ID_V4L_CAPABILITIES for the current device node.

This is relevant for UVC devices with current kernels: Two /dev/videoX
devices exist for those. One for video and one for metadata. The
 V4L2_CAP_VIDEO_CAPTURE flag is present in the 'capabilities' for both
device nodes but only in the 'device_caps' of the video device node.

Without this, the ID_V4L_CAPABILITIES of the metadata device node
incorrectly contains 'capture'.

[1] https://www.linuxtv.org/downloads/v4l-dvb-apis-new/uapi/v4l/vidioc-querycap.html

5 years agoMerge pull request #9594 from filbranden/cpu_quota_period1
Lennart Poettering [Fri, 15 Feb 2019 11:11:42 +0000 (12:11 +0100)] 
Merge pull request #9594 from filbranden/cpu_quota_period1

core: add CPUQuotaPeriodSec=

5 years agoMerge pull request #11634 from yuwata/rfe-11622
Lennart Poettering [Fri, 15 Feb 2019 10:56:32 +0000 (11:56 +0100)] 
Merge pull request #11634 from yuwata/rfe-11622

busctl: add 'emit' command

5 years agoMerge pull request #11719 from yuwata/networkctl-wildcards
Lennart Poettering [Fri, 15 Feb 2019 10:44:24 +0000 (11:44 +0100)] 
Merge pull request #11719 from yuwata/networkctl-wildcards

networkctl: accept wildcards to specify links

5 years agodhcp: ignore padding of 'chaddr' in DHCP server response
Thomas Haller [Wed, 6 Feb 2019 17:13:20 +0000 (18:13 +0100)] 
dhcp: ignore padding of 'chaddr' in DHCP server response

The "chaddr" field is 16 bytes long, with "hlen" being the
length of the address.

https://tools.ietf.org/html/rfc2131#section-4.3.1 says:

    The server MUST return to the client:

    ...

    o Any parameters specific to this client (as identified by
      the contents of 'chaddr' or 'client identifier' in the DHCPDISCOVER
      or DHCPREQUEST message), e.g., as configured by the network
      administrator,

It's not clear, whether only the first 'hlen' bytes of 'chaddr'
must correspond or all 16 bytes.

Note that https://tools.ietf.org/html/rfc4390#section-2.1 says for IPoIB

    "chaddr" (client hardware address) field MUST be zeroed.

with having "hlen" zero. This indicates that at least in this case, the
bytes after "hlen" would matter.

As the DHCP client always sets the trailing bytes to zero, we would expect
that the server also replies as such and we could just compare all 16 bytes.
However, let's be liberal and accept any padding here.

This in practice only changes behavior for infiniband, where we
previously would enforce that the first ETH_ALEN bytes are zero.
That seems arbitrary for IPoIB. We should either check all bytes or
none of them. Let's do the latter and don't enforce RFC 4390 in this
regard.

5 years agoMerge pull request #11636 from yuwata/network-in-addr-is-null
Lennart Poettering [Fri, 15 Feb 2019 10:40:34 +0000 (11:40 +0100)] 
Merge pull request #11636 from yuwata/network-in-addr-is-null

network, sd-netlink: unify several functions and fixes coding style

5 years agoMerge pull request #11594 from yuwata/udev-rule-cleanups
Lennart Poettering [Fri, 15 Feb 2019 10:37:11 +0000 (11:37 +0100)] 
Merge pull request #11594 from yuwata/udev-rule-cleanups

udev-rule, ethtool: several coding style cleanups

5 years agoMerge pull request #9262 from ssahani/ignore-carrier-9111
Lennart Poettering [Fri, 15 Feb 2019 10:35:43 +0000 (11:35 +0100)] 
Merge pull request #9262 from ssahani/ignore-carrier-9111

networkd: allow to retain configs even if carrier is lost

5 years agoresolved: use Cloudflare public DNS server as a default fallback alongside Google one
Ignat Korchagin [Wed, 6 Feb 2019 19:51:28 +0000 (19:51 +0000)] 
resolved: use Cloudflare public DNS server as a default fallback alongside Google one

Cloudflare public DNS service is currently the fastest one according to
https://www.dnsperf.com/#!dns-resolvers. Why not improve the experience for
systemd users using this as a default fallback nameserver?

5 years agoMerge pull request #11617 from topimiettinen/backlight-handle-zero-file-load
Lennart Poettering [Fri, 15 Feb 2019 10:32:58 +0000 (11:32 +0100)] 
Merge pull request #11617 from topimiettinen/backlight-handle-zero-file-load

backlight: handle loading truncated file

5 years agocore: export $PIDFILE env var for services, derived from PIDFile=
Lennart Poettering [Wed, 30 Jan 2019 16:39:09 +0000 (17:39 +0100)] 
core: export $PIDFILE env var for services, derived from PIDFile=

5 years agoMerge pull request #11373 from tomty89/auto
Lennart Poettering [Fri, 15 Feb 2019 10:31:55 +0000 (11:31 +0100)] 
Merge pull request #11373 from tomty89/auto

mount/generators: do not make unit wanted by its device unit

5 years agoMerge pull request #11382 from keszybz/udev-predictable-macs
Lennart Poettering [Fri, 15 Feb 2019 10:31:25 +0000 (11:31 +0100)] 
Merge pull request #11382 from keszybz/udev-predictable-macs

Allow MACAddressPolicy=persistent for all virtual devices

5 years agoMerge pull request #11506 from bl33pbl0p/reload-fix
Lennart Poettering [Fri, 15 Feb 2019 10:31:00 +0000 (11:31 +0100)] 
Merge pull request #11506 from bl33pbl0p/reload-fix

Return -EAGAIN instead of -EALREADY from unit_reload

5 years agorules: watch metadata changes on nbd devices
Tony Asleson [Fri, 8 Feb 2019 21:47:10 +0000 (15:47 -0600)] 
rules: watch metadata changes on nbd devices

Include nbd* in match for watch option assignment.

Signed-off-by: Tony Asleson <tasleson@redhat.com>
5 years agotest-network: add test for BindCarrier=
Yu Watanabe [Thu, 7 Feb 2019 05:22:23 +0000 (06:22 +0100)] 
test-network: add test for BindCarrier=

5 years agologin: add a missing error check for session_set_leader()
Yu Watanabe [Thu, 14 Feb 2019 01:59:13 +0000 (10:59 +0900)] 
login: add a missing error check for session_set_leader()

session_set_leader() may fail. If it fails, then manager_start_scope()
will trigger assertion.

This may be related to RHBZ#1663704.

5 years agoMerge pull request #11718 from yuwata/news-v241
Lennart Poettering [Fri, 15 Feb 2019 10:27:17 +0000 (11:27 +0100)] 
Merge pull request #11718 from yuwata/news-v241

Update NEWS

5 years agotest-network: add tests for wildcards in networkctl 11719/head
Yu Watanabe [Fri, 15 Feb 2019 04:54:28 +0000 (13:54 +0900)] 
test-network: add tests for wildcards in networkctl

5 years agoman: network: replace LINK -> PATTERN
Yu Watanabe [Fri, 15 Feb 2019 04:46:34 +0000 (13:46 +0900)] 
man: network: replace LINK -> PATTERN

5 years agonetworkctl: accept wildcards to specify links
Yu Watanabe [Fri, 15 Feb 2019 04:32:51 +0000 (13:32 +0900)] 
networkctl: accept wildcards to specify links

Closes #10840.

5 years agonetwork: use _cleanup_ attribute at one more place
Yu Watanabe [Tue, 12 Feb 2019 04:02:38 +0000 (13:02 +0900)] 
network: use _cleanup_ attribute at one more place

5 years agonetwork: configure ipv4ll route after address is set
Yu Watanabe [Tue, 12 Feb 2019 04:00:25 +0000 (13:00 +0900)] 
network: configure ipv4ll route after address is set

5 years agonetwork: honor VRF table or explicitly specified route table
Yu Watanabe [Tue, 12 Feb 2019 03:49:45 +0000 (12:49 +0900)] 
network: honor VRF table or explicitly specified route table

5 years agonetwork: introduce Network::ipv6_accept_ra_route_table_set flag
Yu Watanabe [Tue, 12 Feb 2019 03:42:10 +0000 (12:42 +0900)] 
network: introduce Network::ipv6_accept_ra_route_table_set flag

It will be used in later commit.

5 years agonetwork: add more debugging logs when adding, removing, updateing and configuring...
Yu Watanabe [Mon, 11 Feb 2019 12:28:13 +0000 (21:28 +0900)] 
network: add more debugging logs when adding, removing, updateing and configuring route

5 years agonetwork: minor coding style update
Yu Watanabe [Mon, 11 Feb 2019 12:25:13 +0000 (21:25 +0900)] 
network: minor coding style update

5 years agoNEWS: add entry about 'udevadm trigger --wait-daemon' 11718/head
Yu Watanabe [Fri, 15 Feb 2019 01:18:14 +0000 (10:18 +0900)] 
NEWS: add entry about 'udevadm trigger --wait-daemon'

5 years agoNEWS: fix release date
Yu Watanabe [Fri, 15 Feb 2019 01:15:55 +0000 (10:15 +0900)] 
NEWS: fix release date

5 years agocore: downgrade CPUQuotaPeriodSec= clamping logs to debug 9594/head
Filipe Brandenburger [Thu, 24 Jan 2019 04:19:44 +0000 (20:19 -0800)] 
core: downgrade CPUQuotaPeriodSec= clamping logs to debug

After the first warning log, further messages are downgraded to LOG_DEBUG.

5 years agocore: add CPUQuotaPeriodSec=
Filipe Brandenburger [Fri, 2 Nov 2018 16:21:57 +0000 (09:21 -0700)] 
core: add CPUQuotaPeriodSec=

This new setting allows configuration of CFS period on the CPU cgroup, instead
of using a hardcoded default of 100ms.

Tested:
- Legacy cgroup + Unified cgroup
- systemctl set-property
- systemctl show
- Confirmed that the cgroup settings (such as cpu.cfs_period_ns) were set
  appropriately, including updating the CPU quota (cpu.cfs_quota_ns) when
  CPUQuotaPeriodSec= is updated.
- Checked that clamping works properly when either period or (quota * period)
  are below the resolution of 1ms, or if period is above the max of 1s.

5 years agotime-util: Introduce parse_sec_def_infinity
Filipe Brandenburger [Thu, 24 Jan 2019 03:48:54 +0000 (19:48 -0800)] 
time-util: Introduce parse_sec_def_infinity

This works like parse_sec() but defaults to USEC_INFINITY when passed an
empty string or only whitespace.

Also introduce config_parse_sec_def_infinity, which can be used to parse
config options using this function.

This is useful for time options that use "infinity" for default and that
can be reset by unsetting them.

Introduce a test case to ensure it works as expected.

5 years agomount: remove unused mount_is_auto and mount_is_automount 11373/head
Tom Yan [Wed, 9 Jan 2019 16:19:43 +0000 (00:19 +0800)] 
mount: remove unused mount_is_auto and mount_is_automount

5 years agomount/generators: do not make unit wanted by its device unit
Tom Yan [Wed, 9 Jan 2019 15:35:24 +0000 (23:35 +0800)] 
mount/generators: do not make unit wanted by its device unit

As device units will be reloaded by systemd whenever the corresponding device generates a "changed" event, if the mount unit / cryptsetup service is wanted by its device unit, the former can be restarted by systemd unexpectedly after the user stopped them explicitly. It is not sensible at all and can be considered dangerous. Neither is the behaviour conventional (as `auto` in fstab should only affect behaviour on boot and `mount -a`) or ever documented at all (not even in systemd, see systemd.mount(5) and crypttab(5)).

5 years agoAdd to fuzzer 11716/head
Susant Sahani [Thu, 14 Feb 2019 15:40:59 +0000 (21:10 +0530)] 
Add to fuzzer

5 years agonetworkd: ipv6ra allow to ignore addresses
Susant Sahani [Thu, 14 Feb 2019 15:35:17 +0000 (21:05 +0530)] 
networkd: ipv6ra allow to ignore addresses

Allows to ignore prefixes.

```
UseAutonomousPrefix=
UseOnLinkPrefix=
```

closes #9582

5 years agoRevert "README: remove Coverity Scan badge"
Evgeny Vereshchagin [Thu, 14 Feb 2019 11:04:01 +0000 (14:04 +0300)] 
Revert "README: remove Coverity Scan badge"

This reverts commit 49a881e5143cf87e6a02718e92008e12c3334ac0.

5 years agoMerge pull request #11714 from poettering/final-news-241 11372/head v241
Zbigniew Jędrzejewski-Szmek [Thu, 14 Feb 2019 10:11:58 +0000 (11:11 +0100)] 
Merge pull request #11714 from poettering/final-news-241

final preps for v241

5 years agoupdate hwdb 11714/head
Lennart Poettering [Thu, 14 Feb 2019 10:03:06 +0000 (11:03 +0100)] 
update hwdb

5 years agoNEWS: update for final v241
Lennart Poettering [Thu, 14 Feb 2019 09:58:06 +0000 (10:58 +0100)] 
NEWS: update for final v241

5 years agosd-bus: if we receive an invalid dbus message, ignore and proceeed
Lennart Poettering [Wed, 13 Feb 2019 15:51:22 +0000 (16:51 +0100)] 
sd-bus: if we receive an invalid dbus message, ignore and proceeed

dbus-daemon might have a slightly different idea of what a valid msg is
than us (for example regarding valid msg and field sizes). Let's hence
try to proceed if we can and thus drop messages rather than fail the
connection if we fail to validate a message.

Hopefully the differences in what is considered valid are not visible
for real-life usecases, but are specific to exploit attempts only.

5 years agoMerge pull request #11704 from yuwata/fix-oss-fuzz-12980
Zbigniew Jędrzejewski-Szmek [Wed, 13 Feb 2019 22:27:12 +0000 (23:27 +0100)] 
Merge pull request #11704 from yuwata/fix-oss-fuzz-12980

udev-rule: make rule_add_key() return negative errno when too much tokens

5 years agosd-hwdb: fix matching for characters with an ord > 127
Peter Hutterer [Fri, 8 Feb 2019 00:30:48 +0000 (10:30 +1000)] 
sd-hwdb: fix matching for characters with an ord > 127

Devices like the "Microsoft Microsoft® 2.4GHz Transceiver v9.0 Mouse" contain
characters higher than 127. That ® is correctly stored in the hwdb and passed
into the search field during query, but the comparison fails.

Our search string is a const char *, trie_string() returns a const char * but
the current character is cast to uint8_t. This causes anything over 127 to
fail the match. Fix this, we're dealing with characters everywhere here after
all.

5 years agoMerge pull request #11487 from poettering/unprotect-errno
Zbigniew Jędrzejewski-Szmek [Wed, 13 Feb 2019 22:18:13 +0000 (23:18 +0100)] 
Merge pull request #11487 from poettering/unprotect-errno

Make sure NSS modules can change errno if they want

5 years agoudev: check whether systemd is running, and do not use cg_kill() if not
Yu Watanabe [Wed, 6 Feb 2019 18:34:13 +0000 (19:34 +0100)] 
udev: check whether systemd is running, and do not use cg_kill() if not

Fixes #11645.

5 years agoMerge pull request #11423 from ssahani/issue-9890
Zbigniew Jędrzejewski-Szmek [Wed, 13 Feb 2019 15:37:11 +0000 (16:37 +0100)] 
Merge pull request #11423 from ssahani/issue-9890

networkd: honour LinkLocalAddressing

5 years agoMerge pull request #11707 from keszybz/man-directives-spring-cleaning
Lennart Poettering [Wed, 13 Feb 2019 15:35:00 +0000 (16:35 +0100)] 
Merge pull request #11707 from keszybz/man-directives-spring-cleaning

systemd.directives(7) spring cleaning

5 years agoman: move sd-login(5) udev tags to the udev section 11707/head
Zbigniew Jędrzejewski-Szmek [Wed, 13 Feb 2019 10:11:30 +0000 (11:11 +0100)] 
man: move sd-login(5) udev tags to the udev section

They are not udev systax exactly, but it seems better to keep them
there.

5 years agoman: add a new section for EFI variables
Zbigniew Jędrzejewski-Szmek [Wed, 13 Feb 2019 10:09:02 +0000 (11:09 +0100)] 
man: add a new section for EFI variables

We should probably refer to them from other man pages
for programs which use them, since right now all refs are
in systemd-boot(7). But creating the section is a good step
anyway.

5 years agoman: add a new directives section for .nspawn
Zbigniew Jędrzejewski-Szmek [Wed, 13 Feb 2019 09:57:49 +0000 (10:57 +0100)] 
man: add a new directives section for .nspawn

They is quite a bit of those directives and they were in "MISCELLANEOUS" because
they don't quite fit anywhere. When the OCI-compat stuff is merged, there'll
be even more, so let's make a separate section for them.

5 years agoman: move all config file options to one section
Zbigniew Jędrzejewski-Szmek [Wed, 13 Feb 2019 09:49:47 +0000 (10:49 +0100)] 
man: move all config file options to one section

We had "SYSTEM MANAGER DIRECTIVES" which was a misnomer already, because
it also listed user manager stuff. Let's make this a more general section
and move the items for other services there too (from "MISCELANENOUS").

5 years agoman: move os-release, machine-info, vconsole.conf vars to envvar section
Zbigniew Jędrzejewski-Szmek [Wed, 13 Feb 2019 09:36:26 +0000 (10:36 +0100)] 
man: move os-release, machine-info, vconsole.conf vars to envvar section

Strictly speaking, those are not environment variables, but they are compatible
and people think about them like this. Moving them makes them easier to find.

5 years agoman: use <constant> for SD_BUS_ERROR_* and SD_BUS_NAME_* constants
Zbigniew Jędrzejewski-Szmek [Wed, 13 Feb 2019 09:27:36 +0000 (10:27 +0100)] 
man: use <constant> for SD_BUS_ERROR_* and SD_BUS_NAME_* constants

This moves them to the right section in systemd.directives.

5 years agoman: use <varname> for pam configuration options
Zbigniew Jędrzejewski-Szmek [Wed, 13 Feb 2019 09:24:40 +0000 (10:24 +0100)] 
man: use <varname> for pam configuration options

It seems to fit the role better, and also the formatting in systemd.directives
is fixes.

5 years agoman: fix markup and grammar for FOU{Source,Destination}Port=
Zbigniew Jędrzejewski-Szmek [Wed, 13 Feb 2019 09:22:18 +0000 (10:22 +0100)] 
man: fix markup and grammar for FOU{Source,Destination}Port=

5 years agoman: move entries to the right section in systemd.directives
Zbigniew Jędrzejewski-Szmek [Wed, 13 Feb 2019 09:17:49 +0000 (10:17 +0100)] 
man: move entries to the right section in systemd.directives

They were in "miscellaneuos" because of the missing class= assignment.
Probably introduced when the split into sections was done.

5 years agotest: add testcase for oss-fuzz#12980 11704/head
Yu Watanabe [Tue, 12 Feb 2019 19:16:30 +0000 (04:16 +0900)] 
test: add testcase for oss-fuzz#12980

5 years agoudev-rule: make rule_add_key() return negative errno when too much tokens
Yu Watanabe [Tue, 12 Feb 2019 19:13:49 +0000 (04:13 +0900)] 
udev-rule: make rule_add_key() return negative errno when too much tokens

As OPTIONS= rule introduce multiple tokens.

Fixes oss-fuzz#12980.

5 years agotest-network: add tests for LinkLocalAddressing= 11423/head
Yu Watanabe [Tue, 12 Feb 2019 01:28:49 +0000 (10:28 +0900)] 
test-network: add tests for LinkLocalAddressing=

5 years agonetworkd: honour LinkLocalAddressing
Susant Sahani [Mon, 11 Feb 2019 12:28:23 +0000 (17:58 +0530)] 
networkd: honour LinkLocalAddressing

Closes #9890

5 years agotest: replace echo with socat
Frantisek Sumsal [Tue, 29 Jan 2019 18:33:15 +0000 (19:33 +0100)] 
test: replace echo with socat

The original version of the test used netcat along with a standard
AF_UNIX socket, which caused issues across different netcat
implementations. The AF_UNIX socket was then replaced by a FIFO with a
simple echo, which, however, suffers from the same issue (some echo
implementations don't check if the write() was successful).

Let's revert back to the AF_UNIX socket, but replace netcat with socat,
which, hopefully, resolves the main issue.

Relevant commit: 9b45c2bf02a43e3e1b42de1ab0c3fe29c64dc5f5

5 years agocore: when we uninstall a job, add unit to dbus queue
Alberts Muktupāvels [Tue, 12 Feb 2019 01:00:21 +0000 (03:00 +0200)] 
core: when we uninstall a job, add unit to dbus queue

Commit e6d05912cb1785d8c75eb40545beb8a7c6753cb9 added unit to dbus
queue on job install. Do same on job uninstall to make sure we get
PropertiesChanged signal.

5 years agoUpdate mount.c
Stephan E [Tue, 12 Feb 2019 13:27:04 +0000 (14:27 +0100)] 
Update mount.c

typo in output

5 years agohwdb: Fix rotation for Nuvision Solo 10 Draw (#11686)
Lance [Tue, 12 Feb 2019 14:21:45 +0000 (06:21 -0800)] 
hwdb: Fix rotation for Nuvision Solo 10 Draw (#11686)

Model number TM101W610L

This fixes issue #11683

Also add proper label for other Nuvision tablet.

5 years agoudev-rule: check function retun value is negative or not, instead of non-zero 11594/head
Yu Watanabe [Wed, 30 Jan 2019 06:55:28 +0000 (07:55 +0100)] 
udev-rule: check function retun value is negative or not, instead of non-zero

One exception is udev_event_spawn(), which returns negative or positive
value on failure.

5 years agoudev-rule: make match_key() and match_attr() return boolean value
Yu Watanabe [Wed, 30 Jan 2019 06:54:10 +0000 (07:54 +0100)] 
udev-rule: make match_key() and match_attr() return boolean value

5 years agoudev-rule: drop unnecessary parentheses
Yu Watanabe [Wed, 30 Jan 2019 06:52:18 +0000 (07:52 +0100)] 
udev-rule: drop unnecessary parentheses

5 years agoethtool: make find_feature_index() return negative errno
Yu Watanabe [Tue, 29 Jan 2019 17:39:02 +0000 (18:39 +0100)] 
ethtool: make find_feature_index() return negative errno

5 years agoudev-rule: make get_key() return negative errno
Yu Watanabe [Tue, 29 Jan 2019 17:18:03 +0000 (18:18 +0100)] 
udev-rule: make get_key() return negative errno

5 years agoudev-rule: drop unnecessary assignments
Yu Watanabe [Tue, 29 Jan 2019 17:13:45 +0000 (18:13 +0100)] 
udev-rule: drop unnecessary assignments

5 years agoudev-rule: propagate error cause in add_token()
Yu Watanabe [Tue, 29 Jan 2019 17:11:35 +0000 (18:11 +0100)] 
udev-rule: propagate error cause in add_token()

5 years agohwdb: Add accelerometer mount matrix for ASUS MeMO Pad 7 (ME176C)
Stephan Gerhold [Sat, 9 Feb 2019 20:17:18 +0000 (21:17 +0100)] 
hwdb: Add accelerometer mount matrix for ASUS MeMO Pad 7 (ME176C)

5 years agotest-json: do not pass ephemeral array as intializer to JSON_BUILD_STRV
Zbigniew Jędrzejewski-Szmek [Sun, 10 Feb 2019 17:31:54 +0000 (18:31 +0100)] 
test-json: do not pass ephemeral array as intializer to JSON_BUILD_STRV

Fixes #11600.

The code was effectively doing:
  json_build(..., ({ char **_x = ((char**) ((const char*[]) {"one", "two", "three", "four", NULL })); _x; }));
but there was no guarantee that the storage for the array that _x points to
survives pass the end of the block. Essentially, STRV_MAKE cannot be used
inline inside of a block like this.

5 years agorule-syntax-check: allow PROGRAM as an assignment
Jan Synacek [Wed, 30 Jan 2019 11:22:41 +0000 (12:22 +0100)] 
rule-syntax-check: allow PROGRAM as an assignment

5 years agoman: add missing netdev kind in Tunnel section 11636/head
Yu Watanabe [Sun, 3 Feb 2019 01:54:09 +0000 (02:54 +0100)] 
man: add missing netdev kind in Tunnel section

5 years agonetwork/tunnel: fix log message
Yu Watanabe [Sun, 3 Feb 2019 01:51:09 +0000 (02:51 +0100)] 
network/tunnel: fix log message

5 years agonetwork: refuse AF_UNSPEC for Tunnel devices
Yu Watanabe [Sun, 3 Feb 2019 01:50:37 +0000 (02:50 +0100)] 
network: refuse AF_UNSPEC for Tunnel devices

5 years agonetwork: unify netdev_{ipip,sit}_fill_message_create()
Yu Watanabe [Sun, 3 Feb 2019 01:49:09 +0000 (02:49 +0100)] 
network: unify netdev_{ipip,sit}_fill_message_create()

5 years agonetwork: unify netdev_vti{,6}_fill_message_create()
Yu Watanabe [Sun, 3 Feb 2019 01:47:08 +0000 (02:47 +0100)] 
network: unify netdev_vti{,6}_fill_message_create()

5 years agonetwork/geneve: fix log message
Yu Watanabe [Sun, 3 Feb 2019 00:50:27 +0000 (01:50 +0100)] 
network/geneve: fix log message

5 years agonetwork: use netlink_message_append_{in_addr,sockaddr}_union()
Yu Watanabe [Sun, 3 Feb 2019 00:47:25 +0000 (01:47 +0100)] 
network: use netlink_message_append_{in_addr,sockaddr}_union()

5 years agosd-netlink: unify sd_netlink_message_append_in{,6}_addr() and _sockaddr_in{,6}()
Yu Watanabe [Sun, 3 Feb 2019 00:06:23 +0000 (01:06 +0100)] 
sd-netlink: unify sd_netlink_message_append_in{,6}_addr() and _sockaddr_in{,6}()

5 years agonetwork: shorten code by using SYNTHETIC_ERRNO()
Yu Watanabe [Sat, 2 Feb 2019 23:25:06 +0000 (00:25 +0100)] 
network: shorten code by using SYNTHETIC_ERRNO()

5 years agonetwork: coding style fixes
Yu Watanabe [Sat, 2 Feb 2019 23:24:17 +0000 (00:24 +0100)] 
network: coding style fixes

5 years agonetwork: in_addr_is_null() may return negative errno
Yu Watanabe [Sat, 2 Feb 2019 23:09:13 +0000 (00:09 +0100)] 
network: in_addr_is_null() may return negative errno

So, do not silently cast the returned value to boolean.
Exception is the case that family is trivially AF_INET or AF_INET6.

5 years agonetwork: fix errno in log_syntax()
Yu Watanabe [Sat, 2 Feb 2019 22:08:10 +0000 (23:08 +0100)] 
network: fix errno in log_syntax()

in_addr_is_null() returns boolean if the first argument is valid.
So, passing the return value to log_syntax() as errno is wrong.

5 years agoboot/efi: use a wildcard section copy for final EFI generation
YiFei Zhu [Sat, 26 Jan 2019 16:51:27 +0000 (10:51 -0600)] 
boot/efi: use a wildcard section copy for final EFI generation

The GNU gold linker uses the section name `.rela.dyn` instead of
`.rela` for containing the relocation information. If this section
is not copied systemd-boot can crash.

Efitools started using wildcard section copies in their commit
b98d381b, and these wildcard sections are the only difference between
systemd-boot's section copy list and theirs. This patch add the
wildcard section `.rel*` to our objcopy, as it should include all
other wildcards assuming a recent GNU objcopy. Redundant arguments
for sections that would be matched by this wildcard are removed.

This patch has been tested on EDK II UEFI v2.70 Firmware on QEMU, and
Lenovo 0.5120 UEFI 2.40 Firmware on bare metal.

Fixes: #11541
5 years agosemaphore: keep build settings in the repository
Evgeny Vereshchagin [Tue, 29 Jan 2019 02:44:02 +0000 (03:44 +0100)] 
semaphore: keep build settings in the repository

It should make it easier to tweak them without having access to
SemaphoreCI itself (I'm glad I'm an admin there now but it shouldn't
be necessary to be an admin to add a couple of kludges :-)). More
importantly, changes to the settings will go through review and
be tested before they're applied globally potentially breaking
Semaphore as it happened two days ago.

I'll point Semaphore CI to these scripts once the PR is merged.

5 years agoman: mention vlan devices inherit the MAC address of the physical interface
Yu Watanabe [Tue, 29 Jan 2019 14:28:52 +0000 (15:28 +0100)] 
man: mention vlan devices inherit the MAC address of the physical interface

Follow-up for bc48c51f72d86c6f690724f251892da5657116ac.

Closes #4783.

[zj: tweak grammar a bit.]

5 years agotest-network: use dnsmasq with --dhcp-alternate-port option to test DHCP.ListenPort=
Yu Watanabe [Sat, 9 Feb 2019 12:14:16 +0000 (21:14 +0900)] 
test-network: use dnsmasq with --dhcp-alternate-port option to test DHCP.ListenPort=

Fixes #11675.

5 years agoMerge pull request #11647 from thom311/hashmap-avoid-compiler-warning
Zbigniew Jędrzejewski-Szmek [Fri, 8 Feb 2019 17:25:23 +0000 (18:25 +0100)] 
Merge pull request #11647 from thom311/hashmap-avoid-compiler-warning

Hashmap avoid compiler warning

5 years agorpm: use sh compatible redirects
Jan Engelhardt [Fri, 8 Feb 2019 14:35:55 +0000 (15:35 +0100)] 
rpm: use sh compatible redirects

&> is bash-specific. Switch to something that will work with dash
and pbosh.

5 years agotest-network: add testcases for IgnoreCarrierLoss= 9262/head
Yu Watanabe [Wed, 6 Feb 2019 11:45:56 +0000 (12:45 +0100)] 
test-network: add testcases for IgnoreCarrierLoss=