Skip to content

Commit 20b4c37

Browse files
committed
Merge branch 'github-pull-53'
Feature provides support to securely overwrite and remove LUKS-encrypted partitions, making data unrecoverable. * github-pull-53: New feature: luks-nuker -- shredder for encrypted partitions. Link: #53 Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
2 parents 3218539 + 74f9b23 commit 20b4c37

4 files changed

Lines changed: 44 additions & 0 deletions

File tree

features/dialog/data/bin/dialog-sh-functions

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#!/bin/bash
22
# SPDX-License-Identifier: GPL-3.0-or-later
33

4+
. shell-source
5+
6+
source_if_exists /etc/sysconfig/luks-nuker
7+
48
if [ -z "${__dialog_sh_functions-}" ]; then
59
__dialog_sh_functions=1
610

@@ -103,6 +107,8 @@ dialog_ask_pass()
103107
{
104108
printf '#!/bin/bash\n'
105109
printf 'exec '
110+
! type -P luks-nuker >/dev/null ||
111+
printf 'luks-nuker %b | ' "${LUKS_NUKER_ARGS-} --redirect"
106112
printf ' %q' "$@"
107113
} > "$cmdwrapper"
108114
chmod +x "$cmdwrapper"

features/luks-nuker/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Feature: luks-nuker
2+
3+
Feature provides support for emergency destruction of encrypted partitions.
4+
5+
## About
6+
7+
The luks-nuker precedes cryptsetup's input, read it and tries to match it
8+
with the nuking password. Under normal circumstances it doesn't reveal
9+
itself at all.
10+
11+
Refer to the `/etc/luks-nuker.conf` to get more information about and
12+
configure it.
13+
14+
## How to get
15+
16+
You can get luks-nuker from [git
17+
repository](http://git.altlinux.org/people/ved/public/luks-nuker.git).
18+
Also it is distributed by ALT Linux Sisyphus.
19+
20+
## Parameters
21+
22+
- **LUKS_NUKER_ARGS** -- Specifies luks-nuker arguments. Empty by default.

features/luks-nuker/config.mk

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# SPDX-License-Identifier: GPL-3.0-or-later
2+
3+
$(call feature-requires, luks, dialog)
4+
5+
LUKS_NUKER_CONF ?= $(SYSCONFDIR)/luks-nuker.conf
6+
7+
LUKS_NUKER_PROGS = luks-nuker
8+
LUKS_NUKER_FILES = $(LUKS_NUKER_CONF)
9+
10+
LUKS_NUKER_ARGS ?=

features/luks-nuker/rules.mk

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# SPDX-License-Identifier: GPL-3.0-or-later
2+
3+
PUT_FEATURE_FILES += $(LUKS_NUKER_FILES)
4+
PUT_FEATURE_PROGS += $(LUKS_NUKER_PROGS)
5+
6+
$(call set-sysconfig,luks-nuker,LUKS_NUKER_ARGS,$(LUKS_NUKER_ARGS))

0 commit comments

Comments
 (0)