<feed xmlns='http://www.w3.org/2005/Atom'>
<title>sssd.git/src/responder, branch token3</title>
<subtitle>System Security Services Daemon [okos' clone]</subtitle>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/okos/public_git/sssd.git/'/>
<entry>
<title>mmap_cache: Do not remove record from chain twice</title>
<updated>2013-09-09T11:57:27+00:00</updated>
<author>
<name>Lukas Slebodnik</name>
<email>lslebodn@redhat.com</email>
</author>
<published>2013-09-05T07:26:43+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/okos/public_git/sssd.git/commit/?id=27ea6c34e9d8a914b0aeebe9ca98eb65dea404d0'/>
<id>27ea6c34e9d8a914b0aeebe9ca98eb65dea404d0</id>
<content type='text'>
It is not very likely, that record will have the same hash1 and hash2, but it
is possible. In this situation, it does not make sense to remove record twice.

Function sss_mc_rm_rec_from_chain was not robust and sssd_nss could crash
in this situation. It was only possible if record was alone in chain.

Resolves:
https://fedorahosted.org/sssd/ticket/2049
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It is not very likely, that record will have the same hash1 and hash2, but it
is possible. In this situation, it does not make sense to remove record twice.

Function sss_mc_rm_rec_from_chain was not robust and sssd_nss could crash
in this situation. It was only possible if record was alone in chain.

Resolves:
https://fedorahosted.org/sssd/ticket/2049
</pre>
</div>
</content>
</entry>
<entry>
<title>Include sys/types.h for types id_t and uid_t</title>
<updated>2013-09-03T11:59:04+00:00</updated>
<author>
<name>Lukas Slebodnik</name>
<email>lslebodn@redhat.com</email>
</author>
<published>2013-08-30T21:19:11+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/okos/public_git/sssd.git/commit/?id=546f1e38fa7ec1d86dd44117dda45f456fb00d39'/>
<id>546f1e38fa7ec1d86dd44117dda45f456fb00d39</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>DP: Use the correct type for DBus boolean</title>
<updated>2013-08-28T17:28:22+00:00</updated>
<author>
<name>Jakub Hrozek</name>
<email>jhrozek@redhat.com</email>
</author>
<published>2013-08-26T14:47:58+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/okos/public_git/sssd.git/commit/?id=46c5deedec570bb5f99702a933ba99d76f9f09cb'/>
<id>46c5deedec570bb5f99702a933ba99d76f9f09cb</id>
<content type='text'>
https://fedorahosted.org/sssd/ticket/2057
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://fedorahosted.org/sssd/ticket/2057
</pre>
</div>
</content>
</entry>
<entry>
<title>NSS: Descend into subdomains if enumerate=true</title>
<updated>2013-08-28T16:08:42+00:00</updated>
<author>
<name>Jakub Hrozek</name>
<email>jhrozek@redhat.com</email>
</author>
<published>2013-08-21T14:27:50+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/okos/public_git/sssd.git/commit/?id=8b9fc71516a3da83b6e0e551ec0ad9aaa19bc7bc'/>
<id>8b9fc71516a3da83b6e0e551ec0ad9aaa19bc7bc</id>
<content type='text'>
Since we now store the enumerate flag in sysdb for subdomains, we can
always descend to all available subdomains and if they do not allow
enumeration, simply skip them.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since we now store the enumerate flag in sysdb for subdomains, we can
always descend to all available subdomains and if they do not allow
enumeration, simply skip them.
</pre>
</div>
</content>
</entry>
<entry>
<title>mmap_cache: Use stricter check for hash keys.</title>
<updated>2013-08-28T14:47:41+00:00</updated>
<author>
<name>Lukas Slebodnik</name>
<email>lslebodn@redhat.com</email>
</author>
<published>2013-08-19T05:24:46+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/okos/public_git/sssd.git/commit/?id=b8d0374cd23db90fce203292ff547641f62e338a'/>
<id>b8d0374cd23db90fce203292ff547641f62e338a</id>
<content type='text'>
ht_size is size of hash_table in bytes, but hash keys have type uint32_t
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
ht_size is size of hash_table in bytes, but hash keys have type uint32_t
</pre>
</div>
</content>
</entry>
<entry>
<title>mmap_cache: Skip records which doesn't have same hash</title>
<updated>2013-08-28T14:43:50+00:00</updated>
<author>
<name>Lukas Slebodnik</name>
<email>lslebodn@redhat.com</email>
</author>
<published>2013-08-19T03:39:28+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/okos/public_git/sssd.git/commit/?id=4662725ffef62b3b2502481438effa7c8fef9f80'/>
<id>4662725ffef62b3b2502481438effa7c8fef9f80</id>
<content type='text'>
The code uses 2 hashes for each record, but only one hash table to
index them both, furthermore each record has only one single 'next'
pointer.

This means that in certain conditions a record main end up being on a
hash chain even though its hashes do not match the hash chain. This can
happen when another record 'drags' it in from another hash chain where
they both belong.

If the record without matching hashes happens to be the second of the
chain and the first record is removed, then the non matching record is
left on the wrong chain. On removal of the non-matching record the hash
chain will not be updated and the hash chain will end up pointing to an
invalid slot.
This slot may be later reused for another record and may not be the
first slot of this new record. In this case the hash chain will point to
arbitrary data and may cause issues if the slot is interpreted as the
head of a record.

By skipping any block that has no matching hashes upon removing the
first record in a chain we insure that dangling references cannot be
left in the hash table

Resolves:
https://fedorahosted.org/sssd/ticket/2049
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The code uses 2 hashes for each record, but only one hash table to
index them both, furthermore each record has only one single 'next'
pointer.

This means that in certain conditions a record main end up being on a
hash chain even though its hashes do not match the hash chain. This can
happen when another record 'drags' it in from another hash chain where
they both belong.

If the record without matching hashes happens to be the second of the
chain and the first record is removed, then the non matching record is
left on the wrong chain. On removal of the non-matching record the hash
chain will not be updated and the hash chain will end up pointing to an
invalid slot.
This slot may be later reused for another record and may not be the
first slot of this new record. In this case the hash chain will point to
arbitrary data and may cause issues if the slot is interpreted as the
head of a record.

By skipping any block that has no matching hashes upon removing the
first record in a chain we insure that dangling references cannot be
left in the hash table

Resolves:
https://fedorahosted.org/sssd/ticket/2049
</pre>
</div>
</content>
</entry>
<entry>
<title>sss_packet_grow: correctly pad packet length to 512B</title>
<updated>2013-08-28T14:21:22+00:00</updated>
<author>
<name>Pavel Březina</name>
<email>pbrezina@redhat.com</email>
</author>
<published>2013-08-22T12:38:54+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/okos/public_git/sssd.git/commit/?id=3575235d62fa242d9a650ee54425f42b19533cb0'/>
<id>3575235d62fa242d9a650ee54425f42b19533cb0</id>
<content type='text'>
https://fedorahosted.org/sssd/ticket/2059

If len % SSSSRV_PACKET_MEM_SIZE == 0 or some low number,
we can end up with totlen &lt; len and return EINVAL.

It also does not pad the length, but usually allocates
much more memory than is desired.

len = 1024
n = 1024 % 512 + 1 = 0 + 1 = 1
totlen = 1 * 512 = 512
=&gt; totlen &lt; len

len = 511
n = 511 % 512 + 1 = 511 + 1
totlen = 512 * 512 = 262144
totlen is way bigger than it was supposed to be
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://fedorahosted.org/sssd/ticket/2059

If len % SSSSRV_PACKET_MEM_SIZE == 0 or some low number,
we can end up with totlen &lt; len and return EINVAL.

It also does not pad the length, but usually allocates
much more memory than is desired.

len = 1024
n = 1024 % 512 + 1 = 0 + 1 = 1
totlen = 1 * 512 = 512
=&gt; totlen &lt; len

len = 511
n = 511 % 512 + 1 = 511 + 1
totlen = 512 * 512 = 262144
totlen is way bigger than it was supposed to be
</pre>
</div>
</content>
</entry>
<entry>
<title>PAC: Skip SIDs that cannot be resolved to domain</title>
<updated>2013-08-26T09:49:17+00:00</updated>
<author>
<name>Jakub Hrozek</name>
<email>jhrozek@redhat.com</email>
</author>
<published>2013-08-25T13:22:36+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/okos/public_git/sssd.git/commit/?id=59a95122d6bf4e271e79443cfc8caab5831c2ae3'/>
<id>59a95122d6bf4e271e79443cfc8caab5831c2ae3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>PAC: use SID instead of GID to search for groups</title>
<updated>2013-08-26T09:44:42+00:00</updated>
<author>
<name>Sumit Bose</name>
<email>sbose@redhat.com</email>
</author>
<published>2013-08-08T16:29:48+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/okos/public_git/sssd.git/commit/?id=05cf2b70adde257df3657f449635c917b0e96a52'/>
<id>05cf2b70adde257df3657f449635c917b0e96a52</id>
<content type='text'>
With the support of POSIX IDs managed on the AD side we may find
non-POSIX groups, i.e. groups which do not have a GID assigned in AD, in
the PAC. Since in this case all cached groups have a SDI attribute it is
more reliable to search the groups by SID instead of GID.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
With the support of POSIX IDs managed on the AD side we may find
non-POSIX groups, i.e. groups which do not have a GID assigned in AD, in
the PAC. Since in this case all cached groups have a SDI attribute it is
more reliable to search the groups by SID instead of GID.
</pre>
</div>
</content>
</entry>
<entry>
<title>PAC: do not fail if a single group cannot be added/removed</title>
<updated>2013-08-26T09:44:42+00:00</updated>
<author>
<name>Sumit Bose</name>
<email>sbose@redhat.com</email>
</author>
<published>2013-08-08T14:56:06+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/okos/public_git/sssd.git/commit/?id=76916fe11832bcd84e033c0cc2329def278d642d'/>
<id>76916fe11832bcd84e033c0cc2329def278d642d</id>
<content type='text'>
When processing a list of groups we try to process as much as possible
only not stop on the first error.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When processing a list of groups we try to process as much as possible
only not stop on the first error.
</pre>
</div>
</content>
</entry>
</feed>
