Skip to content

Commit ea1b552

Browse files
stefanbergersrajiv
authored andcommitted
Add man pages for the NVRAM area tools
This patch adds man pages for the NVRAM area tools. The man pages are written in the more readable pod format (plain old documentation; from perl package) and translated to the troff format using 'pod2man'. A rule is added to the Makefile.am to generate man pages from more recent pod files. v3: - Adding text to tpm_nvread/tpm_nvwrite man pages about read and write sizes of 0 bytes v2: - adapted man pages to changes in the tools Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
1 parent c188b0d commit ea1b552

11 files changed

+1438
-1
lines changed

‎man/man8/Makefile.am

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,16 @@
2121
# http://www.opensource.org/licenses/cpl1.0.php.
2222
#
2323

24+
man8_PODS =
25+
26+
if TSS_LIB_IS_12
27+
man8_PODS += tpm_nvdefine.pod \
28+
tpm_nvinfo.pod \
29+
tpm_nvread.pod \
30+
tpm_nvrelease.pod \
31+
tpm_nvwrite.pod
32+
endif
33+
2434
man8_MANS = tpm_changeownerauth.8 \
2535
tpm_clear.8 \
2636
tpm_createek.8 \
@@ -32,10 +42,17 @@ man8_MANS = tpm_changeownerauth.8 \
3242
tpm_setenable.8 \
3343
tpm_setownable.8 \
3444
tpm_setpresence.8 \
35-
tpm_takeownership.8
45+
tpm_takeownership.8 \
46+
$(addsuffix .8,$(basename $(man8_PODS)))
3647

3748
if TSS_LIB_IS_12
3849
man8_MANS+=tpm_revokeek.8 tpm_setoperatorauth.8 tpm_resetdalock.8
3950
endif
4051

4152
EXTRA_DIST = $(man8_MANS)
53+
54+
%.8 : %.pod
55+
@pod2man -r "TPM Management" \
56+
-c "" \
57+
-n $(basename $@) \
58+
--section=8 $< > $@

‎man/man8/tpm_nvdefine.8

