source: postlfs/security/attr.xml@ bcad034

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 bcad034 was bcad034, checked in by Bruce Dubbs <bdubbs@…>, 12 years ago

Minor editorial changes

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

  • Property mode set to 100644
File size: 5.9 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://download.savannah.gnu.org/releases/attr/attr-&attr-version;.src.tar.gz">
8 <!ENTITY attr-download-ftp " ">
9 <!ENTITY attr-md5sum "db557c17fdfa4f785333ecda08654010">
10 <!ENTITY attr-size "332 KB">
11 <!ENTITY attr-buildsize "3.5 MB">
12 <!ENTITY attr-time "0.1 SBU">
13]>
14
15<sect1 id="attr" xreflabel="attr-&attr-version;">
16 <?dbhtml filename="attr.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>attr-&attr-version;</title>
24
25 <indexterm zone="attr">
26 <primary sortas="a-attr">attr</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to attr</title>
31
32 <para>The <application>attr</application> package contains utilities to
33 administer the extended attributes on filesystem objects.</para>
34
35 &lfs70_checked;
36
37 <bridgehead renderas="sect3">Package Information</bridgehead>
38 <itemizedlist spacing="compact">
39 <listitem>
40 <para>Download (HTTP): <ulink url="&attr-download-http;"/></para>
41 </listitem>
42 <listitem>
43 <para>Download (FTP): <ulink url="&attr-download-ftp;"/></para>
44 </listitem>
45 <listitem>
46 <para>Download MD5 sum: &attr-md5sum;</para>
47 </listitem>
48 <listitem>
49 <para>Download size: &attr-size;</para>
50 </listitem>
51 <listitem>
52 <para>Estimated disk space required: &attr-buildsize;</para>
53 </listitem>
54 <listitem>
55 <para>Estimated build time: &attr-time;</para>
56 </listitem>
57 </itemizedlist>
58
59 <para condition="html" role="usernotes">User Notes:
60 <ulink url="&blfs-wiki;/attr"/></para>
61
62 </sect2>
63
64 <sect2 role="installation">
65 <title>Installation of attr</title>
66
67 <para>Install <application>attr</application> by running the following
68 commands:</para>
69
70<screen><userinput>sed -i -e 's|/@pkg_name@|&amp;-@pkg_version@|' include/builddefs.in &amp;&amp;
71
72INSTALL_USER=root \
73INSTALL_GROUP=root \
74./configure --prefix=/usr --libdir=/lib --libexecdir=/usr/lib &amp;&amp;
75make</userinput></screen>
76
77 <para>There are three sets of tests that come with this package. Issue the
78 following to execute all three:
79 <command>make tests root-tests ext-tests</command>. For meaningful results,
80 the tests need to be carried out on a file system that supports extended
81 attributes.</para>
82
83 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
84
85<!-- Package uses DIST_ROOT instead of DESTDIR -->
86<screen role="root"><userinput>make install install-dev install-lib &amp;&amp;
87chmod -v 0755 /lib/libattr.so.1.1.0 &amp;&amp;
88rm -v /lib/libattr.{a,la,so} &amp;&amp;
89ln -sfv ../../lib/libattr.so.1 /usr/lib/libattr.so</userinput></screen>
90
91 </sect2>
92
93 <sect2 role="commands">
94 <title>Command Explanations</title>
95
96 <para><command>sed ... include/builddefs.in</command>: This command
97 modifies the documentation directory so that it is a versioned
98 directory.</para>
99
100 </sect2>
101
102 <sect2 role="configuration">
103 <title>Configuring attr</title>
104 <sect3><title>Configuration Information</title>
105
106 <para>There is no configuration to <application>attr</application> itself,
107 but to get any use out of <application>attr</application>, a filesystem
108 needs to support extended attributes.</para>
109
110 <para>One way to achieve this is to add the user_xattr option to an ext3
111 filesystem in the <filename>/etc/fstab</filename> file as shown
112 below:</para>
113
114<screen># file system mount-point type options dump fsck
115# order
116
117/dev/sda1 / ext3 defaults,acl,user_xattr 0 2</screen>
118
119 </sect3>
120
121 </sect2>
122
123 <sect2 role="content">
124 <title>Contents</title>
125
126 <segmentedlist>
127 <segtitle>Installed Programs</segtitle>
128 <segtitle>Installed Library</segtitle>
129 <segtitle>Installed Directories</segtitle>
130
131 <seglistitem>
132 <seg>attr, getfattr, and setfattr</seg>
133 <seg>libattr.{so,a}</seg>
134 <seg>/usr/{include/attr,share/doc/attr-&attr-version;}</seg>
135 </seglistitem>
136 </segmentedlist>
137
138 <variablelist>
139 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
140 <?dbfo list-presentation="list"?>
141 <?dbhtml list-presentation="table"?>
142
143 <varlistentry id="attr-prog">
144 <term><command>attr</command></term>
145 <listitem>
146 <para>extends attributes on filesystem objects.</para>
147 <indexterm zone="attr attr">
148 <primary sortas="b-attr">attr</primary>
149 </indexterm>
150 </listitem>
151 </varlistentry>
152
153 <varlistentry id="getfattr">
154 <term><command>getfattr</command></term>
155 <listitem>
156 <para>gets the extended attributes of filesystem objects.</para>
157 <indexterm zone="attr getfattr">
158 <primary sortas="b-getfattr">getfattr</primary>
159 </indexterm>
160 </listitem>
161 </varlistentry>
162
163 <varlistentry id="setfattr">
164 <term><command>setfattr</command></term>
165 <listitem>
166 <para>sets the extended attributes of filesystem objects.</para>
167 <indexterm zone="attr setfattr">
168 <primary sortas="b-setfattr">setfattr</primary>
169 </indexterm>
170 </listitem>
171 </varlistentry>
172
173 <varlistentry id="libattr">
174 <term><filename class='libraryfile'>libattr.{so,a}</filename></term>
175 <listitem>
176 <para>contains the <application>attr</application> API functions.</para>
177 <indexterm zone="attr libattr">
178 <primary sortas="c-libattr">libattr.{so,a}</primary>
179 </indexterm>
180 </listitem>
181 </varlistentry>
182
183 </variablelist>
184
185 </sect2>
186
187</sect1>
Note: See TracBrowser for help on using the repository browser.