Bug 158023

Summary: Binaries have no SUID bits in FreeBSD-8.2-RELEASE-amd64-livefs.iso
Product: Base System Reporter: Eugene Grosbein <ports>
Component: miscAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me CC: qa
Priority: Normal    
Version: 8.2-STABLE   
Hardware: Any   
OS: Any   

Description Eugene Grosbein 2011-06-19 11:50:07 UTC
	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.

Fix: 

Unknown. It would be nice if next release have this problem fixed.
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.
Comment 1 patfbsd 2011-06-22 19:39:56 UTC
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.
Comment 2 Eugene Grosbein 2011-07-01 23:42:33 UTC
> 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
Comment 3 Eugene Grosbein 2012-04-23 15:46:58 UTC
Hi!

The problem is fixed in FreeBSD-8.3-RELEASE-amd64-livefs.iso
Please close this PR.

Eugene Grosbein
Comment 4 Alex Kozlov freebsd_committer freebsd_triage 2012-04-23 15:55:32 UTC
State Changed
From-To: open->closed

Fixed in 8.3 release.