Lennart Poettering
cb3763d57b
cgroup-util: laccess() returns negative errno already
2021-11-16 08:04:09 +01:00
Lennart Poettering
ad004abe9d
filesystems: apparently f2fs is als reasonably common
...
As suggested:
https://github.com/systemd/systemd/pull/21373#discussion_r749523677
2021-11-15 22:54:15 +01:00
Lennart Poettering
05715f12a8
filesystems: add ntfs/ntfs3 magic and add it current version to group
...
As suggested:
https://github.com/systemd/systemd/pull/21373#discussion_r749523677
2021-11-15 22:53:25 +01:00
Lennart Poettering
ad4e99fe9a
filesystems: add comments to gperf file anomalies
...
Some file systems have non-unique names or non-unique magics. Let's add
some comments explaining that.
2021-11-15 22:43:03 +01:00
Lennart Poettering
0ed6103c19
filesystems: fix magic of "smb3" fs
...
smb3 is an alias for modern CIFS, not the old SMB fs (see kmod alias list, i.e. modinfo fs-smb3).
(the old smbfs has long been removed from the kernel actually, it's dead
and obsolete)
2021-11-15 22:43:03 +01:00
Lennart Poettering
d7c2f8817a
filesystems: list rpc_pipefs as auxiliary kernel API VFS
2021-11-15 22:43:03 +01:00
Lennart Poettering
7e8fd61089
filesystems: list orangefs as network fs
...
it's the new name or pvfs2, hence we might as well list it, given we
list that already.
2021-11-15 22:43:03 +01:00
Lennart Poettering
2b69f6e591
devtmpfs is a primary API fs
2021-11-15 22:43:03 +01:00
Lennart Poettering
66d39325d7
filesystems: add three more file system types
...
devtmpfs and cpuset are not actual filesystems of their own. cpuset used
to be but is now an alias for cgroupsfs. devtmpfs is the same as tmpfs
as its just a "named superblock", i.e. a specific instance of tmpfs, but
not a file system of its own.
2021-11-15 22:43:03 +01:00
Lennart Poettering
6d439321e8
filesystems: add internal APIs to convert fs magic to name
...
We previously had tooling for the opposite direction, let's complete the
work.
2021-11-15 22:43:03 +01:00
Lennart Poettering
3818d6a3a5
mountpoint-util: sort list of read-only fs again
2021-11-15 22:43:03 +01:00
Lennart Poettering
5feeb2584f
filesystems: add group for "application" file system
...
This group shall cover file systems whose job is to make stuff that
isn't actually storing anything in itself, and isn't just an API file
system, but allows exposing stuff with special semantics in the VFS.
2021-11-15 22:43:03 +01:00
Lennart Poettering
9c8214d559
filesystems: add binfmt_misc to auxiliary API VFS group
2021-11-15 22:43:03 +01:00
Lennart Poettering
333a2ad649
filesystems: add ceph to network file systems group
2021-11-15 22:43:03 +01:00
Lennart Poettering
2867cb392a
filesystems: slightly update common block device groups
2021-11-15 22:43:03 +01:00
Lennart Poettering
73e7576e3b
filesystems: add two new filesystem groups
...
1. @anonymous → for file systems that aren't real file systems but
simply the backing for sockets, pipes and other "anonymous" fds.
2. @security → for the various MAC security file systems.
2021-11-15 22:43:03 +01:00
Lennart Poettering
fe0777fb94
Merge pull request #21320 from poettering/namespace-mkdir-umask
...
make pid1 namespace code independent of umask
2021-11-12 22:12:58 +01:00
Lennart Poettering
52f05ef21d
umask-util: add helper that resets umask until end of current code block
2021-11-12 16:01:40 +01:00
Zbigniew Jędrzejewski-Szmek
a456086b37
basic/utf8: inline some iterator variables
2021-11-12 15:51:26 +01:00
Yu Watanabe
847f1ea69e
ether-addr-util: fix ether_addr_is_local() and add one more helper
...
Follow-up for 1f86a3fe52 .
2021-11-12 20:00:29 +09:00
Lennart Poettering
371264b6c6
Merge pull request #21302 from yuwata/udev-drop-colon-from-ID_NET_NAME_MAC
...
udev: drop colon from ID_NET_NAME_MAC
2021-11-11 14:36:28 +01:00
Lennart Poettering
126c02a8fd
Merge pull request #21304 from poettering/chain-ssh-auth-keys
...
userdbctl: add support for chaining other ssh-authorized-keys commands from userdbctl
2021-11-11 14:35:48 +01:00
Yu Watanabe
e44cd43788
ether-addr-util: introduce hw_addr_to_string_full()
2021-11-11 18:29:52 +09:00
Lennart Poettering
7d0cede04f
escape: return unused memory in quote_command_line()
2021-11-11 10:06:31 +01:00
Lennart Poettering
5e659ffcb0
process-util: use quote_command_line() at one more place
2021-11-11 10:06:26 +01:00
Lennart Poettering
4ef15008cc
escape: add flags argument to quote_command_line()
...
That way, we can reuse the call at one more place (see later patch).
2021-11-11 10:05:46 +01:00
Yu Watanabe
ca7d208367
ether-addr-util: expose hw_addr_hash_func()
2021-11-11 12:49:42 +09:00
Lennart Poettering
3299c293db
architecture: drop __riscv__ checks, it's obsolete since 2018
2021-11-10 12:38:32 +01:00
Yu Watanabe
5ff3c71af8
Merge pull request #21276 from yuwata/ether-addr-util
...
ether-addr-util: introduce parse_hw_addr() and related conf parsers
2021-11-10 09:22:01 +09:00
Yu Watanabe
c6df73ca72
ether-addr-util: introduce {hw,ether}_addr_hash_ops_free
2021-11-09 21:39:09 +09:00
Yu Watanabe
227e9ce255
ether-addr-util: replace ether_addr_from_string() with parse_ether_addr()
2021-11-09 21:39:09 +09:00
Yu Watanabe
02160bc909
ether-addr-util: introduce parse_ether_addr()
2021-11-09 21:39:09 +09:00
Yu Watanabe
76a5d3dee2
ether-addr-util: introduce parse_hw_addr()
2021-11-09 21:39:05 +09:00
Lennart Poettering
3777940ab2
inotify-util: improve reported error codes when inotify_add_watch() fails
2021-11-09 12:52:07 +01:00
Zbigniew Jędrzejewski-Szmek
7368e69bc7
Merge pull request #21271 from yuwata/ether-addr-util-helper-functions
...
ether-addr-util: introduce several helper functions
2021-11-09 10:02:55 +01:00
Yu Watanabe
91961fff43
arphrd-util: introduce arphrd_to_hw_addr_len()
2021-11-09 08:24:10 +09:00
Yu Watanabe
f09d20256a
arphrd-util: rename arphrd-list.[ch] -> arphrd-util.[ch]
2021-11-09 08:24:10 +09:00
Yu Watanabe
de0f157984
ether-addr-util: make hw_addr_is_null() return true also for all zero address
...
This fixes the following error:
---
systemd-networkd[1449490]: ip6tnl0: Saved hardware address: 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
systemd-networkd[1449490]: ip6tnl0: Failed to manage link by its new hardware address, ignoring: File exists
---
2021-11-09 08:20:51 +09:00
Yu Watanabe
1f86a3fe52
ether-addr-util: introduce several helper functions
2021-11-09 08:20:51 +09:00
Daan De Meyer
51462135fb
exec: Add TTYRows and TTYColumns properties to set TTY dimensions
2021-11-05 21:32:14 +00:00
Zbigniew Jędrzejewski-Szmek
7f9521d5e1
Merge pull request #21225 from medhefgo/boot-cleanup
...
Boot cleanup
2021-11-05 14:53:47 +01:00
Luca Boccassi
fac2c3e97d
basic/mountpoint-util: detect erofs as a read-only FS
2021-11-05 14:02:04 +01:00
Jan Janssen
a8a7723ba9
sd-boot: Move flags helpers to macro-fundamental.h
2021-11-04 18:37:07 +01:00
Yu Watanabe
829b86bc0f
Merge pull request #21217 from keszybz/debug-test-process-util
...
procfs-util: fix confusion wrt. quantity limit and maximum value
2021-11-04 04:03:56 +09:00
Lennart Poettering
883946f0d2
process-util: rework TAKE_PID() to be side-effect free
2021-11-03 15:57:02 +01:00
Lennart Poettering
2c1612100d
process-util: wait for processes we killed even if killing failed
...
The processes might be zombies in which case killing will fail, but
reaping them still matters.
2021-11-03 15:57:02 +01:00
Lennart Poettering
90d59676b3
fd-util: make TAKE_FD free of double evaluation
...
Better be safe than sorry.
2021-11-03 15:22:18 +01:00
Zbigniew Jędrzejewski-Szmek
c3dead53d5
procfs-util: fix confusion wrt. quantity limit and maximum value
...
From packit/rawhide-arm64 logs:
Assertion 'limit >= INT_MAX || get_process_ppid(limit+1, NULL) == -ESRCH' failed at src/test/test-process-util.c:855, function test_get_process_ppid(). Aborting.
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
The kernel has a few different limits. In particular kernel.threads-max can be
set to some lower value, and kernel.pid_max can be set to a higher value. This
is nice because it reduces PID reuse, even if the number of threads that is
allowed is limited. But the tests assumed that we cannot have a thread with
PID above MIN(kernel.threads-max, kernel.pid_max-1), which is not valid.
So let's rework the whole thing: let's expose the helpers to read
kernel.threads-max and kernel.pid_max, and print what they return in tests.
procfs_tasks_get_limit() was something that is only used in tests, and wasn't
very well defined, so let's drop it.
Fixes #21193 .
2021-11-03 09:36:08 +01:00
Lennart Poettering
2f2cdd7250
percent-util: clamp percent range before converting to 2^32 scale
...
Let#s better be safe than sorry and clamp the input, so that we don't
hit overflow issues.
2021-11-03 12:41:17 +09:00
Lennart Poettering
4768cc450d
missing: add missing header inclusions
...
These headers should work without any manual header inclusion.
2021-11-03 12:41:01 +09:00