Changeset a4b0c6d


Ignore:
Timestamp:
04/10/2023 08:17:17 AM (13 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
12.0, 12.0-rc1, 12.1, 12.1-rc1, bdubbs/gcc13, multilib, renodr/libudev-from-systemd, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/update-glibc
Children:
ad897739, efd83db
Parents:
dfde664
Message:

eudev: Set /dev/kvm mode to 0660 and tag it "uaccess"

See the parent commit for rationale.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter08/eudev.xml

    rdfde664 ra4b0c6d  
    4040  <sect2 role="installation">
    4141    <title>Installation of Eudev</title>
    42 
    43    
    4442
    4543    <para>First fix the location of udev rules in the .pc file:</para>
     
    8886      <secondary>configuring</secondary>
    8987    </indexterm>
     88
     89    <indexterm zone="conf-eudev">
     90      <primary sortas="e-/etc/udev/rules.d/65-kvm.rules">/etc/udev/rules.d/65-kvm.rules</primary>
     91    </indexterm>
     92
     93    <para>
     94      The default udev rule installed by Eudev would allow all users to
     95      access <filename class='devicefile'>/dev/kvm</filename>.  The editors
     96      consider it dangerous.  Create a configuration file to override it:
     97    </para>
     98
     99<screen><userinput remap="configure">cat > /etc/udev/rules.d/65-kvm.rules &lt;&lt; "EOF"
     100<literal>KERNEL=="kvm", GROUP="kvm", MODE="0660", TAG+="uaccess"</literal>
     101EOF</userinput></screen>
    90102
    91103    <indexterm zone="conf-eudev">
Note: See TracChangeset for help on using the changeset viewer.