Re: [PATCH] Include error messages when logging selinux context get/set failures.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/15/2009 02:13 PM, David Lehman wrote:

> @@ -616,8 +616,8 @@ def setFileContext(fn, con, instroot = '/'):
>      if con is not None and os.access(full_path, os.F_OK):
>          try:
>              rc = (selinux.lsetfilecon(full_path, con) == 0)
> -        except OSError:
> -            log.info("failed to set SELinux context for %s" % full_path)
> +        except OSError as e:
> +            log.info("failed to set SELinux context for %s: %s" % full_path, e))

missing open paren.

-- 
        Peter

When privacy is outlawed only outlaws will have privacy.
		-- Zimmermann

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux