From schilling@fokus.gmd.de  Thu Aug 10 06:41:54 2000
Return-Path: <schilling@fokus.gmd.de>
Received: from mailhub.fokus.gmd.de (mailhub.fokus.gmd.de [193.174.154.14])
	by hub.freebsd.org (Postfix) with ESMTP id 6CFCC37BDBC
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 10 Aug 2000 06:41:52 -0700 (PDT)
	(envelope-from schilling@fokus.gmd.de)
Received: from fokus.gmd.de (scotty [193.175.135.70])
	by mailhub.fokus.gmd.de (8.8.8/8.8.8) with ESMTP id PAA28425
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 10 Aug 2000 15:41:49 +0200 (MET DST)
Received: (from jes@localhost)
	by fokus.gmd.de (8.9.3/8.9.3) id PAA47738;
	Thu, 10 Aug 2000 15:41:49 +0200 (CEST)
	(envelope-from jes)
Message-Id: <200008101341.PAA47738@fokus.gmd.de>
Date: Thu, 10 Aug 2000 15:41:49 +0200 (CEST)
From: Joerg Schilling <schilling@fokus.gmd.de>
Reply-To: schilling@fokus.gmd.de
To: FreeBSD-gnats-submit@freebsd.org
Subject: /etc/rmt several problems
X-Send-Pr-Version: 3.2

>Number:         20521
>Category:       bin
>Synopsis:       rmt(8) /etc/rmt several problems
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 10 06:50:01 PDT 2000
>Closed-Date:    
>Last-Modified:  Mon May 07 03:48:58 UTC 2012
>Originator:     Joerg Schilling
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
GMD Fokus
>Environment:

	

>Description:

There are several problems with /etc/rmt:

open modes are not masked with 3 to make sure that no bits are used that
differ between different OS.

The answer for the 'S' command (get status) limits the size of the answer to 24 bytes.
This is not a secure decision:
	the size of the original structure has been 1 bytes

	All rmt clients - except the one found in star-1.3a7 and newer die from getting
	too much data.

	If you do not count Linux and byte order problems only the first two entries
	in struct mtget are binary portable between systems.

>How-To-Repeat:

	

>Fix:

	Try to switch to the rmt server that comes with star-1.3a7 and newer.
	NOTE: star-1.3a7 will be released in a few days.

	Also make sure that the FreeBSD rmt clients (e.g. dump ...) do not die
	from getting too much data with the get status command.
	The correct method would be to fetch as much data as available and only
	copy as much as the local struct mtget holds.



>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->mjacob 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Thu Aug 10 07:04:37 PDT 2000 
Responsible-Changed-Why:  
Over to the author of rev 1.7 of rmt.c. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20521 
State-Changed-From-To: open->feedback 
State-Changed-By: linimon 
State-Changed-When: Thu Aug 26 02:35:11 GMT 2004 
State-Changed-Why:  
With bugmeister hat on, reassign from inactive committer. 


Responsible-Changed-From-To: mjacob->freebsd-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu Aug 26 02:35:11 GMT 2004 
Responsible-Changed-Why:  
Is this still a problem with modern versions of FreeBSD? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20521 
Responsible-Changed-From-To: freebsd-bugs->mjacob 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu Aug 26 06:05:08 GMT 2004 
Responsible-Changed-Why:  
mjacob has reactived his commit bit.  mea culpa for the bogus reassignment. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20521 

Adding to audit trail from personal email received by linimon:

From: Joerg Schilling <schilling@fokus.fraunhofer.de>
Date: Thu, 26 Aug 2004 13:46:21 +0200
I cannot see anything related to these problems in the change log.

I would propose that FreeBSD switches to the rmt server from star.
This rmt server supports the RMT V1 protocol and additional abstractrions
from me that help to deal better with binary incompatibility in
e.g. Linux RMT client code.


J\xf6rg

State-Changed-From-To: feedback->suspended 
State-Changed-By: linimon 
State-Changed-When: Mon Mar 21 06:37:13 GMT 2005 
State-Changed-Why:  
With bugmeister hat on, note that feedback was received some time 
ago but the PR does not appear to being actively worked on. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20521 
Responsible-Changed-From-To: mjacob->freebsd-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sat Aug 4 12:12:23 UTC 2007 
Responsible-Changed-Why:  
Assignee has turned in his commit bit, so return to pool. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20521 
State-Changed-From-To: suspended->open 
State-Changed-By: eadler 
State-Changed-When: Mon May 7 03:48:56 UTC 2012 
State-Changed-Why:  
suspended is not appropriate for real bugs 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20521 
>Unformatted:
