summaryrefslogtreecommitdiffstats
path: root/pyanaconda/ui
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2013-01-04 17:00:25 -0500
committerChris Lumens <clumens@redhat.com>2013-01-07 09:07:52 -0500
commitdf4cf86514e12192abd3b5ec005ba2e05f99760d (patch)
tree9eb3d177538f88e31d01a8cb66ab18c34c629f16 /pyanaconda/ui
parent3026040aadce2525690c7362b69b9550d11f1190 (diff)
downloadanaconda-df4cf86514e12192abd3b5ec005ba2e05f99760d.tar.gz
anaconda-df4cf86514e12192abd3b5ec005ba2e05f99760d.tar.xz
anaconda-df4cf86514e12192abd3b5ec005ba2e05f99760d.zip
Don't allow mountpoints to start with /dev (#891447).
Diffstat (limited to 'pyanaconda/ui')
-rw-r--r--pyanaconda/ui/gui/spokes/custom.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index b71e9e2d1..8552f358b 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -196,6 +196,8 @@ def validate_mountpoint(mountpoint, used_mountpoints, strict=True):
valid = MOUNTPOINT_IN_USE
elif not mountpoint:
valid = MOUNTPOINT_EMPTY
+ elif mountpoint.startswith("/dev"):
+ valid = MOUNTPOINT_INVALID
elif (mountpoint.lower() not in fake_mountpoints and
((len(mountpoint) > 1 and mountpoint.endswith("/")) or
not mountpoint.startswith("/") or