<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/targetcli.git/targetcli, branch master</title>
<subtitle>github.com: agrover/targetcli-fb.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/targetcli.git/'/>
<entry>
<title>Fix changing savedir directory mode</title>
<updated>2023-04-24T17:34:39+00:00</updated>
<author>
<name>Lee Duncan</name>
<email>lduncan@suse.com</email>
</author>
<published>2023-04-24T17:34:39+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/targetcli.git/commit/?id=b8eb1933d4fdcbe806edead8cfa94879d0fc2015'/>
<id>b8eb1933d4fdcbe806edead8cfa94879d0fc2015</id>
<content type='text'>
Commit 9f5764dac39b ("saveconfig: set right perms on /etc/target/ dir")
fixed CVE-2020-13867 by ensuring that the mode of the target
meta-data directory (/etc/target) was always mode 0600. But users
can specify a different directory, such as "/tmp", and we don't
want targetcli changing the mode of such directories to 0600. So
only change the mode of the directory, when saving a config file,
if the directory is /etc/target.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Commit 9f5764dac39b ("saveconfig: set right perms on /etc/target/ dir")
fixed CVE-2020-13867 by ensuring that the mode of the target
meta-data directory (/etc/target) was always mode 0600. But users
can specify a different directory, such as "/tmp", and we don't
want targetcli changing the mode of such directories to 0600. So
only change the mode of the directory, when saving a config file,
if the directory is /etc/target.
</pre>
</div>
</content>
</entry>
<entry>
<title>version 2.1.54</title>
<updated>2021-03-04T12:51:22+00:00</updated>
<author>
<name>Maurizio Lombardi</name>
<email>mlombard@redhat.com</email>
</author>
<published>2021-03-04T12:51:22+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/targetcli.git/commit/?id=033cf1c2d34c73cce84c4c12c7383188167bf9e5'/>
<id>033cf1c2d34c73cce84c4c12c7383188167bf9e5</id>
<content type='text'>
Signed-off-by: Maurizio Lombardi &lt;mlombard@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Maurizio Lombardi &lt;mlombard@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>fileio backstore: fix sparse file creation</title>
<updated>2020-11-23T18:02:58+00:00</updated>
<author>
<name>Maurizio Lombardi</name>
<email>mlombard@redhat.com</email>
</author>
<published>2020-11-13T10:44:40+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/targetcli.git/commit/?id=3176671662bda79d4b4059b8cc22b4b31a6547e0'/>
<id>3176671662bda79d4b4059b8cc22b4b31a6547e0</id>
<content type='text'>
fallocate() can't be used to create sparse files because it
actually preallocates all the disk space that will be used by the file
backstore, sparse files do not have preallocated disk space
by definition.
We must therefore use ftruncate().

We can, on the other hand, use fallocate() to create non-sparse
files and fall back to the slower "while() fwrite()" if we
are running on Python version &lt; 3.3 where fallocate() is not available

Fixes 3bd4d8ef7c9b154c53e8b8dd863a570bce7f5c2c

Signed-off-by: Maurizio Lombardi &lt;mlombard@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
fallocate() can't be used to create sparse files because it
actually preallocates all the disk space that will be used by the file
backstore, sparse files do not have preallocated disk space
by definition.
We must therefore use ftruncate().

We can, on the other hand, use fallocate() to create non-sparse
files and fall back to the slower "while() fwrite()" if we
are running on Python version &lt; 3.3 where fallocate() is not available

Fixes 3bd4d8ef7c9b154c53e8b8dd863a570bce7f5c2c

