Skip to contentSkip to conversation

policycoreutils/sandbox: Fix sandbox to propagate specified MCS/MLS Security Level.

PATCH Applied Miroslav Grepl 2 participants 2 messages Nov 14, 2015 – Nov 20, 2015 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 policycoreutils/sandbox: Fix sandbox to propagate specified MCS/MLS Security Level.

If "level" option is used to start sandbox commands, this level is not propagated to specified homedir and tmpdir directories. See rhbz #1279006.

---
 policycoreutils/sandbox/sandbox | 3 ---
 1 file changed, 3 deletions(-)
policycoreutils/sandbox/sandbox +0 -3
index 5109eca..163afa0 100644
@@ -406,9 +406,6 @@ sandbox [-h] [-l level ] [-[X|M] [-H homedir] [-T tempdir]] [-I includefile ] [-
            self.__execcon = "%s:%s:%s:%s" % (con[0], con[1], self.setype, level)
            self.__filecon = "%s:object_r:sandbox_file_t:%s" % (con[0], level)
     def __setup_dir(self):
-           if self.__options.level or self.__options.session:
-                  return
-
            if self.__options.homedir:
                   selinux.chcon(self.__options.homedir, self.__filecon, recursive=True)
                   self.__homedir = self.__options.homedir
Signature · 1 line
2.6.2
Applied
#1 lore raw
Quoted 4 lines · Miroslav Grepl

If "level" option is used to start sandbox commands, this level is not propagated to specified homedir and tmpdir directories. See rhbz #1279006.

Applied.

Thanks,
Jim

Quoted 19 lines
---
  policycoreutils/sandbox/sandbox | 3 ---
  1 file changed, 3 deletions(-)
policycoreutils/sandbox/sandbox +0 -3
index 5109eca..163afa0 100644
@@ -406,9 +406,6 @@ sandbox [-h] [-l level ] [-[X|M] [-H homedir] [-T tempdir]] [-I includefile ] [-
             self.__execcon = "%s:%s:%s:%s" % (con[0], con[1], self.setype, level)
             self.__filecon = "%s:object_r:sandbox_file_t:%s" % (con[0], level)
      def __setup_dir(self):
-           if self.__options.level or self.__options.session:
-                  return
-
             if self.__options.homedir:
                    selinux.chcon(self.__options.homedir, self.__filecon, recursive=True)
                    self.__homedir = self.__options.homedir
Signature · 2 lines
James Carter <[email protected]>
National Security Agency