From eugen@grosbein.pp.ru  Sun Jun 19 10:42:13 2011
Return-Path: <eugen@grosbein.pp.ru>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 611F0106564A
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 19 Jun 2011 10:42:13 +0000 (UTC)
	(envelope-from eugen@grosbein.pp.ru)
Received: from eg.sd.rdtc.ru (unknown [IPv6:2a03:3100:c:13::5])
	by mx1.freebsd.org (Postfix) with ESMTP id C6BA68FC0A;
	Sun, 19 Jun 2011 10:42:12 +0000 (UTC)
Received: from grosbein.pp.ru (188-123-32-240.rdtc.ru [188.123.32.240] (may be forged))
	by eg.sd.rdtc.ru (8.14.4/8.14.4) with ESMTP id p5JAg9iH066975;
	Sun, 19 Jun 2011 17:42:09 +0700 (NOVST)
	(envelope-from eugen@grosbein.pp.ru)
Received: from grosbein.pp.ru (localhost [127.0.0.1])
	by grosbein.pp.ru (8.14.4/8.14.4) with ESMTP id p5JAg5CA002599;
	Sun, 19 Jun 2011 17:42:06 +0700 (NOVST)
	(envelope-from eugen@grosbein.pp.ru)
Received: (from eugen@localhost)
	by grosbein.pp.ru (8.14.4/8.14.4/Submit) id p5JAg503002598;
	Sun, 19 Jun 2011 17:42:05 +0700 (NOVST)
	(envelope-from eugen)
Message-Id: <201106191042.p5JAg503002598@grosbein.pp.ru>
Date: Sun, 19 Jun 2011 17:42:05 +0700 (NOVST)
From: Eugene Grosbein <egrosbein@rdtc.ru>
Reply-To: Eugene Grosbein <eugen@grosbein.pp.ru>
To: FreeBSD-gnats-submit@freebsd.org
Cc: qa@freebsd.org
Subject: Binaries have no SUID bits in FreeBSD-8.2-RELEASE-amd64-livefs.iso
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         158023
>Category:       misc
>Synopsis:       Binaries have no SUID bits in FreeBSD-8.2-RELEASE-amd64-livefs.iso
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 19 10:50:07 UTC 2011
>Closed-Date:    Mon Apr 23 14:55:33 UTC 2012
>Last-Modified:  Mon Apr 23 14:55:33 UTC 2012
>Originator:     Eugene Grosbein
>Release:        FreeBSD 8.2-STABLE amd64
>Organization:
RDTC JSC
>Environment:
System: FreeBSD grosbein.pp.ru 8.2-STABLE FreeBSD 8.2-STABLE #0: Tue Jun 14 01:59:32 NOVST 2011 root@grosbein.pp.ru:/usr/local/obj/usr/local/src/sys/DADV i386

>Description:
	I'm trying to use FreeBSD-8.2-RELEASE-amd64-livefs.iso
	with additional configs (rc.conf etc.) to boot remote system from.
	Then I login using ssh and try to 'su' to root but it fails:
	/usr/bin/su in the image has no SUID bit.

>How-To-Repeat:

# md=`mdconfig -af FreeBSD-8.2-RELEASE-amd64-livefs.iso`
# mount_cd9660 /dev/$md /mnt/tmp
# ls -l /mnt/tmp/usr/bin/su
-r-xr-xr-x  1 root  wheel  16904 Feb 17 08:19 /mnt/tmp/usr/bin/su

	All other binaries that should normally have SUID/SGID
	do not have them too.

>Fix:

	Unknown. It would be nice if next release have this problem fixed.

>Release-Note:
>Audit-Trail:

From: Patrick Lamaiziere <patfbsd@davenulle.org>
To: freebsd-bugs@freebsd.org
Cc: bug-followup@FreeBSD.org <bug-followup@FreeBSD.org>
Subject: Re: misc/158023: Binaries have no SUID bits in
 FreeBSD-8.2-RELEASE-amd64-livefs.iso
Date: Wed, 22 Jun 2011 20:39:56 +0200

 Le Sun, 19 Jun 2011 17:42:05 +0700 (NOVST),
 Eugene Grosbein <egrosbein@rdtc.ru> a crit :
 
 Hello,
 
 > >Description:
 > 	I'm trying to use FreeBSD-8.2-RELEASE-amd64-livefs.iso
 > 	with additional configs (rc.conf etc.) to boot remote system
 > from. Then I login using ssh and try to 'su' to root but it fails:
 > 	/usr/bin/su in the image has no SUID bit.
 
 This is not a bug (it's a feature!). A cd9660 file system does not know
 anything about suid/sgid bits (and even group or owner). It is not a
 "unix like" file system.
 
 You can't avoid this behavior.
 
 Regards.

From: Eugene Grosbein <eugen@grosbein.pp.ru>
To: bug-followup@freebsd.org
Cc: Patrick Lamaiziere <patfbsd@davenulle.org>
Subject: Re: misc/158023: Binaries have no SUID bits in FreeBSD-8.2-RELEASE-amd64-livefs.iso
Date: Sat, 2 Jul 2011 05:42:33 +0700

 > This is not a bug (it's a feature!). A cd9660 file system does not know
 > anything about suid/sgid bits (and even group or owner). It is not a
 > "unix like" file system.
 > You can't avoid this behavior.
 
 Incorrect. Indeed, cd9660 does not know about files permissions
 but Rockridge extention to cd9660 does. And our mount_cd9660 uses
 Rockridge by default, so this bug is avoidable by using right permissions
 and Rockridge while generating image (mkisofs -R, not mkisofs -r).
 
 Eugene Grosbein

From: Eugene Grosbein <egrosbein@rdtc.ru>
To: bug-followup@FreeBSD.ORG
Cc:  
Subject: Re: misc/158023: Binaries have no SUID bits in FreeBSD-8.2-RELEASE-amd64-livefs.iso
Date: Mon, 23 Apr 2012 21:46:58 +0700

 Hi!
 
 The problem is fixed in FreeBSD-8.3-RELEASE-amd64-livefs.iso
 Please close this PR.
 
 Eugene Grosbein
State-Changed-From-To: open->closed 
State-Changed-By: ak 
State-Changed-When: Mon Apr 23 14:55:32 UTC 2012 
State-Changed-Why:  
Fixed in 8.3 release. 

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