<feed xmlns='http://www.w3.org/2005/Atom'>
<title>samba.git/source3/utils/sharesec.c, branch master</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/'/>
<entry>
<title>s3: talloc_destroy() -&gt; TALLOC_FREE()</title>
<updated>2025-11-10T13:29:30+00:00</updated>
<author>
<name>Volker Lendecke</name>
<email>vl@samba.org</email>
</author>
<published>2025-10-17T12:39:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=38b76366888ab366c6ea13382f93b443cbee1e8e'/>
<id>38b76366888ab366c6ea13382f93b443cbee1e8e</id>
<content type='text'>
Sweeping change, I know. Should not change compiled code in most
cases, the compiler should be smart enough to elide the assignment
right before a return. In the cases where this is not right before the
return, TALLOC_FREE() is safer as it makes use-after-free crash.

Signed-off-by: Volker Lendecke &lt;vl@samba.org&gt;
Reviewed-by: Anoop C S &lt;anoopcs@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Sweeping change, I know. Should not change compiled code in most
cases, the compiler should be smart enough to elide the assignment
right before a return. In the cases where this is not right before the
return, TALLOC_FREE() is safer as it makes use-after-free crash.

Signed-off-by: Volker Lendecke &lt;vl@samba.org&gt;
Reviewed-by: Anoop C S &lt;anoopcs@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>sharesec: Check if share exists in configuration</title>
<updated>2025-01-10T10:45:30+00:00</updated>
<author>
<name>Vinit Agnihotri</name>
<email>vagnihot@redhat.com</email>
</author>
<published>2024-12-03T05:51:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=1410803713440caf29a40aec30516489d1944665'/>
<id>1410803713440caf29a40aec30516489d1944665</id>
<content type='text'>
Load config from registry without share info and check if sharename
exists from configuration. This results into lesser delay for the same.

In case of view we load config with all shares to ensure we get all
shares for diplay purpose.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15780

Signed-off-by: Vinit Agnihotri &lt;vagnihot@redhat.com&gt;
Reviewed-by: John Mulligan &lt;jmulligan@samba.org&gt;
Reviewed-by: Guenther Deschner &lt;gd@samba.org&gt;

Autobuild-User(master): Günther Deschner &lt;gd@samba.org&gt;
Autobuild-Date(master): Fri Jan 10 10:45:30 UTC 2025 on atb-devel-224
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Load config from registry without share info and check if sharename
exists from configuration. This results into lesser delay for the same.

In case of view we load config with all shares to ensure we get all
shares for diplay purpose.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15780

Signed-off-by: Vinit Agnihotri &lt;vagnihot@redhat.com&gt;
Reviewed-by: John Mulligan &lt;jmulligan@samba.org&gt;
Reviewed-by: Guenther Deschner &lt;gd@samba.org&gt;

Autobuild-User(master): Günther Deschner &lt;gd@samba.org&gt;
Autobuild-Date(master): Fri Jan 10 10:45:30 UTC 2025 on atb-devel-224
</pre>
</div>
</content>
</entry>
<entry>
<title>sharesec: Add function to check existence of share from config</title>
<updated>2025-01-10T09:46:32+00:00</updated>
<author>
<name>Vinit Agnihotri</name>
<email>vagnihot@redhat.com</email>
</author>
<published>2024-12-03T05:49:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=78eb293e1cdd3635de0bcf46ffb9d842f27bcc9f'/>
<id>78eb293e1cdd3635de0bcf46ffb9d842f27bcc9f</id>
<content type='text'>
Add function to detect if a share name exists in the registry or config file.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15780

Signed-off-by: Vinit Agnihotri &lt;vagnihot@redhat.com&gt;
Reviewed-by: John Mulligan &lt;jmulligan@samba.org&gt;
Reviewed-by: Guenther Deschner &lt;gd@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add function to detect if a share name exists in the registry or config file.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15780

Signed-off-by: Vinit Agnihotri &lt;vagnihot@redhat.com&gt;
Reviewed-by: John Mulligan &lt;jmulligan@samba.org&gt;
Reviewed-by: Guenther Deschner &lt;gd@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>sharesec: Fix warning frame not freed in order</title>
<updated>2025-01-10T09:46:32+00:00</updated>
<author>
<name>Vinit Agnihotri</name>
<email>vagnihot@redhat.com</email>
</author>
<published>2024-12-12T13:35:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=04531e1b1d25d114c470922547bee769b07e5e60'/>
<id>04531e1b1d25d114c470922547bee769b07e5e60</id>
<content type='text'>
This change should fix following warning:
Freed frame ../../source3/utils/sharesec.c:515, expected ../../source3/utils/sharesec.c:637

Frame was not getting freed in case of servicename is NULL.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15780

Signed-off-by: Vinit Agnihotri &lt;vagnihot@redhat.com&gt;
Reviewed-by: John Mulligan &lt;jmulligan@samba.org&gt;
Reviewed-by: Guenther Deschner &lt;gd@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This change should fix following warning:
Freed frame ../../source3/utils/sharesec.c:515, expected ../../source3/utils/sharesec.c:637

Frame was not getting freed in case of servicename is NULL.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15780

