aboutsummaryrefslogtreecommitdiff
path: root/ja/man/man8/fsirand.8
blob: f1894c0e185965aea61d19b0b203f58e7be31032 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
.\" Copyright (c) 1997 Todd C. Miller <Todd.Miller@courtesan.com>
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\"    notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\"    notice, this list of conditions and the following disclaimer in the
.\"    documentation and/or other materials provided with the distribution.
.\" 3. All advertising materials mentioning features or use of this software
.\"    must display the following acknowledgment:
.\"	This product includes software developed by Todd C. Miller.
.\" 4. The name of the author may not be used to endorse or promote products
.\"    derived from this software without specific prior written permission.
.\"
.\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
.\" INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
.\" AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL
.\" THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
.\" EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
.\" PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
.\" OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
.\" WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
.\" ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
.\"	$OpenBSD: fsirand.8,v 1.6 1997/02/23 03:58:26 millert Exp $
.\" %Id: fsirand.8,v 1.8 1998/06/30 06:18:43 charnier Exp %
.\" jpman %Id: fsirand.8,v 1.3 1997/09/08 07:26:22 kuma Stab %
.\"
.Dd January 25, 1997
.Dt FSIRAND 8
.Os
.Sh 名称
.Nm fsirand
.Nd inode 世代番号をランダム化する
.Sh 書式
.Nm fsirand
.Op Fl b
.Op Fl f
.Op Fl p
.Ar special
.Op Ar "special ..."
.Sh 解説
.Nm
コマンドは、コマンドラインにて
.Ar special
で指定したファイルシステム上の全ての inode に対し、
ランダムな世代番号を書き込みます。
これにより、ファイルハンドルを ``予測'' しにくくし、
NFS export したファイルシステムのセキュリティを向上させます。
.Pp
.Em 注 Ns :
現在
.Xr newfs 8
が
.Nm
と同等の処理を行うため、新規ファイルシステムに対し手動で
.Nm
を実行する必要は有りません。
用途は、
既存のファイルシステムを再びランダム化することか、
そこからレポートを得ることだけです。
.Pp
.Nm
は、アンマウントした後
.Xr fsck 8
にてチェックしたファイルシステムか、
リードオンリーにてマウントしたファイルシステムのみに適用すべきです。
.Nm
をシングルユーザモードにてルートファイルシステムに適用できますが、
その後システムを ``reboot -n'' にてリブートしなければなりません。
.Sh オプション
.Bl -tag -width indent
以下のオプションを使用可能です:
.It Fl b
ディスクラベルから得たブロックサイズではなく、
デフォルトのブロックサイズ(通常 512 バイト)を使用します。
.It Fl f
.Ar special
がクリーンとマークされていなくとも、
.Nm
を強制的に実行します。
.It Fl p
新たな世代番号を生成するのではなく、
全ての inode に対して現在の世代番号を表示します。
.Sh 警告
.Nm
はシリンダグループ中の全ての inode を保持できるだけの量のメモリを確保するため、
シリンダグループが少ない大きなディスクにおいては大量のメモリを消費する
可能性があります。
.Sh 関連項目
.Xr fs 5 ,
.Xr fsck 8 ,
.Xr newfs 8
.Sh 歴史
.Nm
コマンドは SunOS 3.x から登場しました。
.br
このバージョンの
.Nm
は
.Ox 2.1
から登場しました。
.Bx Free
のものは
.Fx 2.2.5
から登場しました。
.Sh 作者
.An Todd C. Miller Aq Todd.Miller@courtesan.com