<feed xmlns='http://www.w3.org/2005/Atom'>
<title>sssd.git/src/tools, branch memberof_default_view</title>
<subtitle>Unnamed repository; edit this file to name it for gitweb.</subtitle>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/sbose/public_git/sssd.git/'/>
<entry>
<title>sssctl: improve readability of a condition</title>
<updated>2016-07-13T10:08:04+00:00</updated>
<author>
<name>Pavel Březina</name>
<email>pbrezina@redhat.com</email>
</author>
<published>2016-07-13T08:41:00+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/sbose/public_git/sssd.git/commit/?id=aa691837a2fa2fe2e38a55d576644074e0f45bd8'/>
<id>aa691837a2fa2fe2e38a55d576644074e0f45bd8</id>
<content type='text'>
Reviewed-by: Fabiano Fidêncio &lt;fabiano@fidencio.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed-by: Fabiano Fidêncio &lt;fabiano@fidencio.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>sssctl: move filter creation to separate function</title>
<updated>2016-07-13T10:07:58+00:00</updated>
<author>
<name>Pavel Březina</name>
<email>pbrezina@redhat.com</email>
</author>
<published>2016-07-12T10:59:48+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/sbose/public_git/sssd.git/commit/?id=3c6e15e8aa38d9dfa02a7255fad56149bdfb35a6'/>
<id>3c6e15e8aa38d9dfa02a7255fad56149bdfb35a6</id>
<content type='text'>
Reviewed-by: Fabiano Fidêncio &lt;fabiano@fidencio.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed-by: Fabiano Fidêncio &lt;fabiano@fidencio.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>TOOLS: Prevent dereference of null pointer</title>
<updated>2016-07-12T12:23:32+00:00</updated>
<author>
<name>Lukas Slebodnik</name>
<email>lslebodn@redhat.com</email>
</author>
<published>2016-06-06T16:15:44+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/sbose/public_git/sssd.git/commit/?id=f9d3aec54d19a771a6eafe09ba6d445cc094bfae'/>
<id>f9d3aec54d19a771a6eafe09ba6d445cc094bfae</id>
<content type='text'>
VAR_CHECK is called with (var, EOK, ...)
EOK would be returned in case of "var != EOK"
and output argument _attrs would not be initialized.
Therefore there could be dereference of null pointer
after calling function usermod_build_attrs.

Reviewed-by: Pavel Březina &lt;pbrezina@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
VAR_CHECK is called with (var, EOK, ...)
EOK would be returned in case of "var != EOK"
and output argument _attrs would not be initialized.
Therefore there could be dereference of null pointer
after calling function usermod_build_attrs.

Reviewed-by: Pavel Březina &lt;pbrezina@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>sssctl: Fix warning maybe-uninitialized</title>
<updated>2016-07-12T09:57:57+00:00</updated>
<author>
<name>Lukas Slebodnik</name>
<email>lslebodn@redhat.com</email>
</author>
<published>2016-07-08T13:27:23+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/sbose/public_git/sssd.git/commit/?id=64d664c201916d8678b5f4bd7e1559c7ece9217d'/>
<id>64d664c201916d8678b5f4bd7e1559c7ece9217d</id>
<content type='text'>
It looks like some special gcc optimalisation and special case
may cause to have unitialized output argument _dom when return
code is EOK

