Browse Source

* cryptsetup demands running with uid=0 since v1.0.5

master
age 14 years ago
parent
commit
9fa6376672
  1. 12
      src/cryptobox/core/blockdevice.py
  2. 4
      src/cryptobox/core/container.py

12
src/cryptobox/core/blockdevice.py

@ -333,7 +333,10 @@ class Blockdevice:
shell = False,
stdout = subprocess.PIPE,
stderr = subprocess.PIPE,
args = [ prefs["Programs"]["cryptsetup"],
args = [
prefs["Programs"]["super"],
prefs["Programs"]["CryptoBoxRootActions"],
"program", "cryptsetup",
"--batch-mode", "isLuks", self.devnodes[0]])
proc.wait()
result = proc.returncode == 0
@ -532,8 +535,11 @@ class Blockdevice:
shell = False,
stdout = subprocess.PIPE,
stderr = subprocess.PIPE,
args = [ prefs["Programs"]["cryptsetup"],
"luksUUID", self.devnodes[0] ])
args = [
prefs["Programs"]["super"],
prefs["Programs"]["CryptoBoxRootActions"],
"program", "cryptsetup",
"luksUUID", self.devnodes[0] ])
(output, error) = proc.communicate()
except OSError, err_msg:
LOGGER.warning("Failed to call '%s' to determine UUID: %s" \

4
src/cryptobox/core/container.py

@ -306,7 +306,9 @@ class CryptoBoxContainer:
stdout = subprocess.PIPE,
stderr = subprocess.PIPE,
args = [
self.cbox.prefs["Programs"]["cryptsetup"],
self.cbox.prefs["Programs"]["super"],
self.cbox.prefs["Programs"]["CryptoBoxRootActions"],
"program", "cryptsetup",
"--batch-mode",
"luksDelKey",
self.get_device(),

Loading…
Cancel
Save