Jump to content 日本-日本語
日本HPホーム 製品とサービス サポートとドライバ ソリューション ご購入方法
≫ お問い合わせ
日本HPホーム
企業ユーザ向けサポート情報   >  HP-UX サポート  >  セキュリティ報告&パッチダイジェスト翻訳版

PHCO_36662 s700_800 11.23 rm(1)累積パッチ

企業ユーザ向けサポート情報

HP-UX サポート
Tru64 サポート
OpenVMS サポート
セキュリティ報告&パッチダイジェスト翻訳版
技術情報ツリー
ソフトウェアアップデート情報
ITRC日本フォーラム

ITRC

パッチデータベース
技術情報ベースの検索
サポートケースマネージャ
ソフトウェア アップデート マネージャ (SUM)
ご利用の手順
日本HPサイトマップ
コンテンツに進む
パッチ名:   PHCO_36662

パッチ摘要: s700_800 11.23 rm(1)累積パッチ

作成日:  07/09/07

公開日:  07/09/18

ハードウェアプラットフォームおよびOSリリース:

	s700: 11.23
	s800: 11.23

現象:

	PHCO_36662:

	(SR:8606485381 CR:JAGag38374)
	ディレクトリのパーミッションが不十分なためディレクトリの削除に失敗して
	も、"rm(1) -r"が成功値を返します。

問題点の説明:

	PHCO_36662:

	(SR:8606485381 CR:JAGag38374)
	所有者の検索パーミッションが設定されていないディレクトリに対して"rm(1)
	 -r"を実行すると、rm(1)は、非ゼロの戻り値ではなく0の戻り値で終了してい
	ました。

	解決方法:
	パーミッションが不十分なためディレクトリを削除できなかった場合は、終了
	値2でリターンするようにrm(1)を修正しました。

-----------------------------------------------------------------------------
Patch Name: PHCO_36662

Patch Description: s700_800 11.23 rm(1) cumulative patch

Creation Date: 07/09/07

Post Date: 07/09/18

Hardware Platforms - OS Releases: 
	s700: 11.23
	s800: 11.23

Products: N/A

Filesets: 
	OS-Core.UX-CORE,fr=B.11.23,fa=HP-UX_B.11.23_IA/PA,v=HP
	OS-Core.UX2-CORE,fr=B.11.23,fa=HP-UX_B.11.23_IA,v=HP
	OS-Core.UX2-CORE,fr=B.11.23,fa=HP-UX_B.11.23_PA,v=HP

Automatic Reboot?: No

Status: General Release

Critical: 
	No (superseded patches were critical)
	PHCO_31637: ABORT

Category Tags: 
	defect_repair general_release critical halts_system

Path Name: /hp-ux_patches/s700_800/11.X/PHCO_36662

Symptoms: 
	PHCO_36662:
	( SR:8606485381 CR:JAGag38374 )
	rm(1) -r returns success even when directory permissions
	caused it to fail.

	PHCO_35369:
	( SR:8606424905 CR:JAGaf84425 )
	rm(1) -r fails to remove directories specified with
	absolute path when current working directory is unreadable.

	PHCO_31637:
	( SR:8606363161 CR:JAGaf23824 )
	rm -r dumps core under certain circumstances.