Signed-off-by: Maurizio Lombardi &lt;mlombard@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>version 2.1.53</title>
<updated>2020-06-24T08:14:04+00:00</updated>
<author>
<name>Maurizio Lombardi</name>
<email>mlombard@redhat.com</email>
</author>
<published>2020-06-24T08:14:04+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/targetcli.git/commit/?id=ff7766b737c0868ae2579da49f2e8304f40767ee'/>
<id>ff7766b737c0868ae2579da49f2e8304f40767ee</id>
<content type='text'>
Signed-off-by: Maurizio Lombardi &lt;mlombard@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Maurizio Lombardi &lt;mlombard@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>saveconfig: set right perms on /etc/target/ dir</title>
<updated>2020-06-01T06:58:50+00:00</updated>
<author>
<name>Prasanna Kumar Kalever</name>
<email>prasanna.kalever@redhat.com</email>
</author>
<published>2020-05-29T10:06:27+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/targetcli.git/commit/?id=9f5764dac39b5b75ee6b5d9e4db419d09d64b898'/>
<id>9f5764dac39b5b75ee6b5d9e4db419d09d64b898</id>
<content type='text'>
Signed-off-by: Prasanna Kumar Kalever &lt;prasanna.kalever@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Prasanna Kumar Kalever &lt;prasanna.kalever@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>saveconfig: set right perms on backup dir</title>
<updated>2020-06-01T06:39:08+00:00</updated>
<author>
<name>Prasanna Kumar Kalever</name>
<email>prasanna.kalever@redhat.com</email>
</author>
<published>2020-05-29T09:35:35+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/targetcli.git/commit/?id=3bdef6d1aa1f64c03816af68bd5fb2bd1bbb29be'/>
<id>3bdef6d1aa1f64c03816af68bd5fb2bd1bbb29be</id>
<content type='text'>
Signed-off-by: Prasanna Kumar Kalever &lt;prasanna.kalever@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Prasanna Kumar Kalever &lt;prasanna.kalever@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>saveconfig: set 0o600 perms on backupfiles</title>
<updated>2020-06-01T06:19:49+00:00</updated>
<author>
<name>Prasanna Kumar Kalever</name>
<email>prasanna.kalever@redhat.com</email>
</author>
<published>2020-05-29T09:21:28+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/targetcli.git/commit/?id=1940a17986deaab92e6be395f20ee55dac0ac2bd'/>
<id>1940a17986deaab92e6be395f20ee55dac0ac2bd</id>
<content type='text'>
Signed-off-by: Prasanna Kumar Kalever &lt;prasanna.kalever@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Prasanna Kumar Kalever &lt;prasanna.kalever@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>version 2.1.52</title>
<updated>2020-05-11T11:14:43+00:00</updated>
<author>
<name>Maurizio Lombardi</name>
<email>mlombard@redhat.com</email>
</author>
<published>2020-05-11T11:14:43+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/targetcli.git/commit/?id=bab9fc16236c4aceade31e95327bc7b493bb157a'/>
<id>bab9fc16236c4aceade31e95327bc7b493bb157a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>daemonized-mode: add interactive shell support</title>
<updated>2020-04-06T17:51:30+00:00</updated>
<author>
<name>Prasanna Kumar Kalever</name>
<email>prasanna.kalever@redhat.com</email>
</author>
<published>2020-04-03T07:31:06+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/targetcli.git/commit/?id=b60c74594abf6cf681ff8eaa348059c5348399e9'/>
<id>b60c74594abf6cf681ff8eaa348059c5348399e9</id>
<content type='text'>
set interactive mode as default to make it appear similar to cli approach,

$ targetcli
targetcli shell version 2.1.51
Entering targetcli interactive mode for daemonized approach.
Type 'exit' to quit.

/&gt; pwd
/
/&gt; cd /iscsi
/&gt; pwd
/iscsi
/&gt; exit

Here we introduce a new global option daemon_use_batch_mode for switching between
batch and interactive modes.

$ targetcli set global daemon_use_batch_mode=true
Parameter daemon_use_batch_mode is now 'true'.

$ targetcli
targetcli shell version 2.1.51
Entering targetcli batch mode for daemonized approach.
Enter multiple commands separated by newline and type 'exit' to run them
all in one go.

/&gt; pwd
/&gt; cd /iscsi
/&gt; pwd
/
/iscsi

Fixes: #160
Signed-off-by: Prasanna Kumar Kalever &lt;prasanna.kalever@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
set interactive mode as default to make it appear similar to cli approach,

$ targetcli
targetcli shell version 2.1.51
Entering targetcli interactive mode for daemonized approach.
Type 'exit' to quit.

/&gt; pwd
/
/&gt; cd /iscsi
/&gt; pwd
/iscsi
/&gt; exit

Here we introduce a new global option daemon_use_batch_mode for switching between
batch and interactive modes.

$ targetcli set global daemon_use_batch_mode=true
Parameter daemon_use_batch_mode is now 'true'.

$ targetcli
targetcli shell version 2.1.51
Entering targetcli batch mode for daemonized approach.
Enter multiple commands separated by newline and type 'exit' to run them
all in one go.

/&gt; pwd
/&gt; cd /iscsi
/&gt; pwd
/
/iscsi

Fixes: #160
Signed-off-by: Prasanna Kumar Kalever &lt;prasanna.kalever@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>version 2.1.51</title>
<updated>2019-11-06T12:31:26+00:00</updated>
<author>
<name>Maurizio Lombardi</name>
<email>mlombard@redhat.com</email>
</author>
<published>2019-11-06T12:31:26+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/targetcli.git/commit/?id=06076aba7e9e9bd4a1e84bac61e85265e8075b8e'/>
<id>06076aba7e9e9bd4a1e84bac61e85265e8075b8e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
