source: postlfs/security/attr.xml@ 7277650c

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 7277650c was 7277650c, checked in by Igor Živković <igor@…>, 11 years ago

Move libattr.so to /lib in case something from LFS that should be in /bin or /sbin gets recompiled against it (thanks Armin).

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@11266 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 "84f58dec00b60f2dc8fd1c9709291cc7">
10 <!ENTITY attr-size "336 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 &lfs73_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 --disable-static &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</userinput></screen>
88
89 </sect2>
90
91 <sect2 role="commands">
92 <title>Command Explanations</title>
93
94 <para><command>sed ... include/builddefs.in</command>: This command
95 modifies the documentation directory so that it is a versioned
96 directory.</para>
97
98 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
99 href="../../xincludes/static-libraries.xml"/>
100
101 </sect2>
102
103 <sect2 role="configuration">
104 <title>Configuring attr</title>
105 <sect3><title>Configuration Information</title>
106
107 <para>There is no configuration to <application>attr</application> itself,
108 but to get any use out of <application>attr</application>, a filesystem
109 needs to support extended attributes.</para>
110
111 <para>One way to achieve this is to add the user_xattr option to an ext3
112 filesystem in the <filename>/etc/fstab</filename> file as shown
113 below:</para>
114
115<screen># file system mount-point type options dump fsck
116# order
117
118/dev/sda1 / ext3 defaults,acl,user_xattr 0 2</screen>
119
120 </sect3>
121
122 </sect2>
123
124 <sect2 role="content">
125 <title>Contents</title>
126
127 <segmentedlist>
128 <segtitle>Installed Programs</segtitle>
129 <segtitle>Installed Library</segtitle>
130 <segtitle>Installed Directories</segtitle>
131
132 <seglistitem>
133 <seg>attr, getfattr, and setfattr</seg>
134 <seg>libattr.so</seg>
135 <seg>/usr/{include/attr,share/doc/attr-&attr-version;}</seg>
136 </seglistitem>
137 </segmentedlist>
138
139 <variablelist>
140 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
141 <?dbfo list-presentation="list"?>
142 <?dbhtml list-presentation="table"?>
143
144 <varlistentry id="attr-prog">
145 <term><command>attr</command></term>
146 <listitem>
147 <para>extends attributes on filesystem objects.</para>
148 <indexterm zone="attr attr">
149 <primary sortas="b-attr">attr</primary>
150 </indexterm>
151 </listitem>
152 </varlistentry>
153
154 <varlistentry id="getfattr">
155 <term><command>getfattr</command></term>
156 <listitem>
157 <para>gets the extended attributes of filesystem objects.</para>
158 <indexterm zone="attr getfattr">
159 <primary sortas="b-getfattr">getfattr</primary>
160 </indexterm>
161 </listitem>
162 </varlistentry>
163
164 <varlistentry id="setfattr">
165 <term><command>setfattr</command></term>
166 <listitem>
167 <para>sets the extended attributes of filesystem objects.</para>
168 <indexterm zone="attr setfattr">
169 <primary sortas="b-setfattr">setfattr</primary>
170 </indexterm>
171 </listitem>
172 </varlistentry>
173
174 <varlistentry id="libattr">
175 <term><filename class='libraryfile'>libattr.so</filename></term>
176 <listitem>
177 <para>contains the <application>attr</application> API functions.</para>
178 <indexterm zone="attr libattr">
179 <primary sortas="c-libattr">libattr.so</primary>
180 </indexterm>
181 </listitem>
182 </varlistentry>
183
184 </variablelist>
185
186 </sect2>
187
188</sect1>
Note: See TracBrowser for help on using the repository browser.