Compare commits
No commits in common. "2b2919a5ff78f165159b110cddaaa033e0485f94" and "0b220a5f2a31844eaa1f5426bab02d41d54f471c" have entirely different histories.
2b2919a5ff
...
0b220a5f2a
|
@ -99,13 +99,6 @@ And after that, head over to your repo on GitHub and click "Compare & pull reque
|
|||
Happy hacking!
|
||||
|
||||
|
||||
## Developer and release modes
|
||||
|
||||
In the default meson configuration (`-Dmode=developer`), certain checks are
|
||||
enabled that are suitable when hacking on systemd (such as internal
|
||||
documentation consistency checks). Those are not useful when compiling for code
|
||||
for distribution and can be disabled by setting `-Dmode=release`.
|
||||
|
||||
## Fuzzers
|
||||
|
||||
systemd includes fuzzers in `src/fuzz/` that use libFuzzer and are automatically
|
||||
|
|
|
@ -263,8 +263,8 @@
|
|||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><varname>udev.log_level=</varname></term>
|
||||
<term><varname>rd.udev.log_level=</varname></term>
|
||||
<term><varname>udev.log_priority=</varname></term>
|
||||
<term><varname>rd.udev.log_priority=</varname></term>
|
||||
<term><varname>udev.children_max=</varname></term>
|
||||
<term><varname>rd.udev.children_max=</varname></term>
|
||||
<term><varname>udev.exec_delay=</varname></term>
|
||||
|
|
|
@ -2655,8 +2655,6 @@ node /org/freedesktop/systemd1/unit/avahi_2ddaemon_2eservice {
|
|||
@org.freedesktop.DBus.Property.EmitsChangedSignal("const")
|
||||
readonly i SystemCallErrorNumber = ...;
|
||||
@org.freedesktop.DBus.Property.EmitsChangedSignal("const")
|
||||
readonly (bas) SystemCallLog = ...;
|
||||
@org.freedesktop.DBus.Property.EmitsChangedSignal("const")
|
||||
readonly s Personality = '...';
|
||||
@org.freedesktop.DBus.Property.EmitsChangedSignal("const")
|
||||
readonly b LockPersonality = ...;
|
||||
|
@ -3158,8 +3156,6 @@ node /org/freedesktop/systemd1/unit/avahi_2ddaemon_2eservice {
|
|||
|
||||
<!--property SystemCallErrorNumber is not documented!-->
|
||||
|
||||
<!--property SystemCallLog is not documented!-->
|
||||
|
||||
<!--property Personality is not documented!-->
|
||||
|
||||
<!--property LockPersonality is not documented!-->
|
||||
|
@ -3718,8 +3714,6 @@ node /org/freedesktop/systemd1/unit/avahi_2ddaemon_2eservice {
|
|||
|
||||
<variablelist class="dbus-property" generated="True" extra-ref="SystemCallErrorNumber"/>
|
||||
|
||||
<variablelist class="dbus-property" generated="True" extra-ref="SystemCallLog"/>
|
||||
|
||||
<variablelist class="dbus-property" generated="True" extra-ref="Personality"/>
|
||||
|
||||
<variablelist class="dbus-property" generated="True" extra-ref="LockPersonality"/>
|
||||
|
@ -4362,8 +4356,6 @@ node /org/freedesktop/systemd1/unit/avahi_2ddaemon_2esocket {
|
|||
@org.freedesktop.DBus.Property.EmitsChangedSignal("const")
|
||||
readonly i SystemCallErrorNumber = ...;
|
||||
@org.freedesktop.DBus.Property.EmitsChangedSignal("const")
|
||||
readonly (bas) SystemCallLog = ...;
|
||||
@org.freedesktop.DBus.Property.EmitsChangedSignal("const")
|
||||
readonly s Personality = '...';
|
||||
@org.freedesktop.DBus.Property.EmitsChangedSignal("const")
|
||||
readonly b LockPersonality = ...;
|
||||
|
@ -4891,8 +4883,6 @@ node /org/freedesktop/systemd1/unit/avahi_2ddaemon_2esocket {
|
|||
|
||||
<!--property SystemCallErrorNumber is not documented!-->
|
||||
|
||||
<!--property SystemCallLog is not documented!-->
|
||||
|
||||
<!--property Personality is not documented!-->
|
||||
|
||||
<!--property LockPersonality is not documented!-->
|
||||
|
@ -5451,8 +5441,6 @@ node /org/freedesktop/systemd1/unit/avahi_2ddaemon_2esocket {
|
|||
|
||||
<variablelist class="dbus-property" generated="True" extra-ref="SystemCallErrorNumber"/>
|
||||
|
||||
<variablelist class="dbus-property" generated="True" extra-ref="SystemCallLog"/>
|
||||
|
||||
<variablelist class="dbus-property" generated="True" extra-ref="Personality"/>
|
||||
|
||||
<variablelist class="dbus-property" generated="True" extra-ref="LockPersonality"/>
|
||||
|
@ -6021,8 +6009,6 @@ node /org/freedesktop/systemd1/unit/home_2emount {
|
|||
@org.freedesktop.DBus.Property.EmitsChangedSignal("const")
|
||||
readonly i SystemCallErrorNumber = ...;
|
||||
@org.freedesktop.DBus.Property.EmitsChangedSignal("const")
|
||||
readonly (bas) SystemCallLog = ...;
|
||||
@org.freedesktop.DBus.Property.EmitsChangedSignal("const")
|
||||
readonly s Personality = '...';
|
||||
@org.freedesktop.DBus.Property.EmitsChangedSignal("const")
|
||||
readonly b LockPersonality = ...;
|
||||
|
@ -6480,8 +6466,6 @@ node /org/freedesktop/systemd1/unit/home_2emount {
|
|||
|
||||
<!--property SystemCallErrorNumber is not documented!-->
|
||||
|
||||
<!--property SystemCallLog is not documented!-->
|
||||
|
||||
<!--property Personality is not documented!-->
|
||||
|
||||
<!--property LockPersonality is not documented!-->
|
||||
|
@ -6960,8 +6944,6 @@ node /org/freedesktop/systemd1/unit/home_2emount {
|
|||
|
||||
<variablelist class="dbus-property" generated="True" extra-ref="SystemCallErrorNumber"/>
|
||||
|
||||
<variablelist class="dbus-property" generated="True" extra-ref="SystemCallLog"/>
|
||||
|
||||
<variablelist class="dbus-property" generated="True" extra-ref="Personality"/>
|
||||
|
||||
<variablelist class="dbus-property" generated="True" extra-ref="LockPersonality"/>
|
||||
|
@ -7645,8 +7627,6 @@ node /org/freedesktop/systemd1/unit/dev_2dsda3_2eswap {
|
|||
@org.freedesktop.DBus.Property.EmitsChangedSignal("const")
|
||||
readonly i SystemCallErrorNumber = ...;
|
||||
@org.freedesktop.DBus.Property.EmitsChangedSignal("const")
|
||||
readonly (bas) SystemCallLog = ...;
|
||||
@org.freedesktop.DBus.Property.EmitsChangedSignal("const")
|
||||
readonly s Personality = '...';
|
||||
@org.freedesktop.DBus.Property.EmitsChangedSignal("const")
|
||||
readonly b LockPersonality = ...;
|
||||
|
@ -8090,8 +8070,6 @@ node /org/freedesktop/systemd1/unit/dev_2dsda3_2eswap {
|
|||
|
||||
<!--property SystemCallErrorNumber is not documented!-->
|
||||
|
||||
<!--property SystemCallLog is not documented!-->
|
||||
|
||||
<!--property Personality is not documented!-->
|
||||
|
||||
<!--property LockPersonality is not documented!-->
|
||||
|
@ -8556,8 +8534,6 @@ node /org/freedesktop/systemd1/unit/dev_2dsda3_2eswap {
|
|||
|
||||
<variablelist class="dbus-property" generated="True" extra-ref="SystemCallErrorNumber"/>
|
||||
|
||||
<variablelist class="dbus-property" generated="True" extra-ref="SystemCallLog"/>
|
||||
|
||||
<variablelist class="dbus-property" generated="True" extra-ref="Personality"/>
|
||||
|
||||
<variablelist class="dbus-property" generated="True" extra-ref="LockPersonality"/>
|
||||
|
|
|
@ -143,8 +143,8 @@
|
|||
<para>Parameters prefixed with "rd." will be read when <command>systemd-udevd</command> is used in an
|
||||
initrd, those without will be processed both in the initrd and on the host.</para>
|
||||
<varlistentry>
|
||||
<term><varname>udev.log_level=</varname></term>
|
||||
<term><varname>rd.udev.log_level=</varname></term>
|
||||
<term><varname>udev.log_priority=</varname></term>
|
||||
<term><varname>rd.udev.log_priority=</varname></term>
|
||||
<listitem>
|
||||
<para>Set the log level.</para>
|
||||
</listitem>
|
||||
|
|
|
@ -398,7 +398,7 @@
|
|||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><option>-l</option></term>
|
||||
<term><option>--log-level=<replaceable>value</replaceable></option></term>
|
||||
<term><option>--log-priority=<replaceable>value</replaceable></option></term>
|
||||
<listitem>
|
||||
<para>Set the internal log level of
|
||||
<filename>systemd-udevd</filename>. Valid values are the
|
||||
|
|
|
@ -3513,7 +3513,6 @@ watchdog_opt = service_watchdog == '' ? 'disabled' : service_watchdog
|
|||
status = [
|
||||
'@0@ @1@'.format(meson.project_name(), meson.project_version()),
|
||||
|
||||
'build mode: @0@'.format(get_option('mode')),
|
||||
'split /usr: @0@'.format(split_usr),
|
||||
'split bin-sbin: @0@'.format(split_bin),
|
||||
'prefix directory: @0@'.format(prefixdir),
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
option('version-tag', type : 'string',
|
||||
description : 'override the git version string')
|
||||
|
||||
option('mode', type : 'combo', choices : ['developer', 'release'],
|
||||
option('mode', type : 'combo', choices : ['default', 'developer'],
|
||||
description : 'enable additional checks suitable for systemd development')
|
||||
|
||||
option('split-usr', type : 'combo', choices : ['auto', 'true', 'false'],
|
||||
|
|
|
@ -34,7 +34,7 @@ static int help(void) {
|
|||
" -h --help Show this help\n"
|
||||
" -V --version Show package version\n"
|
||||
" -e --exit Instruct the daemon to cleanup and exit\n"
|
||||
" -l --log-level=LEVEL Set the udev log level for the daemon\n"
|
||||
" -l --log-priority=LEVEL Set the udev log level for the daemon\n"
|
||||
" -s --stop-exec-queue Do not execute events, queue only\n"
|
||||
" -S --start-exec-queue Execute events, flush queue\n"
|
||||
" -R --reload Reload rules and databases\n"
|
||||
|
@ -58,8 +58,7 @@ int control_main(int argc, char *argv[], void *userdata) {
|
|||
|
||||
static const struct option options[] = {
|
||||
{ "exit", no_argument, NULL, 'e' },
|
||||
{ "log-level", required_argument, NULL, 'l' },
|
||||
{ "log-priority", required_argument, NULL, 'l' }, /* for backward compatibility */
|
||||
{ "log-priority", required_argument, NULL, 'l' },
|
||||
{ "stop-exec-queue", no_argument, NULL, 's' },
|
||||
{ "start-exec-queue", no_argument, NULL, 'S' },
|
||||
{ "reload", no_argument, NULL, 'R' },
|
||||
|
@ -99,11 +98,11 @@ int control_main(int argc, char *argv[], void *userdata) {
|
|||
case 'l':
|
||||
r = log_level_from_string(optarg);
|
||||
if (r < 0)
|
||||
return log_error_errno(r, "Failed to parse log level '%s': %m", optarg);
|
||||
return log_error_errno(r, "Failed to parse log priority '%s': %m", optarg);
|
||||
|
||||
r = udev_ctrl_send_set_log_level(uctrl, r);
|
||||
if (r == -ENOANO)
|
||||
log_warning("Cannot specify --log-level after --exit, ignoring.");
|
||||
log_warning("Cannot specify --log-priority after --exit, ignoring.");
|
||||
else if (r < 0)
|
||||
return log_error_errno(r, "Failed to send request to set log level: %m");
|
||||
break;
|
||||
|
|
|
@ -1050,7 +1050,7 @@ static int on_ctrl_msg(struct udev_ctrl *uctrl, enum udev_ctrl_msg_type type, co
|
|||
|
||||
switch (type) {
|
||||
case UDEV_CTRL_SET_LOG_LEVEL:
|
||||
log_debug("Received udev control message (SET_LOG_LEVEL), setting log_level=%i", value->intval);
|
||||
log_debug("Received udev control message (SET_LOG_LEVEL), setting log_priority=%i", value->intval);
|
||||
log_set_max_level_realm(LOG_REALM_UDEV, value->intval);
|
||||
log_set_max_level_realm(LOG_REALM_SYSTEMD, value->intval);
|
||||
manager_kill_workers(manager);
|
||||
|
@ -1467,7 +1467,7 @@ static int listen_fds(int *ret_ctrl, int *ret_netlink) {
|
|||
|
||||
/*
|
||||
* read the kernel command line, in case we need to get into debug mode
|
||||
* udev.log_level=<level> syslog priority
|
||||
* udev.log_priority=<level> syslog priority
|
||||
* udev.children_max=<number of workers> events are fully serialized if set to 1
|
||||
* udev.exec_delay=<number of seconds> delay execution of every executed program
|
||||
* udev.event_timeout=<number of seconds> seconds to wait before terminating an event
|
||||
|
@ -1478,8 +1478,7 @@ static int parse_proc_cmdline_item(const char *key, const char *value, void *dat
|
|||
|
||||
assert(key);
|
||||
|
||||
if (proc_cmdline_key_streq(key, "udev.log_level") ||
|
||||
proc_cmdline_key_streq(key, "udev.log_priority")) { /* kept for backward compatibility */
|
||||
if (proc_cmdline_key_streq(key, "udev.log_priority")) {
|
||||
|
||||
if (proc_cmdline_value_missing(key, value))
|
||||
return 0;
|
||||
|
|
|
@ -297,7 +297,7 @@ rd.systemd.verity=
|
|||
rd.udev.children_max=
|
||||
rd.udev.event_timeout=
|
||||
rd.udev.exec_delay=
|
||||
rd.udev.log_level=
|
||||
rd.udev.log_priority=
|
||||
resume=
|
||||
resumeflags=
|
||||
root=
|
||||
|
@ -331,7 +331,7 @@ systemd.watchdog_device=
|
|||
udev.children_max=
|
||||
udev.event_timeout=
|
||||
udev.exec_delay=
|
||||
udev.log_level=
|
||||
udev.log_priority=
|
||||
vconsole.font=
|
||||
vconsole.font_map=
|
||||
vconsole.font_unimap=
|
||||
|
|
|
@ -5,18 +5,15 @@ import argparse
|
|||
import collections
|
||||
import sys
|
||||
import os
|
||||
import shlex
|
||||
import subprocess
|
||||
import io
|
||||
from lxml import etree
|
||||
|
||||
try:
|
||||
from lxml import etree
|
||||
except ModuleNotFoundError as e:
|
||||
etree = e
|
||||
|
||||
try:
|
||||
from shlex import join as shlex_join
|
||||
except ImportError as e:
|
||||
shlex_join = e
|
||||
PARSER = etree.XMLParser(no_network=True,
|
||||
remove_comments=False,
|
||||
strip_cdata=False,
|
||||
resolve_entities=False)
|
||||
|
||||
class NoCommand(Exception):
|
||||
pass
|
||||
|
@ -27,12 +24,6 @@ BORING_INTERFACES = [
|
|||
'org.freedesktop.DBus.Properties',
|
||||
]
|
||||
|
||||
def xml_parser():
|
||||
return etree.XMLParser(no_network=True,
|
||||
remove_comments=False,
|
||||
strip_cdata=False,
|
||||
resolve_entities=False)
|
||||
|
||||
def print_method(declarations, elem, *, prefix, file, is_signal=False):
|
||||
name = elem.get('name')
|
||||
klass = 'signal' if is_signal else 'method'
|
||||
|
@ -187,7 +178,7 @@ def subst_output(document, programlisting, stats):
|
|||
interface = programlisting.get('interface')
|
||||
|
||||
argv = [f'{opts.build_dir}/{executable}', f'--bus-introspect={interface}']
|
||||
print(f'COMMAND: {shlex_join(argv)}')
|
||||
print(f'COMMAND: {shlex.join(argv)}')
|
||||
|
||||
try:
|
||||
out = subprocess.check_output(argv, text=True)
|
||||
|
@ -195,7 +186,7 @@ def subst_output(document, programlisting, stats):
|
|||
print(f'{executable} not found, ignoring', file=sys.stderr)
|
||||
return
|
||||
|
||||
xml = etree.fromstring(out, parser=xml_parser())
|
||||
xml = etree.fromstring(out, parser=PARSER)
|
||||
|
||||
new_text, declarations, interfaces = xml_to_text(node, xml, only_interface=interface)
|
||||
programlisting.text = '\n' + new_text + ' '
|
||||
|
@ -259,7 +250,7 @@ def subst_output(document, programlisting, stats):
|
|||
|
||||
def process(page):
|
||||
src = open(page).read()
|
||||
xml = etree.fromstring(src, parser=xml_parser())
|
||||
xml = etree.fromstring(src, parser=PARSER)
|
||||
|
||||
# print('parsing {}'.format(name), file=sys.stderr)
|
||||
if xml.tag != 'refentry':
|
||||
|
@ -297,11 +288,6 @@ def parse_args():
|
|||
if __name__ == '__main__':
|
||||
opts = parse_args()
|
||||
|
||||
for item in (etree, shlex_join):
|
||||
if isinstance(item, Exception):
|
||||
print(item, file=sys.stderr)
|
||||
exit(77 if opts.test else 1)
|
||||
|
||||
if not os.path.exists(f'{opts.build_dir}/systemd'):
|
||||
exit(f"{opts.build_dir}/systemd doesn't exist. Use --build-dir=.")
|
||||
|
||||
|
|
Loading…
Reference in New Issue