projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4228306
)
core/device: refuse alias with ".."
author
Yu Watanabe
<watanabe.yu+github@gmail.com>
Tue, 20 Sep 2022 18:13:46 +0000
(
03:13
+0900)
committer
Yu Watanabe
<watanabe.yu+github@gmail.com>
Tue, 20 Sep 2022 20:58:40 +0000
(
05:58
+0900)
src/core/device.c
patch
|
blob
|
history
diff --git
a/src/core/device.c
b/src/core/device.c
index ebe1a934f4f81af4705e09ebaa70f1521f7c47b7..21dc5890fc5a2d18c96c4c8354b468b540e6063c 100644
(file)
--- a/
src/core/device.c
+++ b/
src/core/device.c
@@
-807,8
+807,8
@@
static int device_setup_extra_units(Manager *m, sd_device *dev, Set **ready_unit
continue;
}
- if (!path_is_
normalized
(*alias)) {
- log_device_warning(dev, "The alias \"%s\" specified in SYSTEMD_ALIAS is not
a normalized path
, ignoring.", *alias);
+ if (!path_is_
safe
(*alias)) {
+ log_device_warning(dev, "The alias \"%s\" specified in SYSTEMD_ALIAS is not
safe
, ignoring.", *alias);
continue;
}