mirror of
https://github.com/systemd/systemd
synced 2024-10-14 20:17:52 +00:00
tree-wide: "a" -> "an"
This commit is contained in:
parent
3d62af7d23
commit
387f695526
12
NEWS
12
NEWS
|
@ -282,9 +282,9 @@ CHANGES WITH 249 in spe:
|
||||||
* A new ConditionOSRelease= setting has been added to unit files to
|
* A new ConditionOSRelease= setting has been added to unit files to
|
||||||
check os-release(5) fields. The "=", "!=", "<", "<=", ">=", ">"
|
check os-release(5) fields. The "=", "!=", "<", "<=", ">=", ">"
|
||||||
operators may be used to check if some field has some specific value
|
operators may be used to check if some field has some specific value
|
||||||
or do a aphanumerical comparison. Equality comparisons are useful for
|
or do an alphanumerical comparison. Equality comparisons are useful
|
||||||
fields like ID, but relative comparisons for fields like VERSION_ID
|
for fields like ID, but relative comparisons for fields like
|
||||||
or IMAGE_VERSION.
|
VERSION_ID or IMAGE_VERSION.
|
||||||
|
|
||||||
* hostnamed gained a new Describe() D-Bus method that returns a JSON
|
* hostnamed gained a new Describe() D-Bus method that returns a JSON
|
||||||
serialization of the host data it exposes. This is exposed via
|
serialization of the host data it exposes. This is exposed via
|
||||||
|
@ -1332,7 +1332,7 @@ CHANGES WITH 247:
|
||||||
all system calls known at the time systemd was built.
|
all system calls known at the time systemd was built.
|
||||||
|
|
||||||
* Behaviour of system call filter allow lists has changed slightly:
|
* Behaviour of system call filter allow lists has changed slightly:
|
||||||
system calls that are contained in @known will result in a EPERM by
|
system calls that are contained in @known will result in EPERM by
|
||||||
default, while those not contained in it result in ENOSYS. This
|
default, while those not contained in it result in ENOSYS. This
|
||||||
should improve compatibility because known system calls will thus be
|
should improve compatibility because known system calls will thus be
|
||||||
communicated as prohibited, while unknown (and thus newer ones) will
|
communicated as prohibited, while unknown (and thus newer ones) will
|
||||||
|
@ -5803,7 +5803,7 @@ CHANGES WITH 233:
|
||||||
* sd-id128 gained a new API for generating unique IDs for the host in a
|
* sd-id128 gained a new API for generating unique IDs for the host in a
|
||||||
way that does not leak the machine ID. Specifically,
|
way that does not leak the machine ID. Specifically,
|
||||||
sd_id128_get_machine_app_specific() derives an ID based on the
|
sd_id128_get_machine_app_specific() derives an ID based on the
|
||||||
machine ID a in well-defined, non-reversible, stable way. This is
|
machine ID in a well-defined, non-reversible, stable way. This is
|
||||||
useful whenever an identifier for the host is needed but where the
|
useful whenever an identifier for the host is needed but where the
|
||||||
identifier shall not be useful to identify the system beyond the
|
identifier shall not be useful to identify the system beyond the
|
||||||
scope of the application itself. (Internally this uses HMAC-SHA256 as
|
scope of the application itself. (Internally this uses HMAC-SHA256 as
|
||||||
|
@ -8053,7 +8053,7 @@ CHANGES WITH 220:
|
||||||
|
|
||||||
* udev will no longer create device symlinks for all block devices by
|
* udev will no longer create device symlinks for all block devices by
|
||||||
default. A deny list for excluding special block devices from this
|
default. A deny list for excluding special block devices from this
|
||||||
logic has been turned into a allow list that requires picking block
|
logic has been turned into an allow list that requires picking block
|
||||||
devices explicitly that require device symlinks.
|
devices explicitly that require device symlinks.
|
||||||
|
|
||||||
* A new (currently still internal) API sd-device.h has been
|
* A new (currently still internal) API sd-device.h has been
|
||||||
|
|
|
@ -56,7 +56,7 @@ and only switches back to the shell's UI after the user re-authenticated there.
|
||||||
Note that this change in behavior is a good idea in any case, and does not
|
Note that this change in behavior is a good idea in any case, and does not
|
||||||
create any dependencies on `systemd-homed` or systemd-specific APIs. It's
|
create any dependencies on `systemd-homed` or systemd-specific APIs. It's
|
||||||
simply a change of behavior regarding use of existing APIs, not a suggested
|
simply a change of behavior regarding use of existing APIs, not a suggested
|
||||||
hook-up to a any new API.
|
hook-up to any new APIs.
|
||||||
|
|
||||||
A display manager which supports this kind of out-of-context screen lock
|
A display manager which supports this kind of out-of-context screen lock
|
||||||
operation needs to inform systemd-homed about this so that systemd-homed knows
|
operation needs to inform systemd-homed about this so that systemd-homed knows
|
||||||
|
|
|
@ -685,11 +685,11 @@ in full).
|
||||||
|
|
||||||
The following fields are defined in this section:
|
The following fields are defined in this section:
|
||||||
|
|
||||||
`matchMachineId` → An array of strings with each a formatted 128bit ID in
|
`matchMachineId` → An array of strings that are formatted 128bit IDs in
|
||||||
hex. If any of the specified IDs match the system's local machine ID
|
hex. If any of the specified IDs match the system's local machine ID
|
||||||
(i.e. matches `/etc/machine-id`) the fields in this object are honored.
|
(i.e. matches `/etc/machine-id`) the fields in this object are honored.
|
||||||
|
|
||||||
`matchHostname` → An array of string with a each a valid hostname. If any of
|
`matchHostname` → An array of strings that are valid hostnames. If any of
|
||||||
the specified hostnames match the system's local hostname, the fields in this
|
the specified hostnames match the system's local hostname, the fields in this
|
||||||
object are honored. If both `matchHostname` and `matchMachineId` are used
|
object are honored. If both `matchHostname` and `matchMachineId` are used
|
||||||
within the same array entry, the object is honored when either match succeeds,
|
within the same array entry, the object is honored when either match succeeds,
|
||||||
|
|
|
@ -122,7 +122,7 @@
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><command>emit</command> <arg choice="plain"><replaceable>OBJECT</replaceable></arg> <arg choice="plain"><replaceable>INTERFACE</replaceable></arg> <arg choice="plain"><replaceable>SIGNAL</replaceable></arg> <arg choice="opt"><replaceable>SIGNATURE</replaceable> <arg choice="opt" rep="repeat"><replaceable>ARGUMENT</replaceable></arg></arg></term>
|
<term><command>emit</command> <arg choice="plain"><replaceable>OBJECT</replaceable></arg> <arg choice="plain"><replaceable>INTERFACE</replaceable></arg> <arg choice="plain"><replaceable>SIGNAL</replaceable></arg> <arg choice="opt"><replaceable>SIGNATURE</replaceable> <arg choice="opt" rep="repeat"><replaceable>ARGUMENT</replaceable></arg></arg></term>
|
||||||
|
|
||||||
<listitem><para>Emit a signal. Takes a object path, interface name and method name. If parameters
|
<listitem><para>Emit a signal. Takes an object path, interface name and method name. If parameters
|
||||||
shall be passed, a signature string is required, followed by the arguments, individually formatted as
|
shall be passed, a signature string is required, followed by the arguments, individually formatted as
|
||||||
strings. For details on the formatting used, see below. To specify the destination of the signal,
|
strings. For details on the formatting used, see below. To specify the destination of the signal,
|
||||||
use the <option>--destination=</option> option.</para></listitem>
|
use the <option>--destination=</option> option.</para></listitem>
|
||||||
|
|
|
@ -45,7 +45,7 @@
|
||||||
<para><function>sd_bus_set_fd()</function> sets the file descriptors used to communicate by a bus
|
<para><function>sd_bus_set_fd()</function> sets the file descriptors used to communicate by a bus
|
||||||
connection object. Both <parameter>input_fd</parameter> and <parameter>output_fd</parameter> must be
|
connection object. Both <parameter>input_fd</parameter> and <parameter>output_fd</parameter> must be
|
||||||
valid file descriptors, referring to stream-based file objects (e.g. a stream socket, a pair of pipes or
|
valid file descriptors, referring to stream-based file objects (e.g. a stream socket, a pair of pipes or
|
||||||
FIFOs, or a even a TTY device). <parameter>input_fd</parameter> must be readable, and
|
FIFOs, or even a TTY device). <parameter>input_fd</parameter> must be readable, and
|
||||||
<parameter>output_fd</parameter> must be writable. The same file descriptor may be used (and typically is
|
<parameter>output_fd</parameter> must be writable. The same file descriptor may be used (and typically is
|
||||||
used) as both the input and the output file descriptor. This function must be called before the bus
|
used) as both the input and the output file descriptor. This function must be called before the bus
|
||||||
connection is started via
|
connection is started via
|
||||||
|
|
|
@ -121,7 +121,7 @@
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><constant>-ENOEXEC</constant></term>
|
<term><constant>-ENOEXEC</constant></term>
|
||||||
|
|
||||||
<listitem><para><function>sd_event_source_get_ratelimit()</function> was called on a event source
|
<listitem><para><function>sd_event_source_get_ratelimit()</function> was called on an event source
|
||||||
that doesn't have rate limiting configured.</para></listitem>
|
that doesn't have rate limiting configured.</para></listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
|
|
|
@ -144,7 +144,7 @@
|
||||||
<varlistentry id='property'>
|
<varlistentry id='property'>
|
||||||
<term><varname>Property=</varname></term>
|
<term><varname>Property=</varname></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>A whitespace-separated list of udev property name with its value after a equal
|
<para>A whitespace-separated list of udev property names with their values after equals sign
|
||||||
(<literal>=</literal>). If multiple properties are specified, the test results are ANDed.
|
(<literal>=</literal>). If multiple properties are specified, the test results are ANDed.
|
||||||
If the list is prefixed with a "!", the test is inverted. If a value contains white
|
If the list is prefixed with a "!", the test is inverted. If a value contains white
|
||||||
spaces, then please quote whole key and value pair. If a value contains quotation, then
|
spaces, then please quote whole key and value pair. If a value contains quotation, then
|
||||||
|
|
|
@ -1108,7 +1108,7 @@
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><varname>KeyFile=</varname></term>
|
<term><varname>KeyFile=</varname></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>Takes a absolute path to a file which contains a 128-bit key encoded in a hexadecimal string,
|
<para>Takes an absolute path to a file which contains a 128-bit key encoded in a hexadecimal string,
|
||||||
which will be used in the transmission channel. When this option is specified,
|
which will be used in the transmission channel. When this option is specified,
|
||||||
<varname>Key=</varname> is ignored. Note that the file must be readable by the user
|
<varname>Key=</varname> is ignored. Note that the file must be readable by the user
|
||||||
<literal>systemd-network</literal>, so it should be, e.g., owned by
|
<literal>systemd-network</literal>, so it should be, e.g., owned by
|
||||||
|
|
|
@ -944,7 +944,7 @@ IPv6Token=prefixstable:2002:da8:1::</programlisting></para>
|
||||||
<term><varname>VXLAN=</varname></term>
|
<term><varname>VXLAN=</varname></term>
|
||||||
<term><varname>Xfrm=</varname></term>
|
<term><varname>Xfrm=</varname></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>The name of a IPVLAN, IPVTAP, L2TP, MACsec, MACVLAN, MACVTAP, tunnel, VLAN, VXLAN, or
|
<para>The name of an IPVLAN, IPVTAP, L2TP, MACsec, MACVLAN, MACVTAP, tunnel, VLAN, VXLAN, or
|
||||||
Xfrm to be created on the link. See
|
Xfrm to be created on the link. See
|
||||||
<citerefentry><refentrytitle>systemd.netdev</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
|
<citerefentry><refentrytitle>systemd.netdev</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
|
||||||
This option may be specified more than once.</para>
|
This option may be specified more than once.</para>
|
||||||
|
@ -3495,7 +3495,7 @@ IPv6Token=prefixstable:2002:da8:1::</programlisting></para>
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><varname>VirtualQueues=</varname></term>
|
<term><varname>VirtualQueues=</varname></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>Specifies the number of virtual queues. Takes a integer in the range 1…16. Defaults to unset
|
<para>Specifies the number of virtual queues. Takes an integer in the range 1…16. Defaults to unset
|
||||||
and kernel's default is used.</para>
|
and kernel's default is used.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
|
@ -28,7 +28,7 @@ _arguments \
|
||||||
'--private-network[Disconnect networking of the container from the host.]' \
|
'--private-network[Disconnect networking of the container from the host.]' \
|
||||||
'--network-interface=[Assign the specified network interface to the container.]: : _net_interfaces' \
|
'--network-interface=[Assign the specified network interface to the container.]: : _net_interfaces' \
|
||||||
'--network-macvlan=[Create a "macvlan" interface of the specified Ethernet network interface and add it to the container.]: : _net_interfaces' \
|
'--network-macvlan=[Create a "macvlan" interface of the specified Ethernet network interface and add it to the container.]: : _net_interfaces' \
|
||||||
'--network-ipvlan=[Create a ipvlan network interface based on an existing network interface to the container.]: : _net_interfaces' \
|
'--network-ipvlan=[Create an "ipvlan" network interface based on an existing network interface to the container.]: : _net_interfaces' \
|
||||||
{--network-veth,-n}'[Create a virtual Ethernet link (veth) between host and container.]' \
|
{--network-veth,-n}'[Create a virtual Ethernet link (veth) between host and container.]' \
|
||||||
'--network-bridge=[Adds the host side of the Ethernet link created with --network-veth to the specified bridge.]: : _net_interfaces' \
|
'--network-bridge=[Adds the host side of the Ethernet link created with --network-veth to the specified bridge.]: : _net_interfaces' \
|
||||||
{--port=,-p+}'[Expose a container IP port on the host.]: : _message port' \
|
{--port=,-p+}'[Expose a container IP port on the host.]: : _message port' \
|
||||||
|
|
|
@ -92,7 +92,7 @@ static int files_add(
|
||||||
if (flags & (CONF_FILES_REGULAR|CONF_FILES_DIRECTORY))
|
if (flags & (CONF_FILES_REGULAR|CONF_FILES_DIRECTORY))
|
||||||
if (!((flags & CONF_FILES_DIRECTORY) && S_ISDIR(st.st_mode)) &&
|
if (!((flags & CONF_FILES_DIRECTORY) && S_ISDIR(st.st_mode)) &&
|
||||||
!((flags & CONF_FILES_REGULAR) && S_ISREG(st.st_mode))) {
|
!((flags & CONF_FILES_REGULAR) && S_ISREG(st.st_mode))) {
|
||||||
log_debug("Ignoring '%s/%s', as it is not a of the right type.", dirpath, de->d_name);
|
log_debug("Ignoring '%s/%s', as it does not have the right type.", dirpath, de->d_name);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -112,7 +112,7 @@ assert_cc(IDX_FIRST == _IDX_SWAP_END);
|
||||||
assert_cc(IDX_FIRST == _IDX_ITERATOR_FIRST);
|
assert_cc(IDX_FIRST == _IDX_ITERATOR_FIRST);
|
||||||
|
|
||||||
/* Storage space for the "swap" buckets.
|
/* Storage space for the "swap" buckets.
|
||||||
* All entry types can fit into a ordered_hashmap_entry. */
|
* All entry types can fit into an ordered_hashmap_entry. */
|
||||||
struct swap_entries {
|
struct swap_entries {
|
||||||
struct ordered_hashmap_entry e[_IDX_SWAP_END - _IDX_SWAP_BEGIN];
|
struct ordered_hashmap_entry e[_IDX_SWAP_END - _IDX_SWAP_BEGIN];
|
||||||
};
|
};
|
||||||
|
|
|
@ -224,7 +224,7 @@ static inline int ordered_hashmap_remove_and_replace(OrderedHashmap *h, const vo
|
||||||
return hashmap_remove_and_replace(PLAIN_HASHMAP(h), old_key, new_key, value);
|
return hashmap_remove_and_replace(PLAIN_HASHMAP(h), old_key, new_key, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Since merging data from a OrderedHashmap into a Hashmap or vice-versa
|
/* Since merging data from an OrderedHashmap into a Hashmap or vice-versa
|
||||||
* should just work, allow this by having looser type-checking here. */
|
* should just work, allow this by having looser type-checking here. */
|
||||||
int _hashmap_merge(Hashmap *h, Hashmap *other);
|
int _hashmap_merge(Hashmap *h, Hashmap *other);
|
||||||
#define hashmap_merge(h, other) _hashmap_merge(PLAIN_HASHMAP(h), PLAIN_HASHMAP(other))
|
#define hashmap_merge(h, other) _hashmap_merge(PLAIN_HASHMAP(h), PLAIN_HASHMAP(other))
|
||||||
|
|
|
@ -6251,7 +6251,7 @@ int exec_runtime_acquire(Manager *m, const ExecContext *c, const char *id, bool
|
||||||
|
|
||||||
rt = hashmap_get(m->exec_runtime_by_id, id);
|
rt = hashmap_get(m->exec_runtime_by_id, id);
|
||||||
if (rt)
|
if (rt)
|
||||||
/* We already have a ExecRuntime object, let's increase the ref count and reuse it */
|
/* We already have an ExecRuntime object, let's increase the ref count and reuse it */
|
||||||
goto ref;
|
goto ref;
|
||||||
|
|
||||||
if (!create) {
|
if (!create) {
|
||||||
|
|
|
@ -3195,7 +3195,7 @@ int config_parse_syscall_filter(
|
||||||
/* Allow nothing but the ones listed */
|
/* Allow nothing but the ones listed */
|
||||||
c->syscall_allow_list = true;
|
c->syscall_allow_list = true;
|
||||||
|
|
||||||
/* Accept default syscalls if we are on a allow_list */
|
/* Accept default syscalls if we are on an allow_list */
|
||||||
r = seccomp_parse_syscall_filter(
|
r = seccomp_parse_syscall_filter(
|
||||||
"@default", -1, c->syscall_filter,
|
"@default", -1, c->syscall_filter,
|
||||||
SECCOMP_PARSE_PERMISSIVE|SECCOMP_PARSE_ALLOW_LIST,
|
SECCOMP_PARSE_PERMISSIVE|SECCOMP_PARSE_ALLOW_LIST,
|
||||||
|
|
|
@ -633,7 +633,7 @@ static int add_root_mount(void) {
|
||||||
int r;
|
int r;
|
||||||
|
|
||||||
if (!is_efi_boot()) {
|
if (!is_efi_boot()) {
|
||||||
log_debug("Not a EFI boot, not creating root mount.");
|
log_debug("Not an EFI boot, not creating root mount.");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -93,7 +93,7 @@ static struct udev_enumerate *udev_enumerate_free(struct udev_enumerate *udev_en
|
||||||
* udev_enumerate_ref:
|
* udev_enumerate_ref:
|
||||||
* @udev_enumerate: context
|
* @udev_enumerate: context
|
||||||
*
|
*
|
||||||
* Take a reference of a enumeration context.
|
* Take a reference of an enumeration context.
|
||||||
*
|
*
|
||||||
* Returns: the passed enumeration context
|
* Returns: the passed enumeration context
|
||||||
**/
|
**/
|
||||||
|
|
|
@ -72,7 +72,7 @@ struct Manager {
|
||||||
* this is != 0 and encodes what is being done */
|
* this is != 0 and encodes what is being done */
|
||||||
InhibitWhat action_what;
|
InhibitWhat action_what;
|
||||||
|
|
||||||
/* If a shutdown/suspend was delayed due to a inhibitor this
|
/* If a shutdown/suspend was delayed due to an inhibitor this
|
||||||
contains the unit name we are supposed to start after the
|
contains the unit name we are supposed to start after the
|
||||||
delay is over */
|
delay is over */
|
||||||
const char *action_unit;
|
const char *action_unit;
|
||||||
|
|
|
@ -47,7 +47,7 @@ static int ipv6_proxy_ndp_address_configure_handler(sd_netlink *rtnl, sd_netlink
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* send a request to the kernel to add a IPv6 Proxy entry to the neighbour table */
|
/* send a request to the kernel to add an IPv6 Proxy entry to the neighbour table */
|
||||||
static int ipv6_proxy_ndp_address_configure(
|
static int ipv6_proxy_ndp_address_configure(
|
||||||
const struct in6_addr *address,
|
const struct in6_addr *address,
|
||||||
Link *link,
|
Link *link,
|
||||||
|
|
|
@ -368,7 +368,7 @@ static int help(void) {
|
||||||
" Create a macvlan network interface based on an\n"
|
" Create a macvlan network interface based on an\n"
|
||||||
" existing network interface to the container\n"
|
" existing network interface to the container\n"
|
||||||
" --network-ipvlan=INTERFACE\n"
|
" --network-ipvlan=INTERFACE\n"
|
||||||
" Create a ipvlan network interface based on an\n"
|
" Create an ipvlan network interface based on an\n"
|
||||||
" existing network interface to the container\n"
|
" existing network interface to the container\n"
|
||||||
" -n --network-veth Add a virtual Ethernet connection between host\n"
|
" -n --network-veth Add a virtual Ethernet connection between host\n"
|
||||||
" and container\n"
|
" and container\n"
|
||||||
|
|
|
@ -533,7 +533,7 @@ DnsServerFeatureLevel dns_server_possible_feature_level(DnsServer *s) {
|
||||||
DNS_SERVER_FEATURE_LEVEL_IS_DNSSEC(s->possible_feature_level) &&
|
DNS_SERVER_FEATURE_LEVEL_IS_DNSSEC(s->possible_feature_level) &&
|
||||||
dns_server_get_dnssec_mode(s) != DNSSEC_YES) {
|
dns_server_get_dnssec_mode(s) != DNSSEC_YES) {
|
||||||
|
|
||||||
/* RRSIG data was missing on a EDNS0 packet with DO bit set. This means the server
|
/* RRSIG data was missing on an EDNS0 packet with DO bit set. This means the server
|
||||||
* doesn't augment responses with DNSSEC RRs. If so, let's better not ask the server
|
* doesn't augment responses with DNSSEC RRs. If so, let's better not ask the server
|
||||||
* for it anymore, after all some servers generate different replies depending if an
|
* for it anymore, after all some servers generate different replies depending if an
|
||||||
* OPT RR is in the query or not. If we are in strict DNSSEC mode, don't allow such
|
* OPT RR is in the query or not. If we are in strict DNSSEC mode, don't allow such
|
||||||
|
|
|
@ -14,7 +14,7 @@ struct bus_properties_map {
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
BUS_MAP_STRDUP = 1 << 0, /* If set, each "s" message is duplicated. Thus, each pointer needs to be freed. */
|
BUS_MAP_STRDUP = 1 << 0, /* If set, each "s" message is duplicated. Thus, each pointer needs to be freed. */
|
||||||
BUS_MAP_BOOLEAN_AS_BOOL = 1 << 1, /* If set, each "b" message is written to a bool pointer. If not set, "b" is written to a int pointer. */
|
BUS_MAP_BOOLEAN_AS_BOOL = 1 << 1, /* If set, each "b" message is written to a bool pointer. If not set, "b" is written to an int pointer. */
|
||||||
};
|
};
|
||||||
|
|
||||||
int bus_map_id128(sd_bus *bus, const char *member, sd_bus_message *m, sd_bus_error *error, void *userdata);
|
int bus_map_id128(sd_bus *bus, const char *member, sd_bus_message *m, sd_bus_error *error, void *userdata);
|
||||||
|
|
|
@ -561,7 +561,7 @@ static int nft_add_element(sd_netlink *nfnl, sd_netlink_message **ret,
|
||||||
/*
|
/*
|
||||||
* Ideally there would be an API that provides:
|
* Ideally there would be an API that provides:
|
||||||
*
|
*
|
||||||
* 1) a init function to add the main ruleset skeleton
|
* 1) an init function to add the main ruleset skeleton
|
||||||
* 2) a function that populates the sets with all known address/port pairs to s/dnat for
|
* 2) a function that populates the sets with all known address/port pairs to s/dnat for
|
||||||
* 3) a function that can remove address/port pairs again.
|
* 3) a function that can remove address/port pairs again.
|
||||||
*
|
*
|
||||||
|
|
|
@ -2694,7 +2694,7 @@ int table_print_with_pager(
|
||||||
|
|
||||||
assert(t);
|
assert(t);
|
||||||
|
|
||||||
/* A all-in-one solution for showing tables, and turning on a pager first. Also optionally suppresses
|
/* An all-in-one solution for showing tables, and turning on a pager first. Also optionally suppresses
|
||||||
* the table header and logs about any error. */
|
* the table header and logs about any error. */
|
||||||
|
|
||||||
if (json_format_flags & (JSON_FORMAT_OFF|JSON_FORMAT_PRETTY|JSON_FORMAT_PRETTY_AUTO))
|
if (json_format_flags & (JSON_FORMAT_OFF|JSON_FORMAT_PRETTY|JSON_FORMAT_PRETTY_AUTO))
|
||||||
|
|
|
@ -4242,7 +4242,7 @@ int json_dispatch_uid_gid(const char *name, JsonVariant *variant, JsonDispatchFl
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!json_variant_is_unsigned(variant))
|
if (!json_variant_is_unsigned(variant))
|
||||||
return json_log(variant, flags, SYNTHETIC_ERRNO(EINVAL), "JSON field '%s' is not a integer.", strna(name));
|
return json_log(variant, flags, SYNTHETIC_ERRNO(EINVAL), "JSON field '%s' is not an integer.", strna(name));
|
||||||
|
|
||||||
k = json_variant_unsigned(variant);
|
k = json_variant_unsigned(variant);
|
||||||
if (k > UINT32_MAX || !uid_is_valid(k))
|
if (k > UINT32_MAX || !uid_is_valid(k))
|
||||||
|
|
|
@ -708,7 +708,7 @@ static int json_dispatch_tasks_or_memory_max(const char *name, JsonVariant *vari
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!json_variant_is_unsigned(variant))
|
if (!json_variant_is_unsigned(variant))
|
||||||
return json_log(variant, flags, SYNTHETIC_ERRNO(EINVAL), "JSON field '%s' is not a integer.", strna(name));
|
return json_log(variant, flags, SYNTHETIC_ERRNO(EINVAL), "JSON field '%s' is not an integer.", strna(name));
|
||||||
|
|
||||||
k = json_variant_unsigned(variant);
|
k = json_variant_unsigned(variant);
|
||||||
if (k <= 0 || k >= UINT64_MAX)
|
if (k <= 0 || k >= UINT64_MAX)
|
||||||
|
@ -728,7 +728,7 @@ static int json_dispatch_weight(const char *name, JsonVariant *variant, JsonDisp
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!json_variant_is_unsigned(variant))
|
if (!json_variant_is_unsigned(variant))
|
||||||
return json_log(variant, flags, SYNTHETIC_ERRNO(EINVAL), "JSON field '%s' is not a integer.", strna(name));
|
return json_log(variant, flags, SYNTHETIC_ERRNO(EINVAL), "JSON field '%s' is not an integer.", strna(name));
|
||||||
|
|
||||||
k = json_variant_unsigned(variant);
|
k = json_variant_unsigned(variant);
|
||||||
if (k <= CGROUP_WEIGHT_MIN || k >= CGROUP_WEIGHT_MAX)
|
if (k <= CGROUP_WEIGHT_MIN || k >= CGROUP_WEIGHT_MAX)
|
||||||
|
|
|
@ -489,7 +489,7 @@ int main(int argc, char *argv[]) {
|
||||||
if (!changed && umount_log_level == LOG_INFO && !can_initrd) {
|
if (!changed && umount_log_level == LOG_INFO && !can_initrd) {
|
||||||
/* There are things we cannot get rid of. Loop one more time
|
/* There are things we cannot get rid of. Loop one more time
|
||||||
* with LOG_ERR to inform the user. Note that we don't need
|
* with LOG_ERR to inform the user. Note that we don't need
|
||||||
* to do this if there is a initrd to switch to, because that
|
* to do this if there is an initrd to switch to, because that
|
||||||
* one is likely to get rid of the remaining mounts. If not,
|
* one is likely to get rid of the remaining mounts. If not,
|
||||||
* it will log about them. */
|
* it will log about them. */
|
||||||
umount_log_level = LOG_ERR;
|
umount_log_level = LOG_ERR;
|
||||||
|
|
|
@ -1588,7 +1588,7 @@ static int parse_line(const char *fname, unsigned line, const char *buffer) {
|
||||||
|
|
||||||
if (!resolved_id)
|
if (!resolved_id)
|
||||||
return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
|
return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
|
||||||
"[%s:%u] Lines of type 'r' require a ID range in the third field.",
|
"[%s:%u] Lines of type 'r' require an ID range in the third field.",
|
||||||
fname, line);
|
fname, line);
|
||||||
|
|
||||||
if (description || home || shell)
|
if (description || home || shell)
|
||||||
|
|
|
@ -531,7 +531,7 @@ static int parse_argv(int argc, char *argv[]) {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* To be able to ask on all terminal devices of /dev/console the devices are collected. If more than one
|
* To be able to ask on all terminal devices of /dev/console the devices are collected. If more than one
|
||||||
* device is found, then on each of the terminals a inquiring task is forked. Every task has its own session
|
* device is found, then on each of the terminals an inquiring task is forked. Every task has its own session
|
||||||
* and its own controlling terminal. If one of the tasks does handle a password, the remaining tasks will be
|
* and its own controlling terminal. If one of the tasks does handle a password, the remaining tasks will be
|
||||||
* terminated.
|
* terminated.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -297,7 +297,7 @@ static void disk_identify_fixup_uint16 (uint8_t identify[512], unsigned offset_w
|
||||||
* disk_identify:
|
* disk_identify:
|
||||||
* @fd: File descriptor for the block device.
|
* @fd: File descriptor for the block device.
|
||||||
* @out_identify: Return location for IDENTIFY data.
|
* @out_identify: Return location for IDENTIFY data.
|
||||||
* @out_is_packet_device: Return location for whether returned data is from a IDENTIFY PACKET DEVICE.
|
* @out_is_packet_device: Return location for whether returned data is from an IDENTIFY PACKET DEVICE.
|
||||||
*
|
*
|
||||||
* Sends the IDENTIFY DEVICE or IDENTIFY PACKET DEVICE command to the
|
* Sends the IDENTIFY DEVICE or IDENTIFY PACKET DEVICE command to the
|
||||||
* device represented by @fd. If successful, then the result will be
|
* device represented by @fd. If successful, then the result will be
|
||||||
|
|
Loading…
Reference in a new issue