<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nx-libs/nxcomp/Pipe.cpp, branch 3.6.x</title>
<subtitle>NXv3 (redistributed) 
</subtitle>
<id>https://openid.arctica-project.org/nx-libs/atom?h=3.6.x</id>
<link rel='self' href='https://openid.arctica-project.org/nx-libs/atom?h=3.6.x'/>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/'/>
<updated>2017-07-26T08:12:43+00:00</updated>
<entry>
<title>nxcomp: Switch to autoreconf.</title>
<updated>2017-07-26T08:12:43+00:00</updated>
<author>
<name>Mike Gabriel</name>
<email>mike.gabriel@das-netzwerkteam.de</email>
</author>
<published>2017-06-30T18:13:51+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=f76c82403888bb498973ec974dbfd20e4edb02fe'/>
<id>urn:sha1:f76c82403888bb498973ec974dbfd20e4edb02fe</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Per-file copyright notices: Update copyright information in file headers that NoMachine placed there own copyright statement in.</title>
<updated>2016-07-05T23:07:24+00:00</updated>
<author>
<name>Mike Gabriel</name>
<email>mike.gabriel@das-netzwerkteam.de</email>
</author>
<published>2016-07-05T14:22:51+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=51c3d42f3d15b181d58a0df1e5abac8d298d4484'/>
<id>urn:sha1:51c3d42f3d15b181d58a0df1e5abac8d298d4484</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Clean up compiler warnings in nxcomp</title>
<updated>2016-04-27T10:46:00+00:00</updated>
<author>
<name>Fernando Carvajal</name>
<email>fcarvajal@qindel.com</email>
</author>
<published>2016-04-25T10:53:00+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=a436cba04834da945d4a2be5335d1d7e95c6bf08'/>
<id>urn:sha1:a436cba04834da945d4a2be5335d1d7e95c6bf08</id>
<content type='text'>
This commit removes several warnings in nxcomp related to unused but
set variables. It also replaces tempnam function with the more secure
one mkstemp and there has been removed another warning related to
setgid and setuid returning values not being checked.

So these were the compiler warnings in nxcomp that have been fixed:

Loop.cpp: In function ‘int ParseRemoteOptions(char*)’:
Loop.cpp:9423:7: warning: variable ‘hasLimit’ set but not used [-Wunused-but-set-variable]
   int hasLimit  = 0;
       ^
Loop.cpp:9424:7: warning: variable ‘hasRender’ set but not used [-Wunused-but-set-variable]
   int hasRender = 0;
       ^
Loop.cpp:9425:7: warning: variable ‘hasTaint’ set but not used [-Wunused-but-set-variable]
   int hasTaint  = 0;
       ^
Loop.cpp:9427:7: warning: variable ‘hasStrict’ set but not used [-Wunused-but-set-variable]
   int hasStrict = 0;
       ^
Loop.cpp:9428:7: warning: variable ‘hasShseg’ set but not used [-Wunused-but-set-variable]
   int hasShseg  = 0;
       ^
ServerChannel.cpp: In member function ‘virtual int ServerChannel::handleWrite(const unsigned char*, unsigned int)’:
ServerChannel.cpp:2132:9: warning: variable ‘hit’ set but not used [-Wunused-but-set-variable]
     int hit;
         ^
Proxy.o: In function `Proxy::handleSaveAllStores(char const*) const':
Proxy.cpp:(.text+0x2cac): warning: the use of `tempnam' is dangerous, better use `mkstemp'

Pipe.cpp: In function ‘FILE* Popen(char* const*, const char*)’:
Pipe.cpp:240:23: warning: ignoring return value of ‘int setgid(__gid_t)’,
declared with attribute warn_unused_result [-Wunused-result]
       setgid(getgid());
                       ^
Pipe.cpp:241:23: warning: ignoring return value of ‘int setuid(__uid_t)’,
declared with attribute warn_unused_result [-Wunused-result]
       setuid(getuid());
                       ^

There was also a hidden problem in the way Proxy::handleSaveAllStores was
checking for an error in the returning value from the call to the virtual
method handleSaveAllStores of the specific proxy class really being used
(ClientProxy or ServerProxy).

Former code was considering the value 0 as the returning value in case of
an error whereas both subclasses return the value -1 when there is an error
in their handleSaveAllStores method.

This bug has been fixed in this commit taking advantage of the modification
that was already being made to this method in order to replace tempnam
function with the more secure one mkstemp.

Fixes: ArcticaProject/nx-libs#103
</content>
</entry>
<entry>
<title>Be compliant with POS36-C: Observe correct revocation order while relinquishing privileges (602_nx-X11_initgroups.full.patch).</title>
<updated>2015-02-13T12:32:17+00:00</updated>
<author>
<name>Orion Poplawski</name>
<email>orion@cora.nwra.com</email>
</author>
<published>2015-02-13T12:32:17+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=415b20b6fbf562d4132fca90a00b6c32d94040ed'/>
<id>urn:sha1:415b20b6fbf562d4132fca90a00b6c32d94040ed</id>
<content type='text'>
  The Fedora review of NX (redistributed) caught the following rpmlint issue:

  This executable is calling setuid and setgid without setgroups or initgroups.
  There is a high probability this mean it didn't relinquish all groups, and this
  would be a potential security issue to be fixed. Seek POS36-C on the web for
  details about the problem.

  Ref POS36-C:
  https://www.securecoding.cert.org/confluence/display/seccode/POS36-C.+Observe+correct+revocation+order+while+relinquishing+privileges

  This patch adds initgroups() calls to the code to initialize the supplemental group list.
</content>
</entry>
<entry>
<title>Imported nxcomp-3.4.0-6.tar.gz</title>
<updated>2011-11-13T08:27:53+00:00</updated>
<author>
<name>Reinhard Tartler</name>
<email>siretart@tauware.de</email>
</author>
<published>2011-11-13T08:27:53+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=477961678194817aaf1aaf3602f1c91d288a539d'/>
<id>urn:sha1:477961678194817aaf1aaf3602f1c91d288a539d</id>
<content type='text'>
Summary: Imported nxcomp-3.4.0-6.tar.gz
Keywords:

Imported nxcomp-3.4.0-6.tar.gz
into Git repository
</content>
</entry>
<entry>
<title>Imported nxcomp-3.4.0-1.tar.gz</title>
<updated>2011-11-13T08:27:52+00:00</updated>
<author>
<name>Reinhard Tartler</name>
<email>siretart@tauware.de</email>
</author>
<published>2011-11-13T08:27:52+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=799bf672a3588f205bd18ef39d9908069e0cd6d5'/>
<id>urn:sha1:799bf672a3588f205bd18ef39d9908069e0cd6d5</id>
<content type='text'>
Summary: Imported nxcomp-3.4.0-1.tar.gz
Keywords:

Imported nxcomp-3.4.0-1.tar.gz
into Git repository
</content>
</entry>
<entry>
<title>Imported nxcomp-3.1.0-4.tar.gz</title>
<updated>2011-11-13T08:27:51+00:00</updated>
<author>
<name>Reinhard Tartler</name>
<email>siretart@tauware.de</email>
</author>
<published>2011-11-13T08:27:51+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=3e924126b56c4d421e8263d25f6b14aa4ceed047'/>
<id>urn:sha1:3e924126b56c4d421e8263d25f6b14aa4ceed047</id>
<content type='text'>
Summary: Imported nxcomp-3.1.0-4.tar.gz
Keywords:

Imported nxcomp-3.1.0-4.tar.gz
into Git repository
</content>
</entry>
</feed>