Defect Description: 
	PHCO_36662:
	( SR:8606485381 CR:JAGag38374 )
	When rm(1) -r is issued on a directory which doesn't have
	search permissions for the owner, rm(1) exits with a
	return value of 0, instead of a return value of non zero.

	Resolution:
	rm(1) is modified to return with an exit value of 2 when
	it fails to remove a directory due to insufficient
	permissions.

	PHCO_35369:
	( SR:8606424905 CR:JAGaf84425 )
	When rm(1) -r is attempted on a absolute path from a
	unreadable current working directory rm(1) aborts and
	throws error message as "Cannot remove mountable directory."
	It can be reproduced as follows:-
	# whoami
	root
	# mkdir /var/tmp/to_be_removed
	# chown lp:lp /var/tmp/to_be_removed
	# mkdir /var/tmp/restricted; chmod 700 /var/tmp/restricted
	# cd /var/tmp/restricted; su lp
	# whoami
	lp
	# rm -r /var/tmp/to_be_removed
	rm: directory /var/tmp/to_be_removed not removed.
	Cannot remove mountable directory
	# ls -d /var/tmp/to_be_removed
	/var/tmp/to_be_removed
	# rmdir /var/tmp/to_be_removed
	# ls -d /var/tmp/to_be_removed
	/var/tmp/to_be_removed not found

	The error message "Cannot remove mountable directory" is
	misleading.

	Resolution:
	This defect in rm(1) is fixed by checking if current working
	directory is readable before attempting the rm(1) operation
	on specified directory. If current working directory is
	unreadable then, current working directory is changed to "/"
	before attempting rm operation on the specified absolute
	path.

	The error message is changed to give better information.

	PHCO_31637:
	( SR:8606363161 CR:JAGaf23824 )
	When rm -r is invoked on some directory, under
	certain circumstances, rm(1) dumps core. This is
	happening while creating the absolute path name
	of the directory to be removed. While creating
	the absolute path name, the available memory space
	in the buffer was being calculated incorrectly
	resulting in a array bound write and core dump.
	Problem Reproduction:
	# cat test.sh
	#!/bin/sh
	cd /tmp
	while read a
	do
	  mkdir $a
	  /usr/bin/rm -r $a
	  mkdir $a
	  cd $a
	done << !!
	opt
	stdenv
	tetlite
	vsc
	tet_tmp_dir
	18579aa
	tset
	POSIX.sdo
	ar
	_ga67_dir18580
	0xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\
	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\
	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\
	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\
	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\
	xxxxxxxxxx
	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\
	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\
	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\
	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\
	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\
	xxxxxxxxxx
	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\
	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\
	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\
	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\
	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\
	xxxxxxxxxx
	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\
	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\
	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\
	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\
	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
	!!
	# chmod +x test.sh
	# ./test.sh
	mkdir: cannot create opt: File exists
	./test.sh[8]: 12269 Memory fault(coredump)
	mkdir: cannot create xxxxxxxxxxxxxxxxxxxxxxxx....
	File exists

	Resolution:
	While creating the absolute path name,
	the available memory space in the buffer
	is now being calculated correctly.

Enhancement: 
	No

SR: 
	8606485381 8606424905 8606363161

Patch Files: 
	
	OS-Core.UX-CORE,fr=B.11.23,fa=HP-UX_B.11.23_IA/PA,v=HP:
	/usr/lib/nls/msg/C/rm.cat

	OS-Core.UX2-CORE,fr=B.11.23,fa=HP-UX_B.11.23_IA,v=HP:
	/usr/bin/rm
	/sbin/rm
	/usr/bin/rmdir

	OS-Core.UX2-CORE,fr=B.11.23,fa=HP-UX_B.11.23_PA,v=HP:
	/usr/bin/rm
	/sbin/rm
	/usr/bin/rmdir

what(1) Output: 
	
	OS-Core.UX-CORE,fr=B.11.23,fa=HP-UX_B.11.23_IA/PA,v=HP:
	/usr/lib/nls/msg/C/rm.cat:
		None

	OS-Core.UX2-CORE,fr=B.11.23,fa=HP-UX_B.11.23_IA,v=HP:
	/usr/bin/rm:
		rm.c $Date: 2007/05/30 14:21:32 $Revision: r11.23/2 
			PATCH_11.23 (PHCO_36662)
		walkfs.c $Date: 2006/09/05 17:46:18 $Revision: r11.2
			3/2 PATCH_11.23 (PHCO_35369)
		$Revision: jazz @ 20070907.09:22:43PDT; jmkvw -proj 
			integ -RW PHCO_36662 r11.23(R11.23_BL2007_09
			07_1) ;
	/sbin/rm:
		rm.c $Date: 2007/05/30 14:21:32 $Revision: r11.23/2 
			PATCH_11.23 (PHCO_36662)
		walkfs.c $Date: 2006/09/05 17:46:18 $Revision: r11.2
			3/2 PATCH_11.23 (PHCO_35369)
		$Revision: jazz @ 20070907.09:22:48PDT; jmkvw -proj 
			integ -RW PHCO_36662 r11.23(R11.23_BL2007_09
			07_1) ;
	/usr/bin/rmdir:
		rm.c $Date: 2007/05/30 14:21:32 $Revision: r11.23/2 
			PATCH_11.23 (PHCO_36662)
		walkfs.c $Date: 2006/09/05 17:46:18 $Revision: r11.2
			3/2 PATCH_11.23 (PHCO_35369)
		$Revision: jazz @ 20070907.09:22:43PDT; jmkvw -proj 
			integ -RW PHCO_36662 r11.23(R11.23_BL2007_09
			07_1) ;

	OS-Core.UX2-CORE,fr=B.11.23,fa=HP-UX_B.11.23_PA,v=HP:
	/usr/bin/rm:
		$Revision: 92453-07 linker linker crt0.o B.11.16.01 
			030415 $
		rm.c $Date: 2007/05/30 14:21:32 $Revision: r11.23/2 
			PATCH_11.23 (PHCO_36662)
		$Revision: jazz @ 20070907.09:23:00PDT; jmkvw -proj 
			integ -RW PHCO_36662 r11.23(R11.23_BL2007_09
			07_1) ;
		walkfs.c $Date: 2006/09/05 17:46:18 $Revision: r11.2
			3/2 PATCH_11.23 (PHCO_35369)
	/sbin/rm:
		$Revision: 92453-07 linker linker crt0.o B.11.16.01 
			030415 $
		rm.c $Date: 2007/05/30 14:21:32 $Revision: r11.23/2 
			PATCH_11.23 (PHCO_36662)
		$Revision: jazz @ 20070907.09:23:04PDT; jmkvw -proj 
			integ -RW PHCO_36662 r11.23(R11.23_BL2007_09
			07_1) ;
		walkfs.c $Date: 2006/09/05 17:46:18 $Revision: r11.2
			3/2 PATCH_11.23 (PHCO_35369)
		$ B.11.23  Sep  6 2007 00:12:33 $
	/usr/bin/rmdir:
		$Revision: 92453-07 linker linker crt0.o B.11.16.01 
			030415 $
		rm.c $Date: 2007/05/30 14:21:32 $Revision: r11.23/2 
			PATCH_11.23 (PHCO_36662)
		$Revision: jazz @ 20070907.09:23:00PDT; jmkvw -proj 
			integ -RW PHCO_36662 r11.23(R11.23_BL2007_09
			07_1) ;
		walkfs.c $Date: 2006/09/05 17:46:18 $Revision: r11.2
			3/2 PATCH_11.23 (PHCO_35369)

