Changeset dfde664


Ignore:
Timestamp:
04/10/2023 08:17:04 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:
a4b0c6d
Parents:
e9ab2b3
git-author:
Xi Ruoyao <xry111@…> (04/10/2023 08:00:34 AM)
git-committer:
Xi Ruoyao <xry111@…> (04/10/2023 08:17:04 AM)
Message:

systemd: Set /dev/kvm mode to 0660

The default /dev/kvm mode is 0666 and we consider it "not so safe".
Like Tim said: "I'm also authenticating to my system all the time and
don't do a chmod -R 777 / after every boot."

With this option, the /dev/kvm mode is set to 0660 and it's tagged
"uaccess" so systemd-logind will add an ACL entry for users logged-in
locally.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter08/systemd.xml

    re9ab2b3 rdfde664  
    6767      -Dmode=release                \
    6868      -Dpamconfdir=no               \
     69      -Ddev-kvm-mode=0660           \
    6970      -Ddocdir=/usr/share/doc/systemd-&systemd-version; \
    7071      ..</userinput></screen>
     
    166167          <para>Prevent the installation of a PAM configuration file not
    167168          functional on LFS.</para>
     169        </listitem>
     170      </varlistentry>
     171
     172      <varlistentry>
     173        <term><parameter>-Ddev-kvm-mode=0660</parameter></term>
     174        <listitem>
     175          <para>The default udev rule would allow all users to access
     176          <filename class='devicefile'>/dev/kvm</filename>.  The editors
     177          consider it dangerous.  This option overrides it.</para>
    168178        </listitem>
    169179      </varlistentry>
Note: See TracChangeset for help on using the changeset viewer.