Merge with upstream sources

This commit is contained in:
Ben Howard
2014-01-09 08:17:41 -07:00
10 changed files with 338 additions and 221 deletions

View File

@@ -170,6 +170,8 @@ class SeLinuxGuard(object):
def __exit__(self, excp_type, excp_value, excp_traceback):
if self.selinux and self.selinux.is_selinux_enabled():
path = os.path.realpath(os.path.expanduser(self.path))
# path should be a string, not unicode
path = str(path)
do_restore = False
try:
# See if even worth restoring??