Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 67342 Details for
Bug 104381
cryptsetup does not allow multiple encrypted partitions to be dealt with using one controlling password.
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
This updates dm-crypt-start.sh to include the master_key functionality.
dm-crypt-start.sh.patch (text/plain), 2.04 KB, created by
Joshua (RETIRED)
on 2005-08-31 07:29:46 UTC
(
hide
)
Description:
This updates dm-crypt-start.sh to include the master_key functionality.
Filename:
MIME Type:
Creator:
Joshua (RETIRED)
Created:
2005-08-31 07:29:46 UTC
Size:
2.04 KB
patch
obsolete
>*** dm-crypt-start.sh.old 2005-08-31 22:25:55.356369389 +0800 >--- dm-crypt-start.sh 2005-08-31 22:28:10.227663567 +0800 >*************** >*** 38,47 **** >--- 38,48 ---- > /bin/cryptsetup ${options} create ${target} ${source} >/dev/console </dev/console > ret=$? > eend ${ret} "failure running cryptsetup" > else > if type -p gpg >/dev/null ; then >+ if [[ -z ${master} ]] ; then > ret=1 > while [[ ${ret} -gt 0 ]] ; do > keystring=$(gpg ${gpg_options} ${key} 2>/dev/null </dev/console) > if [[ -z ${keystring} ]] ; then > ret=5 >*************** >*** 50,59 **** >--- 51,65 ---- > ret=$? > fi > done > eend ${ret} > else >+ # Got a master passphrase. >+ keystring=$(echo ${master} | gpg -q -d ${gpg_options} --passphrase-fd 0 ${key} 2>/dev/null) >+ echo ${keystring} | /bin/cryptsetup ${options} create ${target} ${source} >+ fi >+ else > einfo "You have to install app-crypt/gpg first" > fi > fi > splash svc_input_end checkfs > >*************** >*** 124,134 **** > if [[ -z ${mount} && -z ${swap} ]] ; then > ewarn "Ignoring setting outside mount/swap section: ${mountline}" > continue > fi > ;; >! > *) > ewarn "Skipping invalid line in /etc/conf.d/cryptfs: ${mountline}" > ;; > esac > >--- 130,158 ---- > if [[ -z ${mount} && -z ${swap} ]] ; then > ewarn "Ignoring setting outside mount/swap section: ${mountline}" > continue > fi > ;; >! master_key=*) >! if [[ "${myservice}" = "checkfs" ]] ; then >! if type -p gpg >/dev/null ; then >! ret=1 >! while [[ ${ret} -gt 0 ]] ; do >! # Get the master passphrase. >! ret=0 >! eval "${mountline}" >! master=$(gpg -d -q ${gpg_options} ${master_key} 2>/dev/null </dev/console) >! if [[ -z ${master} ]] ; then >! ret=5 >! fi >! done >! eend ${ret} >! else >! einfo "You have to install app-crypt/gpg first" >! fi >! fi >! ;; > *) > ewarn "Skipping invalid line in /etc/conf.d/cryptfs: ${mountline}" > ;; > esac >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 104381
:
67342
|
70448
|
73278
|
73279
|
75094