qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [trivial PATCH 2.0 0/1] silence invalid cyrus-sasl warning on startup
@ 2014-03-14 14:39 Laszlo Ersek
  2014-03-14 14:39 ` [Qemu-devel] [trivial PATCH 2.0 1/1] sasl: Avoid 'Could not find keytab file' in syslog Laszlo Ersek
  0 siblings, 1 reply; 5+ messages in thread
From: Laszlo Ersek @ 2014-03-14 14:39 UTC (permalink / raw)
  To: Michael Tokarev, Cole Robinson, qemu-trivial, qemu-devel

Here's a patch that suits my mental capabilities on this
Friday afternoon.

Laszlo Ersek (1):
  sasl: Avoid 'Could not find keytab file' in syslog

 qemu.sasl | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

-- 
1.8.3.1

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Qemu-devel] [trivial PATCH 2.0 1/1] sasl: Avoid 'Could not find keytab file' in syslog
  2014-03-14 14:39 [Qemu-devel] [trivial PATCH 2.0 0/1] silence invalid cyrus-sasl warning on startup Laszlo Ersek
@ 2014-03-14 14:39 ` Laszlo Ersek
  2014-03-14 14:42   ` Cole Robinson
  0 siblings, 1 reply; 5+ messages in thread
From: Laszlo Ersek @ 2014-03-14 14:39 UTC (permalink / raw)
  To: Michael Tokarev, Cole Robinson, qemu-trivial, qemu-devel

The "keytab" specification in "qemu.sasl" only makes sense if "gssapi" is
selected in "mech_list". Even if the latter is not done (ie. "gssapi" is
not selected), the cyrus-sasl library tries to open the specified keytab
file, although nothing has a use for it outside the gssapi backend.

Since the default keytab file "/etc/qemu/krb5.tab" is usually absent, the
cyrus-sasl library emits a warning to syslog at startup, which tends to
annoy users (who didn't ask for gssapi in the first place).

Comment out the keytab specification per default.

"qemu-doc.texi" already correctly explains how to use "mech_list: gssapi"
together with "keytab:".

See also:
- upstream libvirt commit fe772f24,
- Red Hat Bugzilla <https://bugzilla.redhat.com/show_bug.cgi?id=1018434>.

Signed-off-by: Laszlo Ersek <lersek@redhat.com>
---
 qemu.sasl | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/qemu.sasl b/qemu.sasl
index 9dc8323..64fdef3 100644
--- a/qemu.sasl
+++ b/qemu.sasl
@@ -22,7 +22,9 @@ mech_list: digest-md5
 # Some older builds of MIT kerberos on Linux ignore this option &
 # instead need KRB5_KTNAME env var.
 # For modern Linux, and other OS, this should be sufficient
-keytab: /etc/qemu/krb5.tab
+#
+# There is no default value here, uncomment if you need this
+#keytab: /etc/qemu/krb5.tab
 
 # If using digest-md5 for username/passwds, then this is the file
 # containing the passwds. Use 'saslpasswd2 -a qemu [username]'
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] [trivial PATCH 2.0 1/1] sasl: Avoid 'Could not find keytab file' in syslog
  2014-03-14 14:39 ` [Qemu-devel] [trivial PATCH 2.0 1/1] sasl: Avoid 'Could not find keytab file' in syslog Laszlo Ersek
@ 2014-03-14 14:42   ` Cole Robinson
  2014-03-14 15:43     ` [Qemu-devel] [Qemu-trivial] " Michael Tokarev
  0 siblings, 1 reply; 5+ messages in thread
From: Cole Robinson @ 2014-03-14 14:42 UTC (permalink / raw)
  To: Laszlo Ersek, Michael Tokarev, qemu-trivial, qemu-devel

