| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
split() and FOREACH_WORD really should die, and everything be moved to
extract_first_word() and friends, but let's at least make sure that for
the remaining code using it we can't deadlock by not progressing in the
word iteration.
Fixes: #15305
|
|\
| |
| | |
A few small fixups for stuff found by coverity
|
| |
| |
| |
| | |
CID#1420259.
|
|\ \
| | |
| | | |
Functional test rework
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The kernel does not sanitize /proc/cmdline. E.g. when running under qemu, it is
easy to pass a string with newline by mistake. We use read_one_line_file(), so
we would read only the first list of the file, and
write_string_file(WRITE_STRING_FILE_VERIFY_ON_FAILURE) would fail because the
target file is obviously different. Change to a kernel-generated file to avoid
the issue.
v2:
- use /proc/version instead of /proc/uptime for attempted writes, so the test
test passes even if test_write_string_file_verify() takes more than 10 ms ;]
|
| | |
| | |
| | |
| | |
| | | |
We have a bazillion of those unit files, and keeping them all directly in tests/
has become rather unwieldy.
|
| | |
| | |
| | |
| | | |
I don't think anyone uses it.
|
| | |
| | |
| | |
| | | |
Also document it in the man page.
|
| | |
| | |
| | |
| | |
| | | |
We were very inconsistent in this, but in general _PATH signifies
a search path (separated with :), and _DIR signifies a single directory.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
I think the two names were both pretty bad. They did not give a proper hint
what the difference between the two functions is, and sd_path_home sounds like
it is somehow related to /home or home directories or whatever, when in fact
both functions return the same set of paths as either a colon-delimited string
or a strv. "_strv" suffix is used by various functions in sd-bus, so let's
reuse that.
Those functions are not public yet, so let's rename.
|
| |/
|/| |
|
|/
|
|
|
|
|
|
| |
In 1a29610f5fa1bcb2eeb37d2c6b79d8d1a6dbb865 the change inadvertedly
disabled names with digit as the first character. This follow-up change
allows a digit as the first character in compat mode.
Fixes: #15141
|
|
|
|
|
|
|
| |
systemd will automatically derive CPU affinity mask from NUMA node
mask.
Fixes #13248
|
|\
| |
| | |
test: fix some failures in test-cgroup
|
| | |
|
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| | |
https://github.com/systemd/systemd/pull/14901#issuecomment-587924705.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Fix the following issues in test-cgroup:
1, commit 65be7e06528a ("pid1: do not reset subtree_control on
already-existing units with delegation") changed the return value
of cg_create () as follows:
"Returns 0 if the group already existed, 1 on success, negative
otherwise."
So we need to modify the test cases related to cg_create ().
2, commit efdb02375beb ("core: unified cgroup hierarchy support")
changed cg_delete () to cg_rmdir (), so the test cases also need
to be adjusted a bit.
3. There is no cleanup of "test-a". If we execute test-cgroup
multiple times, we will encounter an error.
Signed-off-by: Wen Yang <wenyang@linux.alibaba.com>
|
|\ \
| | |
| | | |
execute: Fix migration from DynamicUser=yes to no
|
| | | |
|
|/ / |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This improves the following debug log.
Before:
systemd[1162]: Restricting namespace to: .
After:
systemd[1162]: Restricting namespace to: n/a.
|
|\ \
| | |
| | | |
Version and doc updates
|
| | |
| | |
| | |
| | | |
"set up" and "look up" are the verbs, "setup" and "lookup" are the nouns.
|
|/ / |
|
| |
| |
| |
| |
| |
| | |
It returns 32 bits, unsigned on amd64, so it's probably similar everywhere
with glibc. But let's make the code generic, without assuming specific size
or signedness.
|
| |
| |
| |
| |
| |
| |
| |
| | |
The man pages state that the '+' prefix in Exec* directives should
ignore filesystem namespacing options such as PrivateTmp. Now it does.
This is very similar to #8842, just with PrivateTmp instead of
PrivateDevices.
|
| |
| |
| |
| |
| |
| |
| |
| | |
For #8495: it is arguably useful to not show the length of the password
in public spaces. It is possible to press TAB or BS to cancel the asterisks,
but this is not very discoverable. Let's make it discoverable by showing
a message (in gray). The message is "erased" after the first character
is entered.
|
| |
| |
| |
| |
| |
| |
| |
| | |
test-ask-password-api would crash if ^D was pressed.
If think the callers generally expect a non-empty strv as reply. Let's
return an error if we have nothing to return.
Also modernize test-ask-password-api a bit.
|
|\ \
| | |
| | | |
sysctl: add glob patterns to set network settings more flexibly
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
We use those strings as hash keys. While writing "a...b" looks strange,
"a///b" does not look so strange. Both syntaxes would actually result in the
value being correctly written to the file, but they would confuse our
de-deplication over keys. So let's normalize. Output also becomes nicer.
Add test.
|
| | |
| | |
| | |
| | |
| | | |
We already have assert_cc(sizeof(uid_t) == sizeof(uint32_t)) or friends
at various places.
|
|\ \ \
| | | |
| | | | |
journal: add concept of "journal namespaces"
|
| | | |
| | | |
| | | |
| | | | |
attributes for that
|
| | | | |
|
|/ / /
| | |
| | |
| | | |
Fixes CID#1412354.
|
| | |
| | |
| | |
| | |
| | | |
This corrects the fix b81b9d406de, making the test operate like it was
originally.
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | | |
Fixes #14620.
|
|/ / |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This way we can use libxcrypt specific functionality such as
crypt_gensalt() and thus take benefit of the newer algorithms libxcrypt
implements. (Also adds support for a new env var $SYSTEMD_CRYPT_PREFIX
which may be used to select the hash algorithm to use for libxcrypt.)
Also, let's move the weird crypt.h inclusion into libcrypt.h so that
there's a single place for it.
|
|\ \
| | |
| | | |
introduce TABLE_STRV and use it in networkctl and resolvectl
|
| | | |
|
| | | |
|
|\ \ \
| |/ /
|/| | |
networkctl: return error or warning when interfaces are not matched
|