source: postlfs/security/attr.xml@ 778be14

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

Update to acl-2.2.51
Fix instructions in attr package
Update to doxygen-1.75
Update to pcre-8.12

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

  • Property mode set to 100644
File size: 6.6 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}</userinput></screen>
98
99 </sect2>
100
101 <sect2 role="commands">
102 <title>Command Explanations</title>
103
104 <para><command>cat &gt; test/sort-getfattr-output ... EOF</command>: This
105 command creates a missing test script.</para>
106
107 <para><command>sed ... include/builddefs.in</command>: This command
108 modifies the documentation directory so that it is a versioned
109 directory and also adds support for a DESTDIR installation.</para>
110
111 <para><command>chmod ...</command>: This command modifies the permissions
112 of installed library files to standards.</para>
113
114 </sect2>
115
116 <sect2 role="configuration">
117 <title>Configuring attr</title>
118 <sect3><title>Configuration Information</title>
119
120 <para>There is no configuration to <application>attr</application> itself,
121 but to get any use out of <application>attr</application>, a filesystem
122 needs to support extended attributes.</para>
123
124 <para>One way to achieve this is to add the user_xattr option to an ext3
125 filesystem in the <filename>/etc/fstab</filename> file as shown
126 below:</para>
127
128<screen># file system mount-point type options dump fsck
129# order
130
131/dev/sda1 / ext3 defaults,acl,user_xattr 0 2</screen>
132
133 </sect3>
134
135 </sect2>
136
137 <sect2 role="content">
138 <title>Contents</title>
139
140 <segmentedlist>
141 <segtitle>Installed Programs</segtitle>
142 <segtitle>Installed Library</segtitle>
143 <segtitle>Installed Directories</segtitle>
144
145 <seglistitem>
146 <seg>attr, getfattr, and setfattr</seg>
147 <seg>libattr.{so,a}</seg>
148 <seg>/usr/{include/attr,share/doc/attr-&attr-version;}</seg>
149 </seglistitem>
150 </segmentedlist>
151
152 <variablelist>
153 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
154 <?dbfo list-presentation="list"?>
155 <?dbhtml list-presentation="table"?>
156
157 <varlistentry id="attr-prog">
158 <term><command>attr</command></term>
159 <listitem>
160 <para>extends attributes on filesystem objects.</para>
161 <indexterm zone="attr attr">
162 <primary sortas="b-attr">attr</primary>
163 </indexterm>
164 </listitem>
165 </varlistentry>
166
167 <varlistentry id="getfattr">
168 <term><command>getfattr</command></term>
169 <listitem>
170 <para>gets the extended attributes of filesystem objects.</para>
171 <indexterm zone="attr getfattr">
172 <primary sortas="b-getfattr">getfattr</primary>
173 </indexterm>
174 </listitem>
175 </varlistentry>
176
177 <varlistentry id="setfattr">
178 <term><command>setfattr</command></term>
179 <listitem>
180 <para>sets the extended attributes of filesystem objects.</para>
181 <indexterm zone="attr setfattr">
182 <primary sortas="b-setfattr">setfattr</primary>
183 </indexterm>
184 </listitem>
185 </varlistentry>
186
187 <varlistentry id="libattr">
188 <term><filename class='libraryfile'>libattr.{so,a}</filename></term>
189 <listitem>
190 <para>contains the <application>attr</application> API functions.</para>
191 <indexterm zone="attr libattr">
192 <primary sortas="c-libattr">libattr.{so,a}</primary>
193 </indexterm>
194 </listitem>
195 </varlistentry>
196
197 </variablelist>
198
199 </sect2>
200
201</sect1>
Note: See TracBrowser for help on using the repository browser.