Lines changed: 245 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,245 @@
1+
.\" Automatically generated by Pod::Man 2.23 (Pod::Simple 3.14)
2+
.\"
3+
.\" Standard preamble:
4+
.\" ========================================================================
5+
.de Sp \" Vertical space (when we can't use .PP)
6+
.if t .sp .5v
7+
.if n .sp
8+
..
9+
.de Vb \" Begin verbatim text
10+
.ft CW
11+
.nf
12+
.ne \\$1
13+
..
14+
.de Ve \" End verbatim text
15+
.ft R
16+
.fi
17+
..
18+
.\" Set up some character translations and predefined strings. \*(-- will
19+
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
20+
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
21+
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
22+
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
23+
.\" nothing in troff, for use with C<>.
24+
.tr \(*W-
25+
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
26+
.ie n \{\
27+
. ds -- \(*W-
28+
. ds PI pi
29+
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
30+
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
31+
. ds L" ""
32+
. ds R" ""
33+
. ds C` ""
34+
. ds C' ""
35+
'br\}
36+
.el\{\
37+
. ds -- \|\(em\|
38+
. ds PI \(*p
39+
. ds L" ``
40+
. ds R" ''
41+
'br\}
42+
.\"
43+
.\" Escape single quotes in literal strings from groff's Unicode transform.
44+
.ie \n(.g .ds Aq \(aq
45+
.el .ds Aq '
46+
.\"
47+
.\" If the F register is turned on, we'll generate index entries on stderr for
48+
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
49+
.\" entries marked with X<> in POD. Of course, you'll have to process the
50+
.\" output yourself in some meaningful fashion.
51+
.ie \nF \{\
52+
. de IX
53+
. tm Index:\\$1\t\\n%\t"\\$2"
54+
..
55+
. nr % 0
56+
. rr F
57+
.\}
58+
.el \{\
59+
. de IX
60+
..
61+
.\}
62+
.\"
63+
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
64+
.\" Fear. Run. Save yourself. No user-serviceable parts.
65+
. \" fudge factors for nroff and troff
66+
.if n \{\
67+
. ds #H 0
68+
. ds #V .8m
69+
. ds #F .3m
70+
. ds #[ \f1
71+
. ds #] \fP
72+
.\}
73+
.if t \{\
74+
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
75+
. ds #V .6m
76+
. ds #F 0
77+
. ds #[ \&
78+
. ds #] \&
79+
.\}
80+
. \" simple accents for nroff and troff
81+
.if n \{\
82+
. ds ' \&
83+
. ds ` \&
84+
. ds ^ \&
85+
. ds , \&
86+
. ds ~ ~
87+
. ds /
88+
.\}
89+
.if t \{\
90+
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
91+
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
92+
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
93+
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
94+
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
95+
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
96+
.\}
97+
. \" troff and (daisy-wheel) nroff accents
98+
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
99+
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
100+
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
101+
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
102+
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
103+
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
104+
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
105+
.ds ae a\h'-(\w'a'u*4/10)'e
106+
.ds Ae A\h'-(\w'A'u*4/10)'E
107+
. \" corrections for vroff
108+
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
109+
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
110+
. \" for low resolution devices (crt and lpr)
111+
.if \n(.H>23 .if \n(.V>19 \
112+
\{\
113+
. ds : e
114+
. ds 8 ss
115+
. ds o a
116+
. ds d- d\h'-1'\(ga
117+
. ds D- D\h'-1'\(hy
118+
. ds th \o'bp'
119+
. ds Th \o'LP'
120+
. ds ae ae
121+
. ds Ae AE
122+
.\}
123+
.rm #[ #] #H #V #F C
124+
.\" ========================================================================
125+
.\"
126+
.IX Title "tpm_nvdefine 8"
127+
.TH tpm_nvdefine 8 "2011-07-07" "TPM Management" ""
128+
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
129+
.\" way too many mistakes in technical documents.
130+
.if n .ad l
131+
.nh
132+
.SH "NAME"
133+
tpm_nvdefine
134+
.SH "SYNOPSIS"
135+
.IX Header "SYNOPSIS"
136+
\&\fBtpm_nvdefine [\s-1OPTIONS\s0]\fR
137+
.SH "DESCRIPTION"
138+
.IX Header "DESCRIPTION"
139+
\&\fBtpm_nvdefine\fR defines a new \s-1NVRAM\s0 area at the given index and of given
140+
size. The user has to provide the permissions that control access to
141+
the \s-1NVRAM\s0 area.
142+
.PP
143+
Owner authentication is necessary once the \s-1NVRAM\s0 area 0xFFFFFFFF has been
144+
defined. The owner password may be provided on the command line using
145+
the owner password option.
146+
.PP
147+
The following options are supported:
148+
.IP "\fB\-h, \-\-help\fR" 4
149+
.IX Item "-h, --help"
150+
Display command usage info.
151+
.IP "\fB\-v, \-\-version\fR" 4
152+
.IX Item "-v, --version"
153+
Display command version info.
154+
.IP "\fB\-l, \-\-log [none|error|info|debug]\fR" 4
155+
.IX Item "-l, --log [none|error|info|debug]"
156+
Set logging level.
157+
.IP "\fB\-u, \-\-unicode\fR" 4
158+
.IX Item "-u, --unicode"
159+
Use \s-1TSS\s0 \s-1UNICODE\s0 encoding for passwords to comply with applications
160+
using \s-1TSS\s0 popup boxes
161+
.IP "\fB\-y, \-\-owner\-well\-known\fR" 4
162+
.IX Item "-y, --owner-well-known"
163+
Use a secret of all zeros (20 bytes of zeros) as the owner's secret.
164+
.IP "\fB\-z, \-\-area\-well\-known\fR" 4
165+
.IX Item "-z, --area-well-known"
166+
Use a secret of all zeros (20 bytes of zeros) as the \s-1NVRAM\s0 area's secret.
167+
.IP "\fB\-o, \-\-pwdo\fR (optional parameter)" 4
168+
.IX Item "-o, --pwdo (optional parameter)"
169+
The owner password.
170+
.Sp
171+
A password may be directly provided for example by using '\-\-pwdo=password' or
172+
\&'\-opassword'. If no password is provided with this option then the program will
173+
prompt the user for the password.
174+
.IP "\fB\-a, \-\-pwda\fR (optional parameter)" 4
175+
.IX Item "-a, --pwda (optional parameter)"
176+
The \s-1NVRAM\s0 area password.
177+
.Sp
178+
A password may be directly provided for example by using '\-\-pwda=password' or
179+
\&'\-apassword'. If no password is provided with this option then the program will
180+
prompt the user for the password.
181+
.IP "\fB\-i, \-\-index\fR" 4
182+
.IX Item "-i, --index"
183+
The index of the \s-1NVRAM\s0 area.
184+
The parameter must either be a decimal number or a hexadecimal number starting with '0x'.
185+
.Sp
186+
To select the \s-1NVRAM\s0 area with index 0x100, the command line parameter should be '\-i 0x100' or
187+
\&'\-\-index 0x100'.
188+
.IP "\fB\-s, \-\-size\fR" 4
189+
.IX Item "-s, --size"
190+
The size of the \s-1NVRAM\s0 area.
191+
The parameter must either be a decimal number or a hexadecimal number starting with '0x'.
192+
.IP "\fB\-p, \-\-permissions\fR" 4
193+
.IX Item "-p, --permissions"
194+
The access permissions associated with the \s-1NVRAM\s0 area.
195+
The parameter must either be a decimal number or a hexadecimal number staring with '0x'. It is
196+
possible to logically 'or' numbers or strings. The following strings are supported:
197+
.RS 4
198+
.IP "\fB\s-1AUTHREAD\s0\fR" 4
199+
.IX Item "AUTHREAD"
200+
Reading requires \s-1NVRAM\s0 area authorization.
201+
.IP "\fB\s-1AUTHWRITE\s0\fR" 4
202+
.IX Item "AUTHWRITE"
203+
Writing requires \s-1NVRAM\s0 area authorization.
204+
.IP "\fB\s-1PPREAD\s0\fR" 4
205+
.IX Item "PPREAD"
206+
Reading requires physical presence.
207+
.IP "\fB\s-1PPWRITE\s0\fR" 4
208+
.IX Item "PPWRITE"
209+
Writing requires physical presence.
210+
.IP "\fB\s-1OWNERREAD\s0\fR" 4
211+
.IX Item "OWNERREAD"
212+
Reading requires owner authorization.
213+
.IP "\fB\s-1OWNERWRITE\s0\fR" 4
214+
.IX Item "OWNERWRITE"
215+
Writing requires owner authorization.
216+
.IP "\fB\s-1GLOBALLOCK\s0\fR" 4
217+
.IX Item "GLOBALLOCK"
218+
A write to index 0 locks the \s-1NVRAM\s0 area until the next TPM_Startup(\s-1ST_CLEAR\s0)
219+
.IP "\fB\s-1READ_STCLEAR\s0\fR" 4
220+
.IX Item "READ_STCLEAR"
221+
A read with size 0 on the same index prevents further reading until the next TPM_Startup(\s-1ST_CLEAR\s0)
222+
.IP "\fB\s-1WRITE_STCLEAR\s0\fR" 4
223+
.IX Item "WRITE_STCLEAR"
224+
A write with size 0 to the same index prevents further writing until the next TPM_Startup(\s-1ST_CLEAR\s0)
225+
.IP "\fB\s-1WRITEDEFINE\s0\fR" 4
226+
.IX Item "WRITEDEFINE"
227+
A write with size 0 to the same index locks the \s-1NVRAM\s0 area permanently
228+
.IP "\fB\s-1WRITEALL\s0\fR" 4
229+
.IX Item "WRITEALL"
230+
The value must be written in a single operation
231+
.RE
232+
.RS 4
233+
.Sp
234+
An example of a permission parameter is:
235+
.Sp
236+
\&\-\-permissions=\*(L"OWNERREAD|OWNERWRITE\*(R"
237+
.RE
238+
.IP "\fB\fR" 4
239+
.IX Item ""
240+
.SH "SEE ALSO"
241+
.IX Header "SEE ALSO"
242+
\&\fBtpm_nvread\fR(8), \fBtpm_nvwrite\fR(8), \fBtpm_nvrelease\fR(8), \fBtpm_nvinfo\fR(8)
243+
.SH "REPORTING BUGS"
244+
.IX Header "REPORTING BUGS"
245+
Report bugs to <trousers\-users@lists.sourceforge.net>

0 commit comments

Comments
 (0)