typeset -A val_args
_values -S: kind \
- 'unix[a unix domain socket]:unix properties:->unix' \
- 'tcp[a tcp socket]:tcp properties:->tcp' \
- 'unixexec[a process]:unixexec properties:->unixexec' \
- 'x-machine-unix[a container]:machine properties:->x-machine-unix'
+ 'unix[a unix domain socket]:unix properties:->unix' \
+ 'tcp[a tcp socket]:tcp properties:->tcp' \
+ 'unixexec[a process]:unixexec properties:->unixexec' \
+ 'x-machine-unix[a container]:machine properties:->x-machine-unix'
_sd_bus_get_guid() {
- local TYPE VALUE
- local -a busname=(org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus)
+ local TYPE VALUE
+ local -a busname=(org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus)
- _call_program -l dbus-guid busctl call $busname GetId |
- while read TYPE VALUE; do
- [[ $TYPE == 's' && -n $VALUE ]] && compadd "$@" - ${(Q)VALUE};
- done
+ _call_program -l dbus-guid busctl call $busname GetId |
+ while read TYPE VALUE; do
+ [[ $TYPE == 's' && -n $VALUE ]] && compadd "$@" - ${(Q)VALUE};
+ done
}
local expl ret
case $context in
- unix)
- _values -s, 'unix socket properties' \
- 'guid[bus guid]:bus guid:_sd_bus_get_guid -qS,' \
- '(abstract)path[unix domain socket path]:path:_files -r, -g "*(=)"' \
- '(path)abstract[unix domain socket path in the abstract namespace]:abstract path:_files -r, -P@ -g "*(=)"' \
- 'uid[unix uid]:uid:_numbers' \
- 'gid[unix gid]:gid:_numbers'
- ;;
- tcp)
- _values -s, 'unix socket properties' \
- 'guid[bus guid]:bus guid:_sd_bus_get_guid -qS,' \
- 'host[hostname]:hostname:_hosts -r,'\
- 'port[port]:port:_numbers' \
- 'family[address family]:address family:(ipv4 ipv6)'
- ;;
- unixexec)
- _values -s, 'unixexec properties' \
- 'guid[bus guid]:bus guid:_sd_bus_get_guid -qS,' \
- 'path[command path]:command path:_absolute_command_paths -r,'\
- ;;
- x-machine-unix)
- _values -s, 'machine properties' \
- 'guid[bus guid]:bus guid:_sd_bus_get_guid -qS,' \
- '(pid)machine[machine]:machine:_call_function ret _sd_machines' \
- '(machine)pid[pid]:pid:_pids'
- ;;
+ unix)
+ _values -s, 'unix socket properties' \
+ 'guid[bus guid]:bus guid:_sd_bus_get_guid -qS,' \
+ '(abstract)path[unix domain socket path]:path:_files -r, -g "*(=)"' \
+ '(path)abstract[unix domain socket path in the abstract namespace]:abstract path:_files -r, -P@ -g "*(=)"' \
+ 'uid[unix uid]:uid:_numbers' \
+ 'gid[unix gid]:gid:_numbers'
+ ;;
+ tcp)
+ _values -s, 'unix socket properties' \
+ 'guid[bus guid]:bus guid:_sd_bus_get_guid -qS,' \
+ 'host[hostname]:hostname:_hosts -r,'\
+ 'port[port]:port:_numbers' \
+ 'family[address family]:address family:(ipv4 ipv6)'
+ ;;
+ unixexec)
+ _values -s, 'unixexec properties' \
+ 'guid[bus guid]:bus guid:_sd_bus_get_guid -qS,' \
+ 'path[command path]:command path:_absolute_command_paths -r,'\
+ ;;
+ x-machine-unix)
+ _values -s, 'machine properties' \
+ 'guid[bus guid]:bus guid:_sd_bus_get_guid -qS,' \
+ '(pid)machine[machine]:machine:_call_function ret _sd_machines' \
+ '(machine)pid[pid]:pid:_pids'
+ ;;
esac
*/
enum pcapng_block_types {
PCAPNG_INTERFACE_BLOCK = 1,
- PCAPNG_PACKET_BLOCK, /* Obsolete */
+ PCAPNG_PACKET_BLOCK, /* Obsolete */
PCAPNG_SIMPLE_PACKET_BLOCK,
PCAPNG_NAME_RESOLUTION_BLOCK,
PCAPNG_INTERFACE_STATS_BLOCK,
};
struct pcapng_interface_block {
- uint32_t block_type; /* 1 */
+ uint32_t block_type; /* 1 */
uint32_t block_length;
uint16_t link_type;
uint16_t reserved;
};
enum pcapng_interface_options {
- PCAPNG_IFB_NAME = 2,
+ PCAPNG_IFB_NAME = 2,
PCAPNG_IFB_DESCRIPTION,
PCAPNG_IFB_IPV4ADDR,
PCAPNG_IFB_IPV6ADDR,
};
struct pcapng_enhance_packet_block {
- uint32_t block_type; /* 6 */
+ uint32_t block_type; /* 6 */
uint32_t block_length;
uint32_t interface_id;
uint32_t timestamp_hi;
};
struct pcapng_statistics_block {
- uint32_t block_type; /* 5 */
+ uint32_t block_type; /* 5 */
uint32_t block_length;
uint32_t interface_id;
uint32_t timestamp_hi;
return r;
} else if ((val = startswith(l, "exec-context-root-hash-sig="))) {
iovec_done(&c->root_hash_sig);
- r= unbase64mem(val, &c->root_hash_sig.iov_base, &c->root_hash_sig.iov_len);
+ r = unbase64mem(val, &c->root_hash_sig.iov_base, &c->root_hash_sig.iov_len);
if (r < 0)
return r;
} else if ((val = startswith(l, "exec-context-root-ephemeral="))) {
typedef struct {
EFI_GUID SignatureOwner;
- uint8_t SignatureData[];
+ uint8_t SignatureData[];
} EFI_SIGNATURE_DATA;
typedef struct {
DynamicUser=yes
RemoveIPC=yes
CapabilityBoundingSet=CAP_CHOWN CAP_DAC_OVERRIDE CAP_DAC_READ_SEARCH CAP_FOWNER \
- CAP_FSETID CAP_IPC_LOCK CAP_IPC_OWNER CAP_KILL CAP_MKNOD CAP_NET_ADMIN \
- CAP_NET_BIND_SERVICE CAP_NET_BROADCAST CAP_SETGID CAP_SETPCAP \
- CAP_SETUID CAP_SYS_ADMIN CAP_SYS_CHROOT CAP_SYS_NICE CAP_SYS_RESOURCE
+ CAP_FSETID CAP_IPC_LOCK CAP_IPC_OWNER CAP_KILL CAP_MKNOD CAP_NET_ADMIN \
+ CAP_NET_BIND_SERVICE CAP_NET_BROADCAST CAP_SETGID CAP_SETPCAP \
+ CAP_SETUID CAP_SYS_ADMIN CAP_SYS_CHROOT CAP_SYS_NICE CAP_SYS_RESOURCE
PrivateDevices=yes
PrivateUsers=yes
ProtectSystem=strict
DynamicUser=yes
RemoveIPC=yes
CapabilityBoundingSet=CAP_CHOWN CAP_DAC_OVERRIDE CAP_DAC_READ_SEARCH CAP_FOWNER \
- CAP_FSETID CAP_IPC_LOCK CAP_IPC_OWNER CAP_KILL CAP_MKNOD CAP_SETGID CAP_SETPCAP \
- CAP_SETUID CAP_SYS_ADMIN CAP_SYS_CHROOT CAP_SYS_NICE CAP_SYS_RESOURCE
+ CAP_FSETID CAP_IPC_LOCK CAP_IPC_OWNER CAP_KILL CAP_MKNOD CAP_SETGID CAP_SETPCAP \
+ CAP_SETUID CAP_SYS_ADMIN CAP_SYS_CHROOT CAP_SYS_NICE CAP_SYS_RESOURCE
PrivateDevices=yes
PrivateUsers=yes
ProtectSystem=strict
static bool manager_is_idle(void *userdata) {
Manager *m = ASSERT_PTR(userdata);
- return hashmap_isempty(m->jobs);
+ return hashmap_isempty(m->jobs);
}
static void manager_check_idle(Manager *m) {
- assert(m);
+ assert(m);
- if (!hashmap_isempty(m->jobs))
- return;
+ if (!hashmap_isempty(m->jobs))
+ return;
hashmap_clear(m->targets);
log_debug("Cleared target cache");
_cleanup_(version_done) Version v = {};
_cleanup_free_ char *update = NULL;
const sd_bus_error *e;
- sd_bus_error error = {};
+ sd_bus_error error = {};
const char *lnk = NULL;
char *current;
int r;
systemd-run --quiet --service-type=notify --unit=test-linger-signal-wait --pty \
-p Environment=SYSTEMD_LOG_LEVEL=debug \
-p ExecStartPost="loginctl enable-linger logind-test-user" \
- busctl --timeout=30 wait "/org/freedesktop/login1/user/_$(id -ru logind-test-user)" org.freedesktop.DBus.Properties PropertiesChanged | grep -qF '"Linger" b true'
+ busctl --timeout=30 wait "/org/freedesktop/login1/user/_$(id -ru logind-test-user)" org.freedesktop.DBus.Properties PropertiesChanged | grep -qF '"Linger" b true'
assert_eq "$(loginctl list-users --no-legend | awk '$2 == "logind-test-user" { print $3 }')" yes
for s in $(loginctl list-sessions --no-legend | grep tty | awk '$3 == "logind-test-user" { print $1 }'); do
for c in $classes; do
unit="user-sleeper-$c.service"
- systemd-run --service-type=notify run0 --setenv XDG_SESSION_CLASS="$c" -u logind-test-user --unit="$unit" sleep infinity
+ systemd-run --service-type=notify run0 --setenv XDG_SESSION_CLASS="$c" -u logind-test-user --unit="$unit" sleep infinity
done
systemctl restart systemd-logind
# jq --slurp --raw-output \
# ".[].browser_service_data[] | select(.updateFlag == true and .type == \"$service_type\" and .family == 10).name" "$out_file" | sort | tee "$tmp_file"
grep -o '"name":"[^"]*"' "$out_file" | sed 's/"name":"//;s/"//g' | sort | tee "$tmp_file"
- # ...and compare them with what we expect
+ # ...and compare them with what we expect
if "$check_func" "$service_id" "$tmp_file"; then
return 0
fi