Christian Hesse
ddee0e815e
shared/ask-password-api: do not show hint on echo
...
Giving --echo to systemd-ask-password allows to echo the user input instead
of masking it. This is useful when querying for usernames or similar.
Showing "(press TAB for no echo)" does not make sense there, so do not.
Note that pressing TAB or ESC still disables echo.
2020-03-12 17:55:23 +01:00
nabijaczleweli
567a530760
fstab-generator: handle systemd.swap= command-line argument
...
Don't generate swap units if set to false
The inverse of this argument is present as "noswap" on Debian sysvinit
Ref:
https://salsa.debian.org/debian/sysvinit/blob/4422988cb41c3022eee7444378cac3b2e36eac28/debian/vars.sh#L34
https://salsa.debian.org/debian/sysvinit/blob/4422988cb41c3022eee7444378cac3b2e36eac28/debian/src/initscripts/etc/init.d/mountall.sh#L78
Fixes https://github.com/systemd/systemd/issues/6686
2020-03-12 17:52:43 +01:00
Yu Watanabe
392a2d5148
Merge pull request #15095 from yuwata/tc-tiny-fixes
...
network, man: tiny trivial cleanups
2020-03-12 21:17:10 +09:00
Yu Watanabe
1f58feec73
linux: update headers from v5.6
2020-03-12 19:55:10 +09:00
Yu Watanabe
f344a492d1
man: use include directive for Parent= or friends
2020-03-12 18:33:15 +09:00
Yu Watanabe
ff60129bc4
network: rename type name to ProportionalIntegralControllerEnhanced
2020-03-12 18:18:18 +09:00
Topi Miettinen
c3151977d7
namespace: fix MAC labels of /dev when PrivateDevices=yes
...
Without changing the SELinux label for private /dev of a service, it will take
a generic file system label:
system_u:object_r:tmpfs_t:s0
After this change it is the same as without `PrivateDevices=yes`:
system_u:object_r:device_t:s0
This helps writing SELinux policies, as the same rules for `/dev` will apply
despite any `PrivateDevices=yes` setting.
2020-03-12 08:23:27 +00:00
Yu Watanabe
7bda173f6a
Merge pull request #15084 from yuwata/network-tc-next
...
network: tc-next take2
2020-03-12 17:17:26 +09:00
Yu Watanabe
970ab1fcc0
test-network: add a test case for HHF
2020-03-12 15:47:03 +09:00
Susant Sahani
7f22402007
network: TC - introduce HHF
...
Please see https://lwn.net/Articles/577208/
2020-03-12 15:39:12 +09:00
Susant Sahani
7e16f84ea2
sd-netlink: add HHF netlink property
2020-03-12 15:39:12 +09:00
Yu Watanabe
41bb371bb0
test-network: add a test case for PFIFOFast
2020-03-12 15:39:10 +09:00
Susant Sahani
1a95964bfa
network: TC - introduce pfifo_fast
...
pfifo_fast - three-band first in, first out queue
Please see https://linux.die.net/man/8/tc-pfifo_fast
2020-03-12 15:38:18 +09:00
Yu Watanabe
73136507ac
test-network: add a test case for PFIFOHeadDrop
2020-03-12 15:38:15 +09:00
Susant Sahani
053a2ddbb2
network: TC - introduce pfifo_head_drop
...
This adds the required changes to gain access to
the head drop classfull queuing discipline named
pfifo_head_drop.
2020-03-12 15:37:17 +09:00
Yu Watanabe
7b1a31a3d0
test-network: add a test case for BFIFO
2020-03-12 15:37:15 +09:00
Susant Sahani
c853f594d4
network: TC - introduce BFIFO
...
bfifo - Byte limited First In, First Out queue
2020-03-12 15:35:51 +09:00
Yu Watanabe
557fa421ff
test-network: add a test case for DRR
2020-03-12 15:35:51 +09:00
Yu Watanabe
ad365c5de7
network: tc: introduce DRR class
2020-03-12 15:35:51 +09:00
Susant Sahani
f5fc04417e
network: TC - introduce DRR
...
Introduce the Deficit Round Robin Scheduler is a classful queuing discipline as
a more flexible replacement for Stochastic Fairness Queuing.
http://man7.org/linux/man-pages/man8/tc-drr.8.html
2020-03-12 15:35:51 +09:00
Susant Sahani
5c21b46e49
sd-netlink: add DRR netlink properties
2020-03-12 15:35:51 +09:00
Yu Watanabe
be94e591fb
test-network: add test case for PIE
2020-03-12 15:34:46 +09:00
Susant Sahani
bde4ae88c8
network: tc- introduce PIE
...
Proportional Integral controller-Enhanced (PIE) is a control
theoretic active queue management scheme. It is based on the
proportional integral controller but aims to control delay.
http://man7.org/linux/man-pages/man8/tc-pie.8.html
2020-03-12 13:58:35 +09:00
Susant Sahani
55d228311b
sd-netlink: add support for PIE
2020-03-12 13:58:35 +09:00
Anita Zhang
782a7eb719
Merge pull request #15081 from mrc0mmand/systemctl-hide-glyph-column
...
systemctl: hide the 'glyph' column when --no-legend is requested
2020-03-11 11:12:21 -07:00
Chris Down
88c2616509
Merge pull request #14901 from w-simon/fix-tests
...
test: fix some failures in test-cgroup
2020-03-11 15:01:20 +00:00
Frantisek Sumsal
d171e679e7
systemctl: hide the 'glyph' column when --no-legend is requested
...
Fixes : #15077
2020-03-11 14:43:55 +01:00
Frantisek Sumsal
0080964cc8
format-table: allow hiding a specific column
...
without having to specify the whole display map
2020-03-11 14:43:52 +01:00
Anita Zhang
c1566ef0d2
core: transition to FINAL_SIGTERM state after ExecStopPost=
...
Fixes #14566
2020-03-11 10:15:33 +01:00
Georg Müller
b6849042d6
journalctl: show duplicate entries if they are from the same file ( #14898 )
...
When having a service which intentionally outputs multiple equal lines,
all these messages might be inserted with the same timestamp.
journalctl has a mechanism to avoid duplicate lines, which might be in
different journal files.
This patch allows duplicate lines, if they are from the same file.
2020-03-11 09:12:00 +01:00
Zbigniew Jędrzejewski-Szmek
693040bde5
Merge pull request #15063 from topimiettinen/execute-dont-create-tmp-dirs-if-inaccessible
...
Execute: don't create temp dirs if inaccessible
2020-03-11 09:06:10 +01:00
Uwe Kleine-König
7600dbb870
udev: add debug logs for delaying and delegation of events
...
Up to now each uevent logs the following things at debug level:
- Device is queued
- Processing device
- Device processed
However when the device is queued it might still have to wait for
earlier devices to be processed before being able to start being
processed itself. When analysing logs this dependency information is
quite cruicial, so add respective debug log calls.
2020-03-11 08:44:32 +01:00
Valery0xff
0335d110af
udev: fix SECLABEL{selinux} issue ( #15064 )
...
Add SECLABEL{selinux}="some value" cause udevadm crash
systemd-udevd[x]: Worker [x] terminated by signal 11 (SEGV)
It happens since 25de7aa7b9 (Yu Watanabe 2019-04-25 01:21:11 +0200)
when udev rules processing changed to token model. Yu forgot store
attr to SECLABEL token so fix it.
2020-03-11 09:20:36 +09:00
dolphrundgren
42a739a0b5
Modified line 197 for readability. ( #15071 )
...
* Dropped "of some sort" from line 197 of man/systemd.xml
2020-03-10 15:22:42 -07:00
Zbigniew Jędrzejewski-Szmek
4f2db15371
meson: mark test-cgroup as standard
2020-03-10 15:53:39 +01:00
Zbigniew Jędrzejewski-Szmek
67da33231a
test-cgroup: do not require root to pass
...
Nowadays with delegation to the user instance, we can make this work as non-root
easily. If we still get access denied, just skip the test.
2020-03-10 15:53:39 +01:00
Topi Miettinen
efa2f3a18b
execute: don't create /tmp and /var/tmp if both are inaccessible
...
If both /tmp and either /var/tmp or whole /var are inaccessible, there's no
need to create the temporary directories.
2020-03-10 16:51:29 +02:00
Topi Miettinen
de46b2be07
namespace: ignore prefix chars when comparing paths
...
Other callers of path_strv_contains() or PATH_IN_SET() don't seem to handle
paths prefixed with -+.
2020-03-10 16:48:34 +02:00
Zbigniew Jędrzejewski-Szmek
1c132196b1
test-cgroup: fix memleak
...
https://github.com/systemd/systemd/pull/14901#issuecomment-587924705 .
2020-03-10 10:54:43 +01:00
Zbigniew Jędrzejewski-Szmek
2a8020fe9d
basic/cgroup-util: modernize cg_split_spec()
...
Those cryptic one letter variable names, yuck!
2020-03-10 10:50:34 +01:00
Zbigniew Jędrzejewski-Szmek
b35e9974fa
test-cgroup: split into functions as usual
2020-03-10 10:36:01 +01:00
Topi Miettinen
0108c42f59
dissect-image: avoid scanning partitions
...
In case the dissected image has a filesystem, don't scan for partitions. This
avoids problems with services using a `RootImage=` in early boot when udevd is
not yet started.
2020-03-10 10:03:57 +01:00
Topi Miettinen
3b5b6826aa
mount-setup: make /dev noexec
...
/dev used to be mounted with "exec" flag due to /dev/MAKEDEV script but that's
history and it's now located in /sbin. mmap() with file descriptor to
"/dev/zero" (instead of modern mmap(,,,MAP_ANON...)) will still work.
2020-03-09 19:08:42 +01:00
Frantisek Sumsal
e9cdcbed77
test: ignore IAB capabilities in test-execute
...
libcap v2.33 introduces a new capability set called IAB[0] which is shown
in the output of `capsh --print` and interferes with the test checks. Let's
drop the IAB set from the output, for now, to mitigate this.
This could be (and probably should be) replaced in the future by the
newly introduced testing options[1][2] in libcap v2.32, namely:
--has-p=xxx
--has-i=xxx
--has-a=xxx
but this needs to wait until the respective libcap version gets a wider
adoption. Until then, let's stick with the relatively ugly sed.
Fixes : #15046
[0] https://git.kernel.org/pub/scm/libs/libcap/libcap.git/commit/?id=943b011b5e53624eb9cab4e96c1985326e077cdd
[1] https://git.kernel.org/pub/scm/libs/libcap/libcap.git/commit/?id=588d0439cb6495b03f0ab9f213f0b6b339e7d4b7
[2] https://git.kernel.org/pub/scm/libs/libcap/libcap.git/commit/?id=e7709bbc1c4712f2ddfc6e6f42892928a8a03782
2020-03-09 18:22:16 +01:00
Zbigniew Jędrzejewski-Szmek
908055f61f
Merge pull request #15033 from yuwata/state-directory-migrate-issue
...
execute: Fix migration from DynamicUser=yes to no
2020-03-09 17:34:55 +01:00
Haochen Tong
47cc458e97
analyze: fix table time output
2020-03-09 14:58:25 +01:00
Denis Pronin
36e0d89a88
Support compiling with clang and gnu11 standard
...
Signed-off-by: Denis Pronin <dannftk@yandex.ru >
2020-03-09 14:55:21 +01:00
Florian Klink
f14266c843
meson.build: drop unused SYSTEMD_SLEEP_BINARY_PATH
...
seems usage was dropped in ddcbc87378 .
2020-03-09 14:52:30 +01:00
bemarek
1cee1c5283
Typo fix
2020-03-09 09:54:17 +09:00
gogogogi
51915ca447
Update Croatian translation ( #15042 )
2020-03-08 22:06:12 +01:00