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 Tue, 2009-12-15 at 14:14 -0500, Peter Jones wrote:
> 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))

Amended commit locally to add opening paren before full_path in above
line.

Dave

_______________________________________________
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