Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 131715 Details for
Bug 193546
cryptsetup scripts perform no checks before running mkswap/mkfs with encrypted swap/temp
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
1.0.5-dm-crypt-start.sh patch
1.0.5-dm-crypt-start.sh.patch (text/plain), 1.19 KB, created by
Hopeless
on 2007-09-23 16:46:57 UTC
(
hide
)
Description:
1.0.5-dm-crypt-start.sh patch
Filename:
MIME Type:
Creator:
Hopeless
Created:
2007-09-23 16:46:57 UTC
Size:
1.19 KB
patch
obsolete
>--- 1.0.5-dm-crypt-start.sh.orig 2007-09-23 17:23:39.000000000 +0100 >+++ 1.0.5-dm-crypt-start.sh 2007-09-23 17:31:22.000000000 +0100 >@@ -24,7 +24,17 @@ > # swap contents do not need to be preserved between boots, luks not required. > # suspend2 users should have initramfs's init handling their swap partition either way. > : ${options:='-c aes -h sha1 -d /dev/urandom'} >- : ${pre_mount:='mkswap ${dev}'} >+ if [ -n "$header" ]; then >+ options="-o 1 ${options}" >+ if [ "$header" == "`/bin/dd if=${source} bs=1 count=${#header} 2> /dev/null`" ]; then >+ : ${pre_mount:='mkswap ${dev}'} >+ else >+ ewarn "Swap header verification failed, not running mkswap on ${source}" >+ return >+ fi >+ else >+ : ${pre_mount:='mkswap ${dev}'} >+ fi > else > return > fi >@@ -218,7 +228,7 @@ > unset gpg_options key loop_file target options pre_mount post_mount source swap remdev > ;; > >- gpg_options=*|remdev=*|key=*|loop_file=*|options=*|pre_mount=*|post_mount=*|source=*) >+ gpg_options=*|remdev=*|key=*|loop_file=*|options=*|pre_mount=*|post_mount=*|source=*|header=*) > if [[ -z ${target} && -z ${swap} ]] ; then > ewarn "Ignoring setting outside target/swap section: ${targetline}" > continue
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 193546
: 131715