Am 10/21/2009 04:47 PM, schrieb Ted Unangst:
You have the source to bioctl....

On Wed, Oct 21, 2009 at 9:52 AM, elias r.<obs...@crudp.ath.cx>  wrote:
Am 10/21/2009 03:43 PM, schrieb Alexander Hall:

elias r. wrote:

hum, nobody's got an answer?


is there maybe a way via the shell pipelining to read the passphrase
from a file and write it to stdin?

should this work?:

bioctl -c C -l /dev/wd0a softraid0<    pass.keyfile

If will by default try to read it from /dev/tty, so you need to trick it
not to.

man readpassphrase

hum, ok, that sounds logical...

do you have any suggestions how to do it?

right now, i don't have an idea how to prevent a root-priviledged program
from reading from tty...
and the flags mentioned in the man-page are all set at compile-time, aren't
they?



ok, now it works, i simply changed "RPP_REQUIRE_TTY" flag to "RPP_STDIN" at the readpassphrase()-call in derive_key_pkcs().

now it works with bioctl -c C -l $DEV < keyfile!

but i assume the RPP_REQUIRE_TTY flag wasn't there for fun, but the devs had something in mind when they chose tty over stdin?


Reply via email to