source: postlfs/security/attr.xml@ 20e6cade

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 20e6cade was 20e6cade, checked in by Bruce Dubbs <bdubbs@…>, 13 years ago

Update to apache-2.2.21
Update to rsync-3.0.9.
Remove rsync-client and move rsync to network programs.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@8918 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 6.7 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!-- <!ENTITY attr-download-http "http://mirror.dknss.com/nongnu/attr/attr-&attr-version;.src.tar.gz">
8 <!ENTITY attr-download-http "http://mirrors.zerg.biz/nongnu/attr/attr-&attr-version;.src.tar.gz"> -->
9 <!ENTITY attr-download-http " ">
10 <!ENTITY attr-download-ftp "ftp://oss.sgi.com/projects/xfs/cmd_tars-oct_09/attr-&attr-version;.src.tar.gz">
11 <!ENTITY attr-md5sum "adeefe65c5ad1febe46da185c5bfd5d4">
12 <!ENTITY attr-size "309 KB">
13 <!ENTITY attr-buildsize "3 MB">
14 <!ENTITY attr-time "0.1 SBU">
15]>
16
17<sect1 id="attr" xreflabel="attr-&attr-version;">
18 <?dbhtml filename="attr.html"?>
19
20 <sect1info>
21 <othername>$LastChangedBy$</othername>
22 <date>$Date$</date>
23 </sect1info>
24
25 <title>attr-&attr-version;</title>
26
27 <indexterm zone="attr">
28 <primary sortas="a-attr">attr</primary>
29 </indexterm>
30
31 <sect2 role="package">
32 <title>Introduction to attr</title>
33
34 <para>The <application>attr</application> package contains utilities to
35 administer the extended attributes on filesystem objects.</para>
36
37 &lfs70_checked;
38
39 <bridgehead renderas="sect3">Package Information</bridgehead>
40 <itemizedlist spacing="compact">
41 <listitem>
42 <para>Download (HTTP): <ulink url="&attr-download-http;"/></para>
43 </listitem>
44 <listitem>
45 <para>Download (FTP): <ulink url="&attr-download-ftp;"/></para>
46 </listitem>
47 <listitem>
48 <para>Download MD5 sum: &attr-md5sum;</para>
49 </listitem>
50 <listitem>
51 <para>Download size: &attr-size;</para>
52 </listitem>
53 <listitem>
54 <para>Estimated disk space required: &attr-buildsize;</para>
55 </listitem>
56 <listitem>
57 <para>Estimated build time: &attr-time;</para>
58 </listitem>
59 </itemizedlist>
60
61 <para condition="html" role="usernotes">User Notes:
62 <ulink url="&blfs-wiki;/attr"/></para>
63
64 </sect2>
65
66 <sect2 role="installation">
67 <title>Installation of attr</title>
68
69 <para>Install <application>attr</application> by running the following
70 commands:</para>
71
72<screen><userinput>cat &gt; test/sort-getfattr-output &lt;&lt; "EOF" &amp;&amp;
73#! /usr/bin/perl -w
74undef $/;
75print join("\n\n", sort split(/\n\n/, &lt;&gt;)), "\n\n";
76EOF
77
78chmod 755 test/sort-getfattr-output &amp;&amp;
79sed -i -e 's|/@pkg_name@|&amp;-@pkg_version@|' \
80 -e 's|@prefix|$(DESTDIR)&amp;|' \
81 -e 's|@libexec|$(DESTDIR)&amp;|' \
82 include/builddefs.in &amp;&amp;
83
84./configure --prefix=/usr --libexecdir=/usr/lib &amp;&amp;
85make</userinput></screen>
86
87 <para>There are three sets of tests that come with this package. Issue the
88 following to execute all three:
89 <command>make tests root-tests ext-tests</command>. For meaningful results,
90 the tests need to be carried out on a file system that supports extended
91 attributes.</para>
92
93 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
94
95<screen role="root"><userinput>make install install-dev install-lib &amp;&amp;
96chmod -v 755 /usr/lib/libattr.{so.1.1.0,la} &amp;&amp;
97chown -v root.root /usr/lib/libattr.{a,la,so.1.1.0} &amp;&amp;
98chown -v root.root /usr/share/man/man*/*attr*</userinput></screen>
99
100 </sect2>
101
102 <sect2 role="commands">
103 <title>Command Explanations</title>
104
105 <para><command>cat &gt; test/sort-getfattr-output ... EOF</command>: This
106 command creates a missing test script.</para>
107
108 <para><command>sed ... include/builddefs.in</command>: This command
109 modifies the documentation directory so that it is a versioned
110 directory and also adds support for a DESTDIR installation.</para>
111
112 <para><command>chmod ...</command>: This command modifies the permissions
113 of installed library files to standards.</para>
114
115 </sect2>
116
117 <sect2 role="configuration">
118 <title>Configuring attr</title>
119 <sect3><title>Configuration Information</title>
120
121 <para>There is no configuration to <application>attr</application> itself,
122 but to get any use out of <application>attr</application>, a filesystem
123 needs to support extended attributes.</para>
124
125 <para>One way to achieve this is to add the user_xattr option to an ext3
126 filesystem in the <filename>/etc/fstab</filename> file as shown
127 below:</para>
128
129<screen># file system mount-point type options dump fsck
130# order
131
132/dev/sda1 / ext3 defaults,acl,user_xattr 0 2</screen>
133
134 </sect3>
135
136 </sect2>
137
138 <sect2 role="content">
139 <title>Contents</title>
140
141 <segmentedlist>
142 <segtitle>Installed Programs</segtitle>
143 <segtitle>Installed Library</segtitle>
144 <segtitle>Installed Directories</segtitle>
145
146 <seglistitem>
147 <seg>attr, getfattr, and setfattr</seg>
148 <seg>libattr.{so,a}</seg>
149 <seg>/usr/{include/attr,share/doc/attr-&attr-version;}</seg>
150 </seglistitem>
151 </segmentedlist>
152
153 <variablelist>
154 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
155 <?dbfo list-presentation="list"?>
156 <?dbhtml list-presentation="table"?>
157
158 <varlistentry id="attr-prog">
159 <term><command>attr</command></term>
160 <listitem>
161 <para>extends attributes on filesystem objects.</para>
162 <indexterm zone="attr attr">
163 <primary sortas="b-attr">attr</primary>
164 </indexterm>
165 </listitem>
166 </varlistentry>
167
168 <varlistentry id="getfattr">
169 <term><command>getfattr</command></term>
170 <listitem>
171 <para>gets the extended attributes of filesystem objects.</para>
172 <indexterm zone="attr getfattr">
173 <primary sortas="b-getfattr">getfattr</primary>
174 </indexterm>
175 </listitem>
176 </varlistentry>
177
178 <varlistentry id="setfattr">
179 <term><command>setfattr</command></term>
180 <listitem>
181 <para>sets the extended attributes of filesystem objects.</para>
182 <indexterm zone="attr setfattr">
183 <primary sortas="b-setfattr">setfattr</primary>
184 </indexterm>
185 </listitem>
186 </varlistentry>
187
188 <varlistentry id="libattr">
189 <term><filename class='libraryfile'>libattr.{so,a}</filename></term>
190 <listitem>
191 <para>contains the <application>attr</application> API functions.</para>
192 <indexterm zone="attr libattr">
193 <primary sortas="c-libattr">libattr.{so,a}</primary>
194 </indexterm>
195 </listitem>
196 </varlistentry>
197
198 </variablelist>
199
200 </sect2>
201
202</sect1>
Note: See TracBrowser for help on using the repository browser.