Changeset befd6fb


Ignore:
Timestamp:
01/21/2007 05:50:20 PM (17 years ago)
Author:
Dan Nichilson <dnicholson@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 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
Children:
648e8bc
Parents:
468419d
Message:

HAL configuration to prevent methods on fixed drives

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

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • general/sysutils/hal.xml

    r468419d rbefd6fb  
    318318      <application>HAL</application> will invoke its methods on.</para>
    319319
     320      <para>With the above configuration in place, authorized users now
     321      have the ability to unmount disk partitions mounted at non-standard
     322      locations such as <filename class='directory'>/pub</filename>. If
     323      you'd like to restrict this policy to only drives which are considered
     324      removable or hotpluggable, add the following configuration file as
     325      the <systemitem class='username'>root</systemitem> user:</para>
     326
     327<screen role="root"><userinput>cat &gt; /etc/hal/fdi/policy/no-fixed-drives.fdi &lt;&lt; "EOF"
     328<literal>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;!-- -*- SGML -*- --&gt;
     329
     330&lt;!-- Don't allow HAL methods on disks that are not
     331     removable or hotpluggable --&gt;
     332
     333&lt;deviceinfo version="0.2"&gt;
     334&lt;device&gt;
     335  &lt;match key="@block.storage_device:storage.hotpluggable" bool="false"&gt;
     336    &lt;match key="@block.storage_device:storage.removable" bool="false"&gt;
     337      &lt;merge key="volume.ignore" type="bool"&gt;true&lt;/merge&gt;
     338    &lt;/match&gt;
     339  &lt;/match&gt;
     340&lt;/device&gt;
     341&lt;/deviceinfo&gt;</literal>
     342EOF</userinput></screen>
     343
    320344      <para><application>HAL</application> only provides the methods such
    321345      as Mount() to act on hardware. In order to take advantage of these,
  • introduction/welcome/changelog.xml

    r468419d rbefd6fb  
    4646      <itemizedlist>
    4747        <listitem>
     48          <para>[dnicholson] - Added optional configuration to HAL to
     49          prevent methods on fixed disk drives.</para>
     50        </listitem>
     51        <listitem>
    4852          <para>[dnicholson] - Fixed the X Input Devices User Notes link
    4953          to point to a more appropriate place on the Wiki. Closes
Note: See TracChangeset for help on using the changeset viewer.