[PATCH v2 08/10] sandbox/sandbox: shred the correct directory
Stephen Smalley <[email protected]>
| Newsgroups | org.kernel.vger.selinux |
|---|---|
| Message-ID | <[email protected]> |
The shred tmpdir branch had a cut-and-paste from the homedir branch; fix it to shred the tmpdir as expected. Signed-off-by: Stephen Smalley <[email protected]> --- sandbox/sandbox | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sandbox/sandbox b/sandbox/sandbox index 3368a95b..8c15d659 100644 --- a/sandbox/sandbox +++ b/sandbox/sandbox @@ -530,7 +530,7 @@ sandbox [-h] [-l level ] [-[X|M] [-H homedir] [-T tempdir]] [-I includefile ] [- shutil.rmtree(self.__homedir) if self.__tmpdir and not self.__options.tmpdir: if self.__options.shred: - self.shred(self.__homedir) + self.shred(self.__tmpdir) shutil.rmtree(self.__tmpdir) def shred(self, path): -- 2.55.0