summaryrefslogtreecommitdiff
path: root/sys/arch/amd64
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2005-03-30 07:52:33 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2005-03-30 07:52:33 +0000
commitbf0f94ab5eae936591e29e8f7d2a371fea208c3d (patch)
tree67ef3a5c29b016573a5d0466f97bff6a68b38d95 /sys/arch/amd64
parent58a4d9051f44de59c0b328bef84258c7ad009269 (diff)
first approximation: spoof UDF filesystem disklabels when we see them.
it is likely a slight bug or two will sneak in with this, so everyone please keep an eye out on your disklabels
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r--sys/arch/amd64/amd64/disksubr.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/amd64/amd64/disksubr.c b/sys/arch/amd64/amd64/disksubr.c
index 209caa3d5a4..246a4c6ec0f 100644
--- a/sys/arch/amd64/amd64/disksubr.c
+++ b/sys/arch/amd64/amd64/disksubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: disksubr.c,v 1.2 2004/03/17 14:16:03 miod Exp $ */
+/* $OpenBSD: disksubr.c,v 1.3 2005/03/30 07:52:31 deraadt Exp $ */
/* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */
/*
@@ -287,6 +287,10 @@ donot:
if (iso_disklabelspoof(dev, strat, lp) == 0)
msg = NULL;
#endif
+#if defined(UDF)
+ if (msg && udf_disklabelspoof(dev, strat, lp) == 0)
+ msg = NULL;
+#endif
goto done;
}