-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Stephen Smalley wrote: > On Tue, 2007-09-18 at 13:43 -0400, Joshua Brindle wrote: >> Stephen Smalley wrote: >>> On Tue, 2007-09-18 at 13:09 -0400, Joshua Brindle wrote: >>> >>>> Daniel J Walsh wrote: >>>> >>>>> -----BEGIN PGP SIGNED MESSAGE----- >>>>> Hash: SHA1 >>>>> >>>>> Current behavior causes problems with network applications. >>>>> >>>>> https://bugzilla.redhat.com/show_bug.cgi?id=273081 >>>>> >>>>> >>>> Wait, what? >>>> >>>> I don't think it is an improvement to call the command line matchpathcon >>>> applications and have the logs go somewhere not visible by the user. IMO >>>> we should take the same approach libsemanage and libsepol did where the >>>> logging callbacks can be overridden by specific users of the library but >>>> for the command line applications the output still goes to stderr. >>>> >>> You already can override the callback (set_matchpathcon_printf), but the >>> claim in the bug report is that isn't usable from a library function >>> that calls matchpathcon because it doesn't know whether it has already >>> been set by the application. >>> >> Hrm... so the alternative is to send it to syslog? I don't buy it. Can >> we just add an interface to see if the default callbacks have been >> overridden? > > Yep. And it should be based on the newer interfaces. There is already > a selinux_set_callback() and adding a selinux_get_callback() should be > trivial. setfiles is already rewritten to use the new interfaces in > trunk, and we should be moving everything off of matchpathcon and onto > selabel_lookup. > > For RHEL 5, I suppose there might be a matchpathcon-specific interface > for getting the callback. > I would still prefer the default not to spew to stdout where an admin might not see it or it might not get caught to using syslog. Updated diff to include changing matchpathcon the exec udev/install/mkinitrd/kerberos libraries and probably a few others are using this interface. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFG8C0LrlYvE4MpobMRApKVAKCx3bLTKq8pDe+rgARw6DdUo7O0wACgr5Cn isUZTJ4Dh8jifv0uXaZ4xWI= =HciW -----END PGP SIGNATURE-----