On 03/14/2014 10:39 AM, Laszlo Ersek wrote:
> The "keytab" specification in "qemu.sasl" only makes sense if "gssapi" is
> selected in "mech_list". Even if the latter is not done (ie. "gssapi" is
> not selected), the cyrus-sasl library tries to open the specified keytab
> file, although nothing has a use for it outside the gssapi backend.
> 
> Since the default keytab file "/etc/qemu/krb5.tab" is usually absent, the
> cyrus-sasl library emits a warning to syslog at startup, which tends to
> annoy users (who didn't ask for gssapi in the first place).
> 
> Comment out the keytab specification per default.
> 
> "qemu-doc.texi" already correctly explains how to use "mech_list: gssapi"
> together with "keytab:".
> 
> See also:
> - upstream libvirt commit fe772f24,
> - Red Hat Bugzilla <https://bugzilla.redhat.com/show_bug.cgi?id=1018434>.
> 
> Signed-off-by: Laszlo Ersek <lersek@redhat.com>
> ---
>  qemu.sasl | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/qemu.sasl b/qemu.sasl
> index 9dc8323..64fdef3 100644
> --- a/qemu.sasl
> +++ b/qemu.sasl
> @@ -22,7 +22,9 @@ mech_list: digest-md5
>  # Some older builds of MIT kerberos on Linux ignore this option &
>  # instead need KRB5_KTNAME env var.
>  # For modern Linux, and other OS, this should be sufficient
> -keytab: /etc/qemu/krb5.tab
> +#
> +# There is no default value here, uncomment if you need this
> +#keytab: /etc/qemu/krb5.tab
>  
>  # If using digest-md5 for username/passwds, then this is the file
>  # containing the passwds. Use 'saslpasswd2 -a qemu [username]'
> 

ACK, libvirt has carried a similar change in their sasl config for a while now.

- Cole

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] [Qemu-trivial] [trivial PATCH 2.0 1/1] sasl: Avoid 'Could not find keytab file' in syslog
  2014-03-14 14:42   ` Cole Robinson
@ 2014-03-14 15:43     ` Michael Tokarev
  2014-03-14 15:46       ` Cole Robinson
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Tokarev @ 2014-03-14 15:43 UTC (permalink / raw)
  To: Cole Robinson; +Cc: qemu-trivial, Laszlo Ersek, qemu-devel

14.03.2014 18:42, Cole Robinson wrote:
> On 03/14/2014 10:39 AM, Laszlo Ersek wrote:
[..]
>> Since the default keytab file "/etc/qemu/krb5.tab" is usually absent, the
>> cyrus-sasl library emits a warning to syslog at startup, which tends to
>> annoy users (who didn't ask for gssapi in the first place).
>>
>> Comment out the keytab specification per default.
>>
>> "qemu-doc.texi" already correctly explains how to use "mech_list: gssapi"
>> together with "keytab:".

Thanks, applied to the trivial patches queue...


> ACK, libvirt has carried a similar change in their sasl config for a while now.

Is that an "ACKed-by:" ? :)

Thanks,

/mjt

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] [Qemu-trivial] [trivial PATCH 2.0 1/1] sasl: Avoid 'Could not find keytab file' in syslog
  2014-03-14 15:43     ` [Qemu-devel] [Qemu-trivial] " Michael Tokarev
@ 2014-03-14 15:46       ` Cole Robinson
  0 siblings, 0 replies; 5+ messages in thread
From: Cole Robinson @ 2014-03-14 15:46 UTC (permalink / raw)
  To: Michael Tokarev; +Cc: qemu-trivial, Laszlo Ersek, qemu-devel

On 03/14/2014 11:43 AM, Michael Tokarev wrote:
> 14.03.2014 18:42, Cole Robinson wrote:
>> On 03/14/2014 10:39 AM, Laszlo Ersek wrote:
> [..]
>>> Since the default keytab file "/etc/qemu/krb5.tab" is usually absent, the
>>> cyrus-sasl library emits a warning to syslog at startup, which tends to
>>> annoy users (who didn't ask for gssapi in the first place).
>>>
>>> Comment out the keytab specification per default.
>>>
>>> "qemu-doc.texi" already correctly explains how to use "mech_list: gssapi"
>>> together with "keytab:".
> 
> Thanks, applied to the trivial patches queue...
> 
> 
>> ACK, libvirt has carried a similar change in their sasl config for a while now.
> 
> Is that an "ACKed-by:" ? :)
> 

Yep, sorry.

Acked-By: Cole Robinson <crobinso@redhat.com>

- Cole

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-03-14 15:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-14 14:39 [Qemu-devel] [trivial PATCH 2.0 0/1] silence invalid cyrus-sasl warning on startup Laszlo Ersek
2014-03-14 14:39 ` [Qemu-devel] [trivial PATCH 2.0 1/1] sasl: Avoid 'Could not find keytab file' in syslog Laszlo Ersek
2014-03-14 14:42   ` Cole Robinson
2014-03-14 15:43     ` [Qemu-devel] [Qemu-trivial] " Michael Tokarev
2014-03-14 15:46       ` Cole Robinson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).