src/tools/sssctl/sssctl_cache.c: In function ‘sssctl_print_object’:
src/tools/sssctl/sssctl_cache.c:491:8: error: ‘dom’ may be used
  uninitialized in this function [-Werror=maybe-uninitialized]
     if (dom == NULL) {
        ^
src/tools/sssctl/sssctl_cache.c:447:15: error: ‘entry’ may be used
  uninitialized in this function [-Werror=maybe-uninitialized]
     *_entry = talloc_steal(mem_ctx, entry);
               ^~~~~~~~~~~~
src/tools/sssctl/sssctl_cache.c:412:25: note: ‘entry’ was declared here
     struct sysdb_attrs *entry;
                         ^~~~~

Reviewed-by: Jakub Hrozek &lt;jhrozek@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It looks like some special gcc optimalisation and special case
may cause to have unitialized output argument _dom when return
code is EOK

src/tools/sssctl/sssctl_cache.c: In function ‘sssctl_print_object’:
src/tools/sssctl/sssctl_cache.c:491:8: error: ‘dom’ may be used
  uninitialized in this function [-Werror=maybe-uninitialized]
     if (dom == NULL) {
        ^
src/tools/sssctl/sssctl_cache.c:447:15: error: ‘entry’ may be used
  uninitialized in this function [-Werror=maybe-uninitialized]
     *_entry = talloc_steal(mem_ctx, entry);
               ^~~~~~~~~~~~
src/tools/sssctl/sssctl_cache.c:412:25: note: ‘entry’ was declared here
     struct sysdb_attrs *entry;
                         ^~~~~

Reviewed-by: Jakub Hrozek &lt;jhrozek@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>sssctl: Fix format string for size_t</title>
<updated>2016-07-12T09:57:57+00:00</updated>
<author>
<name>Lukas Slebodnik</name>
<email>lslebodn@redhat.com</email>
</author>
<published>2016-07-08T11:04:10+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/sbose/public_git/sssd.git/commit/?id=cca5695e6cab64def52c009afc8f055a85f1fde4'/>
<id>cca5695e6cab64def52c009afc8f055a85f1fde4</id>
<content type='text'>
src/tools/sssctl/sssctl_config.c: In function 'sssctl_config_check':
src/tools/sssctl/sssctl_config.c:93:14: warning: format '%lu' expects
  argument of type 'long unsigned int', but argument 2 has type
  'size_t {aka unsigned int}' [-Wformat=]
     printf(_("Issues identified by validators: %lu\n"), num_errors);
              ^
src/tools/sssctl/sssctl_config.c:93:12: note: in expansion of macro '_'
     printf(_("Issues identified by validators: %lu\n"), num_errors);
            ^
Reviewed-by: Jakub Hrozek &lt;jhrozek@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
src/tools/sssctl/sssctl_config.c: In function 'sssctl_config_check':
src/tools/sssctl/sssctl_config.c:93:14: warning: format '%lu' expects
  argument of type 'long unsigned int', but argument 2 has type
  'size_t {aka unsigned int}' [-Wformat=]
     printf(_("Issues identified by validators: %lu\n"), num_errors);
              ^
src/tools/sssctl/sssctl_config.c:93:12: note: in expansion of macro '_'
     printf(_("Issues identified by validators: %lu\n"), num_errors);
            ^
Reviewed-by: Jakub Hrozek &lt;jhrozek@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>sssctl: config-check access check report</title>
<updated>2016-07-11T10:07:07+00:00</updated>
<author>
<name>Michal Židek</name>
<email>mzidek@redhat.com</email>
</author>
<published>2016-07-07T13:43:11+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/sbose/public_git/sssd.git/commit/?id=9dc66cb6b96a885f7272a3c4aa6a44d60cdce82c'/>
<id>9dc66cb6b96a885f7272a3c4aa6a44d60cdce82c</id>
<content type='text'>
Improve output when access check error
is detected by sssctl config-check command.

Reviewed-by: Pavel Březina &lt;pbrezina@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Improve output when access check error
is detected by sssctl config-check command.

Reviewed-by: Pavel Březina &lt;pbrezina@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>sssctl: Fix error handling after memory allocation failure</title>
<updated>2016-07-11T10:03:13+00:00</updated>
<author>
<name>Lukas Slebodnik</name>
<email>lslebodn@redhat.com</email>
</author>
<published>2016-07-08T10:16:47+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/sbose/public_git/sssd.git/commit/?id=4b18d0c25471150940c1a552bc2504ff9debb703'/>
<id>4b18d0c25471150940c1a552bc2504ff9debb703</id>
<content type='text'>
Reviewed-by: Pavel Březina &lt;pbrezina@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed-by: Pavel Březina &lt;pbrezina@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>sssctl: Add config-check command</title>
<updated>2016-07-07T12:54:02+00:00</updated>
<author>
<name>Michal Židek</name>
<email>mzidek@redhat.com</email>
</author>
<published>2016-06-27T15:33:14+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/sbose/public_git/sssd.git/commit/?id=e088912418fd4db750f2097dfde8ef9b77303f05'/>
<id>e088912418fd4db750f2097dfde8ef9b77303f05</id>
<content type='text'>
Fixes:
https://fedorahosted.org/sssd/ticket/2269

sssctl sconfig-check command allows to
call SSSD config file validators on
demand.

Reviewed-by: Lukáš Slebodník &lt;lslebodn@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes:
https://fedorahosted.org/sssd/ticket/2269

sssctl sconfig-check command allows to
call SSSD config file validators on
demand.

Reviewed-by: Lukáš Slebodník &lt;lslebodn@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>TOOLS: Add the upgrade-cache command</title>
<updated>2016-07-07T08:30:23+00:00</updated>
<author>
<name>Jakub Hrozek</name>
<email>jhrozek@redhat.com</email>
</author>
<published>2016-07-01T11:27:17+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/sbose/public_git/sssd.git/commit/?id=552390afcc81af96ca201fa6c25ddefbbecbeb4e'/>
<id>552390afcc81af96ca201fa6c25ddefbbecbeb4e</id>
<content type='text'>
Allows to upgrade the cache using the sssctl tool, which might be useful
e.g. in RPM %post scripts.

Reviewed-by: Sumit Bose &lt;sbose@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Allows to upgrade the cache using the sssctl tool, which might be useful
e.g. in RPM %post scripts.

Reviewed-by: Sumit Bose &lt;sbose@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>TOOLS: Some tools command might not need initialization to succeed</title>
<updated>2016-07-07T08:30:18+00:00</updated>
<author>
<name>Jakub Hrozek</name>
<email>jhrozek@redhat.com</email>
</author>
<published>2016-07-01T11:26:38+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/sbose/public_git/sssd.git/commit/?id=a0b824ac01c6b58fe6055d48aa6e29e94219646d'/>
<id>a0b824ac01c6b58fe6055d48aa6e29e94219646d</id>
<content type='text'>
Since we want to use the sssctl tool during upgrade, we need to amend
the tools initialization code to not error out if sysdb can't be
instantiated, but rather return errno and let the tool handle the error.

Each tool command now has a 'allowed errno' the command is able to
handle. In this patch iteration, only a single errno can be handled and
only the upgrade command is able to do so.

Reviewed-by: Sumit Bose &lt;sbose@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since we want to use the sssctl tool during upgrade, we need to amend
the tools initialization code to not error out if sysdb can't be
instantiated, but rather return errno and let the tool handle the error.

Each tool command now has a 'allowed errno' the command is able to
handle. In this patch iteration, only a single errno can be handled and
only the upgrade command is able to do so.

Reviewed-by: Sumit Bose &lt;sbose@redhat.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
