honk said:Thats why I enabled kern.geom.eli.visible_passphrase="1" to use GELI which prevents me from using my computer in conferences or whenever someone else sits next to me
The solution may be quite simple and I wonder why geli developer didn't include it from the beginning as I suppose that implementations of crypted FS in other systems have always visible but starred password, and that can be achieved easily with just few lines listed below. I use kernel patched that way and it seems nothing else is broken.
Code:
--- sys/libkern/gets.c.orig 2011-04-14 22:04:25.234478722 +0200
+++ sys/libkern/gets.c 2011-04-14 22:04:32.606479912 +0200
@@ -54 +54,3 @@
- if (visible)
+ if (visible > 1)
+ printf("* \b");
+ else if (visible == 1)
@@ -63 +65,3 @@
- if (visible)
+ if (visible > 1)
+ printf("*");
+ else if (visible == 1)
Now in /boot/loader.conf
Code:
kern.geom.eli.visible_passphrase=2