(e.g. comparisons for empty strings). Boot counting is now part of
the main specification.
- * New PCRs measurements are performed during boot: PCR 11 for the the
+ * New PCRs measurements are performed during boot: PCR 11 for the
kernel+initrd combo, PCR 13 for any sysext images. If a measurement
took place this is now reported to userspace via the new
StubPcrKernelImage and StubPcrInitRDSysExts EFI variables.
that want to establish a firewall *before* any network interface is up.
`network-pre.target` is a passive unit: it cannot be started directly and it is
-not pulled in by the the network management service, but instead a service that
+not pulled in by the network management service, but instead a service that
wants to run before it must pull it in. Network management services hence
should set `After=network-pre.target`, but not `Wants=network-pre.target` or
`Requires=network-pre.target`. Services that want to be run before the network
* at least one more byte to be able to distinguish EOF from truncation. */
if (max_size != SIZE_MAX && n > max_size) {
n = size; /* Make sure we never use more than what we sized the buffer for (so that
- * we have one free byte in it for the trailing NUL we add below).*/
+ * we have one free byte in it for the trailing NUL we add below). */
truncated = true;
break;
}
#define UDF_SUPER_MAGIC 0x15013346
#endif
-/* b1123ea6d3b3da25af5c8a9d843bd07ab63213f4 (4.8)*/
+/* b1123ea6d3b3da25af5c8a9d843bd07ab63213f4 (4.8) */
#ifndef BALLOON_KVM_MAGIC
#define BALLOON_KVM_MAGIC 0x13661366
#endif
/* We already found what we were looking for, but there's another candidate?
* We treat this as an error, as we want to enforce that there are no ambiguities
- * in case we are in the fallback path.*/
+ * in case we are in the fallback path. */
if (r == 0) {
r = -ENOTUNIQ;
break;
/* Only 256 colors. */
COLOR_256,
- /* For truecolor or 24bit color support.*/
+ /* For truecolor or 24bit color support. */
COLOR_24BIT,
_COLOR_INVALID = -EINVAL,
/* The BCD store is really just a regular windows registry hive with a rather cryptic internal
* key structure. On a running system it gets mounted to HKEY_LOCAL_MACHINE\BCD00000000.
*
- * Of interest to us are the these two keys:
+ * Of interest to us are these two keys:
* - \Objects\{bootmgr}\Elements\24000001
* This key is the "displayorder" property and contains a value of type REG_MULTI_SZ
* with the name "Element" that holds a {GUID} list (UTF16, NUL-separated).
* but we do not want to do that if that would be us.
*
* If the default loader is not us, it might be shim. It would
- * chainload GRUBX64.EFI in that case, which might be us.*/
+ * chainload GRUBX64.EFI in that case, which might be us. */
if (strcaseeq16(loader, loaded_image_path) ||
is_sd_boot(root_dir, loader) ||
is_sd_boot(root_dir, u"\\EFI\\BOOT\\GRUB" EFI_MACHINE_TYPE_NAME u".EFI"))
assert(key);
if (!checked) {
- /* Get the *first* TextInputEx device.*/
+ /* Get the *first* TextInputEx device. */
err = BS->LocateProtocol(
MAKE_GUID_PTR(EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL), NULL, (void **) &extraInEx);
if (err != EFI_SUCCESS || BS->CheckEvent(extraInEx->WaitForKeyEx) == EFI_INVALID_PARAMETER)
if (*inode_counter == UINT32_MAX) /* more than 2^32-1 inodes? yikes. cpio doesn't support that either */
return EFI_OUT_OF_RESOURCES;
- l = 6 + 13*8 + 1 + 1; /* Fixed CPIO header size, slash separator, and NUL byte after the file name*/
+ l = 6 + 13*8 + 1 + 1; /* Fixed CPIO header size, slash separator, and NUL byte after the file name */
target_dir_prefix_size = strlen8(target_dir_prefix);
if (l > SIZE_MAX - target_dir_prefix_size)
if (*inode_counter == UINT32_MAX)
return EFI_OUT_OF_RESOURCES;
- l = 6 + 13*8 + 1; /* Fixed CPIO header size, and NUL byte after the file name*/
+ l = 6 + 13*8 + 1; /* Fixed CPIO header size, and NUL byte after the file name */
path_size = strlen8(path);
if (l > SIZE_MAX - path_size)
* serialize the sysfs path across reloads/reexecs. Hence, when coming back from a reload/restart we
* might have the state valid, but not the sysfs path. Also, there is another possibility; when multiple
* devices have the same devlink (e.g. /dev/disk/by-uuid/xxxx), adding/updating/removing one of the
- * device causes syspath change. Hence, let's always update sysfs path.*/
+ * device causes syspath change. Hence, let's always update sysfs path. */
/* Let's remove all dependencies generated due to udev properties. We'll re-add whatever is configured
* now below. */
return r; /* return existing keyslot, so that wiping won't kill it */
}
- /* Quick verification that everything is in order, we are not in a hurry after all.*/
+ /* Quick verification that everything is in order, we are not in a hurry after all. */
if (!pubkey || signature_json) {
_cleanup_(erase_and_freep) void *secret2 = NULL;
size_t secret2_size;
if (r < 0)
return log_error_errno(r, "Failed to unmount '%s': %m", canonical);
- /* We managed to lock and unmount successfully? That means we can try to remove the loop device.*/
+ /* We managed to lock and unmount successfully? That means we can try to remove the loop device. */
loop_device_unrelinquish(d);
if (arg_rmdir) {
/* router is NULL: router option will not be appended.
* router is null address (0.0.0.0): the server address will be used as the router address.
- * otherwise: the specified address will be used as the router address.*/
+ * otherwise: the specified address will be used as the router address. */
server->emit_router = router;
if (router)
_cleanup_free_ char *str = NULL;
static const char* map[] = {
[LOG2U(IFF_UP)] = "up", /* interface is up. */
- [LOG2U(IFF_BROADCAST)] = "broadcast", /* broadcast address valid.*/
+ [LOG2U(IFF_BROADCAST)] = "broadcast", /* broadcast address valid. */
[LOG2U(IFF_DEBUG)] = "debug", /* turn on debugging. */
[LOG2U(IFF_LOOPBACK)] = "loopback", /* interface is a loopback net. */
[LOG2U(IFF_POINTOPOINT)] = "point-to-point", /* interface has p-p link. */
[LOG2U(IFF_ALLMULTI)] = "all-multicast", /* receive all multicast packets. */
[LOG2U(IFF_MASTER)] = "master", /* master of a load balancer. */
[LOG2U(IFF_SLAVE)] = "slave", /* slave of a load balancer. */
- [LOG2U(IFF_MULTICAST)] = "multicast", /* supports multicast.*/
+ [LOG2U(IFF_MULTICAST)] = "multicast", /* supports multicast. */
[LOG2U(IFF_PORTSEL)] = "portsel", /* can set media type. */
[LOG2U(IFF_AUTOMEDIA)] = "auto-media", /* auto media select active. */
[LOG2U(IFF_DYNAMIC)] = "dynamic", /* dialup device with changing addresses. */
* Returns the number of sorted items; negative on error. */
int oomd_sort_cgroup_contexts(Hashmap *h, oomd_compare_t compare_func, const char *prefix, OomdCGroupContext ***ret);
-/* If the the cgroup is owned by root, or the cgroups represented by `ctx` and
+/* If the cgroup is owned by root, or the cgroups represented by `ctx` and
* `prefix` are owned by the same user, then set `ctx->preference` using the
* `user.oomd_avoid` and `user.oomd_omit` xattrs. Otherwise, set
* `ctx->preference` to MANAGED_OOM_PREFERENCE_NONE.
assert_se(oomd_fetch_cgroup_oom_preference(ctx, "/herp.slice/derp.scope") == -EINVAL);
/* Assert that avoid/omit are not set if the cgroup and prefix are not
- * owned by the same user.*/
+ * owned by the same user. */
if (test_xattrs && !empty_or_root(cgroup)) {
ctx = oomd_cgroup_context_free(ctx);
assert_se(cg_set_access(SYSTEMD_CGROUP_CONTROLLER, cgroup, 61183, 0) >= 0);
* The dmesg- filename contains the backend-type and the Common Platform Error Record, CPER,
* record id, a 64-bit number.
*
- * Files are processed in reverse lexigraphical order so as to properly reconstruct original dmesg.*/
+ * Files are processed in reverse lexigraphical order so as to properly reconstruct original dmesg. */
for (size_t n = list->n_entries; n > 0; n--) {
PStoreEntry *pe;
* been mounted into) it is thus necessary to create a symlink pointing to the right subdirectory of
* /usr/ first — otherwise we couldn't invoke any dynamic binary. Let's detect this case here, and
* create the symlink as needed should it be missing. We prefer doing this consistently with Debian's
- * multiarch logic, but support Fedora-style multilib too.*/
+ * multiarch logic, but support Fedora-style multilib too. */
#if defined(__aarch64__)
/* aarch64 ELF ABI actually says dynamic loader is in /lib/, but Fedora puts it in /lib64/ anyway and
* just symlinks /lib/ld-linux-aarch64.so.1 to ../lib64/ld-linux-aarch64.so.1. For this to work
assert(ret_directory);
assert(ret_loop_device);
- /* We intend to mount this right-away, hence add the partitions if needed and pin them*/
+ /* We intend to mount this right-away, hence add the partitions if needed and pin them. */
flags |= DISSECT_IMAGE_ADD_PARTITION_DEVICES |
DISSECT_IMAGE_PIN_PARTITION_DEVICES;
};
typedef struct u32_opt {
- uint32_t value; /* a value of 0 indicates the hardware advertised maximum should be used.*/
+ uint32_t value; /* a value of 0 indicates the hardware advertised maximum should be used. */
bool set;
} u32_opt;
static void *dispatch_userdata(const JsonDispatch *p, void *userdata) {
- /* When the the userdata pointer is passed in as NULL, then we'll just use the offset as a literal
+ /* When the userdata pointer is passed in as NULL, then we'll just use the offset as a literal
* address, and convert it to a pointer. Note that might as well just add the offset to the NULL
* pointer, but UndefinedBehaviourSanitizer doesn't like pointer arithmetics based on NULL pointers,
* hence we code this explicitly here. */
return !ether_addr_is_null(&hw_addr->ether) && !ether_addr_is_broadcast(&hw_addr->ether);
case ARPHRD_INFINIBAND:
- /* The last 8 bytes cannot be zero*/
+ /* The last 8 bytes cannot be zero. */
assert(hw_addr->length == INFINIBAND_ALEN);
return !memeqzero(hw_addr->bytes + INFINIBAND_ALEN - 8, 8);
p.add_argument('--stub',
type=pathlib.Path,
- help='path the the sd-stub file [.text,.data,… sections]')
+ help='path to the sd-stub file [.text,.data,… sections]')
p.add_argument('--section',
dest='sections',
SYSTEMD_CRYPTSETUP_USE_TOKEN_MODULE=0 /usr/lib/systemd/systemd-cryptsetup attach test-volume2 $img - tpm2-device=auto,tpm2-signature="/tmp/pcrsign.sig2",headless=1
SYSTEMD_CRYPTSETUP_USE_TOKEN_MODULE=0 /usr/lib/systemd/systemd-cryptsetup detach test-volume2
- # Check if we can activate that (and a second time with the the token module stuff enabled)
+ # Check if we can activate that (and a second time with the token module stuff enabled)
SYSTEMD_CRYPTSETUP_USE_TOKEN_MODULE=1 /usr/lib/systemd/systemd-cryptsetup attach test-volume2 $img - tpm2-device=auto,tpm2-signature="/tmp/pcrsign.sig2",headless=1
SYSTEMD_CRYPTSETUP_USE_TOKEN_MODULE=1 /usr/lib/systemd/systemd-cryptsetup detach test-volume2