cksum(1) Output: 
	
	OS-Core.UX-CORE,fr=B.11.23,fa=HP-UX_B.11.23_IA/PA,v=HP:
	1791744332 1224 /usr/lib/nls/msg/C/rm.cat

	OS-Core.UX2-CORE,fr=B.11.23,fa=HP-UX_B.11.23_IA,v=HP:
	3112837409 75164 /usr/bin/rm
	1081687845 640868 /sbin/rm
	3112837409 75164 /usr/bin/rmdir

	OS-Core.UX2-CORE,fr=B.11.23,fa=HP-UX_B.11.23_PA,v=HP:
	184261209 49152 /usr/bin/rm
	80985862 425984 /sbin/rm
	184261209 49152 /usr/bin/rmdir

Patch Conflicts: None

Patch Dependencies: None

Hardware Dependencies: None

Other Dependencies: None

Supersedes: 
	PHCO_35369 PHCO_31637

Equivalent Patches: 
	PHCO_36661:
	s700: 11.11
	s800: 11.11

Patch Package Size: 490 KBytes

Installation Instructions: 
	Please review all instructions and the Hewlett-Packard
	SupportLine User Guide or your Hewlett-Packard support terms
	and conditions for precautions, scope of license,
	restrictions, and, limitation of liability and warranties,
	before installing this patch.
	------------------------------------------------------------
	1. Back up your system before installing a patch.

	2. Login as root.

	3. Copy the patch to the /tmp directory.

	4. Move to the /tmp directory and unshar the patch:

		cd /tmp
		sh PHCO_36662

	5. Run swinstall to install the patch:

		swinstall -x autoreboot=true -x patch_match_target=true \
			  -s /tmp/PHCO_36662.depot

	By default swinstall will archive the original software in 
	/var/adm/sw/save/PHCO_36662.  If you do not wish to retain a
	copy of the original software, include the patch_save_files
	option in the swinstall command above:

		-x patch_save_files=false

	WARNING: If patch_save_files is false when a patch is installed,
		 the patch cannot be deinstalled.  Please be careful
		 when using this feature.

	For future reference, the contents of the PHCO_36662.text file is 
	available in the product readme:

		swlist -l product -a readme -d @ /tmp/PHCO_36662.depot

	To put this patch on a magnetic tape and install from the
	tape drive, use the command:

		dd if=/tmp/PHCO_36662.depot of=/dev/rmt/0m bs=2k

Special Installation Instructions: None

ページトップへ
セキュリティ報告&パッチダイジェスト翻訳版に戻る
プライバシー 本サイト利用時の合意事項 ウェブマスターに連絡
© 2008 Hewlett-Packard Development Company, L.P.