diff options
author | Lennart Poettering <lennart@poettering.net> | 2022-04-11 22:04:06 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2022-04-13 14:40:13 +0200 |
commit | a7910612a5be324d8b6994a2f7e1a2edb63ad03c (patch) | |
tree | 609eac309c1718dbd43e894a2d9a7564a53ac9ff /docs/ENVIRONMENT.md | |
parent | 1793bb611249b9525f6ed17964347d377d97e494 (diff) | |
download | systemd-a7910612a5be324d8b6994a2f7e1a2edb63ad03c.tar.gz |
sd-device: don't accept non-sysfs paths
There are some file systems mounted below /sys/ that are not actually
sysfs, i.e. are not arranged in a sysfs/kobject style. Let's refuse
those early. (Example, /sys/fs/cgroup/ and similar.)
(Also, let's add an env var for this, so that it can be turned off for
test cases.)
Diffstat (limited to 'docs/ENVIRONMENT.md')
-rw-r--r-- | docs/ENVIRONMENT.md | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/ENVIRONMENT.md b/docs/ENVIRONMENT.md index 0cbe5cfb6b..5f02f888a5 100644 --- a/docs/ENVIRONMENT.md +++ b/docs/ENVIRONMENT.md @@ -199,7 +199,7 @@ All tools: or whenever they change if it wants to integrate with `systemd-logind`'s APIs. -`systemd-udevd`: +`systemd-udevd` and sd-device library: * `$NET_NAMING_SCHEME=` — if set, takes a network naming scheme (i.e. one of "v238", "v239", "v240"…, or the special value "latest") as parameter. If @@ -211,6 +211,10 @@ All tools: prefixed with `:` in which case the kernel command line option takes precedence, if it is specified as well. +* `$SYSTEMD_DEVICE_VERIFY_SYSFS` — if set to "0", disables verification that + devices sysfs path are actually backed by sysfs. Relaxing this verification + is useful for testing purposes. + `nss-systemd`: * `$SYSTEMD_NSS_BYPASS_SYNTHETIC=1` — if set, `nss-systemd` won't synthesize |