Signed-off-by: Vinit Agnihotri &lt;vagnihot@redhat.com&gt;
Reviewed-by: John Mulligan &lt;jmulligan@samba.org&gt;
Reviewed-by: Guenther Deschner &lt;gd@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>s3:util:sharesec ace_compare() uses NUMERIC_CMP()</title>
<updated>2024-04-10T22:56:33+00:00</updated>
<author>
<name>Douglas Bagnall</name>
<email>douglas.bagnall@catalyst.net.nz</email>
</author>
<published>2024-04-04T01:08:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=e35d54fd4d381df67ab9b4f8390e2109b2142678'/>
<id>e35d54fd4d381df67ab9b4f8390e2109b2142678</id>
<content type='text'>
ace-&gt;access_mask is uint32_t, so can overflow a signed int.
This would be easy to trigger, as it is a flags field rather than an
allocation count.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15625

Signed-off-by: Douglas Bagnall &lt;douglas.bagnall@catalyst.net.nz&gt;
Reviewed-by: Andrew Bartlett &lt;abartlet@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
ace-&gt;access_mask is uint32_t, so can overflow a signed int.
This would be easy to trigger, as it is a flags field rather than an
allocation count.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15625

Signed-off-by: Douglas Bagnall &lt;douglas.bagnall@catalyst.net.nz&gt;
Reviewed-by: Andrew Bartlett &lt;abartlet@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>s3:utils: Call gfree_all() before exit in sharesec</title>
<updated>2023-10-25T22:23:37+00:00</updated>
<author>
<name>Andreas Schneider</name>
<email>asn@samba.org</email>
</author>
<published>2023-10-24T10:00:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=d7a8e63f1db629614e4672dec8f9e51251981f36'/>
<id>d7a8e63f1db629614e4672dec8f9e51251981f36</id>
<content type='text'>
Signed-off-by: Andreas Schneider &lt;asn@samba.org&gt;
Reviewed-by: Andrew Bartlett &lt;abartlet@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Andreas Schneider &lt;asn@samba.org&gt;
Reviewed-by: Andrew Bartlett &lt;abartlet@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>s3:utils: Use lpcfg_set_cmdline() in sharesec</title>
<updated>2023-08-23T08:27:30+00:00</updated>
<author>
<name>Pavel Kalugin</name>
<email>pkalugin@inno.tech</email>
</author>
<published>2023-08-07T04:20:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=6c00718f3de8a86ac659e07b98c1c85773e76fd0'/>
<id>6c00718f3de8a86ac659e07b98c1c85773e76fd0</id>
<content type='text'>
Signed-off-by: Pavel Kalugin &lt;pkalugin@inno.tech&gt;
Reviewed-by: Andreas Schneider &lt;asn@samba.org&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Pavel Kalugin &lt;pkalugin@inno.tech&gt;
Reviewed-by: Andreas Schneider &lt;asn@samba.org&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>sharesec: don't ignore unknown options</title>
<updated>2021-09-10T15:10:30+00:00</updated>
<author>
<name>Ralph Boehme</name>
<email>slow@samba.org</email>
</author>
<published>2021-09-10T05:11:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=5a2b4ba059809a1e16124bf448a9398822fe5c80'/>
<id>5a2b4ba059809a1e16124bf448a9398822fe5c80</id>
<content type='text'>
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14828

Signed-off-by: Ralph Boehme &lt;slow@samba.org&gt;
Reviewed-by: Stefan Metzmacher &lt;metze@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14828

Signed-off-by: Ralph Boehme &lt;slow@samba.org&gt;
Reviewed-by: Stefan Metzmacher &lt;metze@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>s3:utils: Migrate sharesec to new cmdline option parser</title>
<updated>2021-05-25T00:23:37+00:00</updated>
<author>
<name>Andreas Schneider</name>
<email>asn@samba.org</email>
</author>
<published>2021-01-13T12:40:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=b41a0cd199dfc0e67664026b90ba3b5cb87e5c23'/>
<id>b41a0cd199dfc0e67664026b90ba3b5cb87e5c23</id>
<content type='text'>
Signed-off-by: Andreas Schneider &lt;asn@samba.org&gt;
Reviewed-by: Andrew Bartlett &lt;abartlet@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Andreas Schneider &lt;asn@samba.org&gt;
Reviewed-by: Andrew Bartlett &lt;abartlet@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>s3:utils: Remove '-V' for '--viewsddl' from sharesec</title>
<updated>2021-05-25T00:23:37+00:00</updated>
<author>
<name>Andreas Schneider</name>
<email>asn@samba.org</email>
</author>
<published>2021-01-18T08:02:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=4f81d8459a48aecf6d342045caa1531234f4f87f'/>
<id>4f81d8459a48aecf6d342045caa1531234f4f87f</id>
<content type='text'>
The '-V' is already used for '-V|--version' in the common options.

Signed-off-by: Andreas Schneider &lt;asn@samba.org&gt;
Reviewed-by: Andrew Bartlett &lt;abartlet@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The '-V' is already used for '-V|--version' in the common options.

Signed-off-by: Andreas Schneider &lt;asn@samba.org&gt;
Reviewed-by: Andrew Bartlett &lt;abartlet@samba.org&gt;
</pre>
</div>
</content>
</entry>
</feed>
