Opened 17 years ago

Closed 17 years ago

#60 closed Defect (fixed)

Network connections are leaked to the applications

Reported by: KSMarksPsych Owned by: davea
Priority: Major Milestone: Undetermined
Component: Client - Daemon Version:
Keywords: Cc:

Description

Posted by: Date: 12:14 AM 12-18-2005 Boinc CC V 5.2.6 - 5.2.13 passes its open file descriptors on to the applications when the applications are started. This includes open network sockets and connections.

Proposed fix: Close all excess file descriptors after fork, before exec loads the application.

Posted by: Date: 1:54 AM 12-18-2005 set close-on-exec flag for descriptors in boinc_socket() and boinc_fopen(); hopefully this gets them all.

Posted by: Date: 12:26 AM 05-06-2006 This bug is still present in Boinc CC 5.4.9 See the attached output of lsof for the simap applikation. The application holds a descriptor to the socket for remote gui rpc and one for the aktive connection from BoincView? to the CC.

COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME simap_5.0 9563 stephan cwd DIR 3,3 4096 244864 /home/stephan/boinc/slots/0 simap_5.0 9563 stephan rtd DIR 3,3 4096 2 / simap_5.0 9563 stephan txt REG 3,3 1408483 244854 /home/stephan/boinc/projects/boinc.bio.wzw.tum.de_boincsimap/simap_5.07_i686-pc-linux-gnu simap_5.0 9563 stephan mem REG 0,0 0 [vdso] (stat: No such file or directory) simap_5.0 9563 stephan DEL REG 0,7 98304 /SYSV0003bc81 simap_5.0 9563 stephan 0u CHR 136,9 11 /dev/pts/9 simap_5.0 9563 stephan 1w REG 3,3 8142 244097 /home/stephan/boinc/stdoutdae.txt simap_5.0 9563 stephan 2w REG 3,3 0 244869 /home/stephan/boinc/slots/0/stderr.txt simap_5.0 9563 stephan 3w REG 3,3 0 244098 /home/stephan/boinc/lockfile simap_5.0 9563 stephan 4wW REG 3,3 0 244871 /home/stephan/boinc/slots/0/boinc_lockfile simap_5.0 9563 stephan 5u IPv4 25409 TCP *:xqosd (LISTEN) simap_5.0 9563 stephan 6u IPv4 25451 TCP tom.localdomain:xqosd->raptor.localdomain:gbs-smp (ESTABLISHED) simap_5.0 9563 stephan 7r FIFO 0,5 25541 pipe simap_5.0 9563 stephan 8w FIFO 0,5 25541 pipe simap_5.0 9563 stephan 9w REG 3,3 237245 244859 /home/stephan/boinc/projects/boinc.bio.wzw.tum.de_boincsimap/60420106.000918_3_0.tmp

Change History (1)

comment:1 Changed 17 years ago by davea

Resolution: fixed
Status: newclosed

All sockets are set to close-on-exec now (unix).

Note: See TracTickets for help on using tickets.