mirror of
https://github.com/systemd/systemd
synced 2026-03-14 17:14:49 +01:00
Compare commits
11 Commits
cbec0bfa5d
...
fd37987da5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fd37987da5 | ||
|
|
44cf2e6022 | ||
|
|
690ceca8dc | ||
|
|
c37f7963b1 | ||
|
|
7eea910d24 | ||
|
|
51b274d881 | ||
|
|
b35028ebaa | ||
|
|
9854ac4af4 | ||
|
|
23a2badf74 | ||
|
|
9d59f5b2f9 | ||
|
|
8205c151b3 |
@ -911,6 +911,10 @@ evdev:input:b0003v04B3p301B*
|
|||||||
KEYBOARD_KEY_90007=mail
|
KEYBOARD_KEY_90007=mail
|
||||||
KEYBOARD_KEY_90008=www
|
KEYBOARD_KEY_90008=www
|
||||||
|
|
||||||
|
# Lenovo Ideapad D330-10IGM
|
||||||
|
evdev:name:SIPODEV Lenovo HID Device:dmi:*:svnLENOVO:*:pvrLenovoideapadD330-10IGM:*
|
||||||
|
KEYBOARD_KEY_70073=f21 # Fn+Supr (Touchpad toggle)
|
||||||
|
|
||||||
|
|
||||||
###########################################################
|
###########################################################
|
||||||
# Logitech
|
# Logitech
|
||||||
|
|||||||
@ -506,8 +506,8 @@ sensor:modalias:acpi:BMA250E*:dmi:bvnLENOVO:*:pvrLenovoMIIX3-1030:*
|
|||||||
sensor:modalias:acpi:SMO8500*:dmi:bvnLENOVO:*:pvrLenovoMIIX3-830:*
|
sensor:modalias:acpi:SMO8500*:dmi:bvnLENOVO:*:pvrLenovoMIIX3-830:*
|
||||||
ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, 1, 0; 0, 0, 1
|
ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, 1, 0; 0, 0, 1
|
||||||
|
|
||||||
# IdeaPad D330-10IGM (both 81H3 and 81MD product numbers)
|
# IdeaPad D330-10IGM (both 81H3 and 81MD product names)
|
||||||
sensor:modalias:acpi:BOSC0200*:dmi:*:svnLENOVO:*:cvrLenovoideapadD330-10IGM:*
|
sensor:modalias:acpi:BOSC0200*:dmi:*:svnLENOVO:*:pvrLenovoideapadD330-10IGM:*
|
||||||
ACCEL_MOUNT_MATRIX=0, 1, 0; -1, 0, 0; 0, 0, 1
|
ACCEL_MOUNT_MATRIX=0, 1, 0; -1, 0, 0; 0, 0, 1
|
||||||
|
|
||||||
# IdeaPad Miix 300
|
# IdeaPad Miix 300
|
||||||
|
|||||||
@ -239,15 +239,25 @@
|
|||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><option>--make-machine-id-directory=yes|no|auto</option></term>
|
<term><option>--make-machine-id-directory=yes|no|auto</option></term>
|
||||||
<listitem><para>Control creation and deletion of <literal>$ESP/$MACHINE_ID</literal> during
|
<listitem><para>Control creation and deletion of the top-level machine ID directory on the file
|
||||||
<option>install</option> and <option>remove</option>, respectively.
|
system containing boot loader entries (i.e. beneath the file system returned by
|
||||||
<literal>auto</literal> is equivalent to to <literal>yes</literal> if <literal>/etc/machine-id</literal>
|
<command>--print-boot-path</command> above) during <option>install</option> and
|
||||||
resides on a filesystem other than tmpfs and <literal>no</literal> otherwise.
|
<option>remove</option>, respectively. <literal>auto</literal> is equivalent to
|
||||||
Defaults to <literal>auto</literal>.</para>
|
<literal>yes</literal> if <filename>/etc/machine-id</filename> resides on a filesystem other than
|
||||||
|
tmpfs and <literal>no</literal> otherwise (in the latter case the machine ID is likely transient and
|
||||||
|
hence should not be used persistently in the ESP). Defaults to <literal>auto</literal>. See
|
||||||
|
<citerefentry><refentrytitle>machine-id</refentrytitle><manvolnum>5</manvolnum></citerefentry> for
|
||||||
|
details about the machine ID concept and file.</para>
|
||||||
|
|
||||||
<para>Overriding this may be desired to hide the machine ID from the (unencrypted) ESP,
|
<para>Overriding this may be desirable to hide the machine ID from the (unencrypted) ESP, configure a
|
||||||
configure a <citerefentry><refentrytitle>kernel-install</refentrytitle><manvolnum>8</manvolnum></citerefentry> script, or,
|
<citerefentry><refentrytitle>kernel-install</refentrytitle><manvolnum>8</manvolnum></citerefentry>
|
||||||
conversely, commit a machine-id that only appears transient.</para></listitem>
|
script, or, conversely, commit a transient machine ID.</para>
|
||||||
|
|
||||||
|
<para>The top-level machine ID directory is useful to allow smooth multi-boot installations: each
|
||||||
|
installed OS instance will have a different machine ID and thus a separate directory to place its
|
||||||
|
boot-time resources in. If this feature is turned off with this option, care needs to be taken that
|
||||||
|
multiple OS instances do not place conflicting files on the shared ESP and Extended Boot Loader
|
||||||
|
Partitions, or that multiple OS instances are not possible.</para></listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<xi:include href="standard-options.xml" xpointer="no-pager"/>
|
<xi:include href="standard-options.xml" xpointer="no-pager"/>
|
||||||
|
|||||||
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
|
#include "errno-list.h"
|
||||||
#include "locale-util.h"
|
#include "locale-util.h"
|
||||||
#include "macro.h"
|
#include "macro.h"
|
||||||
|
|
||||||
@ -23,6 +24,7 @@ typedef enum UnitType {
|
|||||||
UNIT_SCOPE,
|
UNIT_SCOPE,
|
||||||
_UNIT_TYPE_MAX,
|
_UNIT_TYPE_MAX,
|
||||||
_UNIT_TYPE_INVALID = -EINVAL,
|
_UNIT_TYPE_INVALID = -EINVAL,
|
||||||
|
_UNIT_TYPE_ERRNO_MAX = -ERRNO_MAX, /* Ensure the whole errno range fits into this enum */
|
||||||
} UnitType;
|
} UnitType;
|
||||||
|
|
||||||
typedef enum UnitLoadState {
|
typedef enum UnitLoadState {
|
||||||
|
|||||||
@ -747,11 +747,14 @@ static int attach_luks_or_plain_or_bitlk_by_fido2(
|
|||||||
|
|
||||||
if (arg_fido2_cid) {
|
if (arg_fido2_cid) {
|
||||||
if (!key_file && !key_data)
|
if (!key_file && !key_data)
|
||||||
return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "FIDO2 mode selected but no key file specified, refusing.");
|
return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
|
||||||
|
"FIDO2 mode with manual parameters selected, but no keyfile specified, refusing.");
|
||||||
|
|
||||||
rp_id = arg_fido2_rp_id;
|
rp_id = arg_fido2_rp_id;
|
||||||
cid = arg_fido2_cid;
|
cid = arg_fido2_cid;
|
||||||
cid_size = arg_fido2_cid_size;
|
cid_size = arg_fido2_cid_size;
|
||||||
|
|
||||||
|
required = FIDO2ENROLL_PIN | FIDO2ENROLL_UP; /* For backwards compatibility, PIN+presence is required by default. */
|
||||||
} else {
|
} else {
|
||||||
r = find_fido2_auto_data(
|
r = find_fido2_auto_data(
|
||||||
cd,
|
cd,
|
||||||
@ -769,7 +772,7 @@ static int attach_luks_or_plain_or_bitlk_by_fido2(
|
|||||||
if (r < 0)
|
if (r < 0)
|
||||||
return r;
|
return r;
|
||||||
|
|
||||||
if (FLAGS_SET(required, FIDO2ENROLL_PIN | FIDO2ENROLL_UP | FIDO2ENROLL_UV) && arg_headless)
|
if ((required & (FIDO2ENROLL_PIN | FIDO2ENROLL_UP | FIDO2ENROLL_UV)) && arg_headless)
|
||||||
return log_error_errno(SYNTHETIC_ERRNO(ENOPKG),
|
return log_error_errno(SYNTHETIC_ERRNO(ENOPKG),
|
||||||
"Local verification is required to unlock this volume, but the 'headless' parameter was set.");
|
"Local verification is required to unlock this volume, but the 'headless' parameter was set.");
|
||||||
|
|
||||||
|
|||||||
@ -379,7 +379,9 @@ static void test_make_salt(void) {
|
|||||||
|
|
||||||
static void test_in_gid(void) {
|
static void test_in_gid(void) {
|
||||||
assert(in_gid(getgid()) >= 0);
|
assert(in_gid(getgid()) >= 0);
|
||||||
assert(in_gid(getegid()) >= 0); assert(in_gid(TTY_GID) == 0); /* The TTY gid is for owning ttys, it would be really really weird if we were in it. */
|
assert(in_gid(getegid()) >= 0);
|
||||||
|
assert(in_gid(GID_INVALID) < 0);
|
||||||
|
assert(in_gid(TTY_GID) == 0); /* The TTY gid is for owning ttys, it would be really really weird if we were in it. */
|
||||||
}
|
}
|
||||||
|
|
||||||
static void test_gid_lists_ops(void) {
|
static void test_gid_lists_ops(void) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user