Home
last modified time | relevance | path

Searched refs:tag (Results 1 – 25 of 49) sorted by relevance

12

/systemd-251/src/shared/ !
Dacl-util.c27 acl_tag_t tag; in acl_find_uid() local
31 if (acl_get_tag_type(i, &tag) < 0) in acl_find_uid()
34 if (tag != ACL_USER) in acl_find_uid()
66 acl_tag_t tag; in calc_acl_mask_if_needed() local
68 if (acl_get_tag_type(i, &tag) < 0) in calc_acl_mask_if_needed()
71 if (tag == ACL_MASK) in calc_acl_mask_if_needed()
74 if (IN_SET(tag, ACL_USER, ACL_GROUP)) in calc_acl_mask_if_needed()
98 acl_tag_t tag; in add_base_acls_if_needed() local
100 if (acl_get_tag_type(i, &tag) < 0) in add_base_acls_if_needed()
103 if (tag == ACL_USER_OBJ) in add_base_acls_if_needed()
[all …]
Ddevnode-acl.c30 acl_tag_t tag; in flush_acl() local
32 if (acl_get_tag_type(i, &tag) < 0) in flush_acl()
35 if (tag != ACL_USER) in flush_acl()
/systemd-251/src/libsystemd/sd-device/ !
Ddevice-util.h18 #define FOREACH_DEVICE_TAG(device, tag) \ argument
19 for (tag = sd_device_get_tag_first(device); \
20 tag; \
21 tag = sd_device_get_tag_next(device))
23 #define FOREACH_DEVICE_CURRENT_TAG(device, tag) \ argument
24 for (tag = sd_device_get_current_tag_first(device); \
25 tag; \
26 tag = sd_device_get_current_tag_next(device))
Ddevice-private.c911 void device_remove_tag(sd_device *device, const char *tag) { in device_remove_tag() argument
913 assert(tag); in device_remove_tag()
915 free(set_remove(device->current_tags, tag)); in device_remove_tag()
920 static int device_tag(sd_device *device, const char *tag, bool add) { in device_tag() argument
926 assert(tag); in device_tag()
932 path = strjoina("/run/udev/tags/", tag, "/", id); in device_tag()
944 const char *tag; in device_tag_index() local
949 FOREACH_DEVICE_TAG(device_old, tag) in device_tag_index()
950 if (!sd_device_has_tag(device, tag)) { in device_tag_index()
951 k = device_tag(device_old, tag, false); in device_tag_index()
[all …]
Ddevice-enumerator.c211 _public_ int sd_device_enumerator_add_match_tag(sd_device_enumerator *enumerator, const char *tag) { in sd_device_enumerator_add_match_tag() argument
215 assert_return(tag, -EINVAL); in sd_device_enumerator_add_match_tag()
217 r = set_put_strdup(&enumerator->match_tag, tag); in sd_device_enumerator_add_match_tag()
500 const char *tag; in match_tag() local
505 SET_FOREACH(tag, enumerator->match_tag) in match_tag()
506 if (!sd_device_has_tag(device, tag)) in match_tag()
772 static int enumerator_scan_devices_tag(sd_device_enumerator *enumerator, const char *tag) { in enumerator_scan_devices_tag() argument
778 assert(tag); in enumerator_scan_devices_tag()
780 path = strjoina("/run/udev/tags/", tag); in enumerator_scan_devices_tag()
848 const char *tag; in enumerator_scan_devices_tags() local
[all …]
Ddevice-monitor.c384 const char *tag; in check_tag_filter() local
392 SET_FOREACH(tag, m->tag_filter) in check_tag_filter()
393 if (sd_device_has_tag(device, tag) > 0) in check_tag_filter()
651 const char *subsystem, *devtype, *tag; in sd_device_monitor_filter_update() local
677 SET_FOREACH(tag, m->tag_filter) { in sd_device_monitor_filter_update()
678 uint64_t tag_bloom_bits = string_bloom64(tag); in sd_device_monitor_filter_update()
764 _public_ int sd_device_monitor_filter_add_match_tag(sd_device_monitor *m, const char *tag) { in sd_device_monitor_filter_add_match_tag() argument
768 assert_return(tag, -EINVAL); in sd_device_monitor_filter_add_match_tag()
770 r = set_put_strdup(&m->tag_filter, tag); in sd_device_monitor_filter_add_match_tag()
Dsd-device.c1275 static bool is_valid_tag(const char *tag) { in is_valid_tag() argument
1276 assert(tag); in is_valid_tag()
1278 return !strchr(tag, ':') && !strchr(tag, ' '); in is_valid_tag()
1281 int device_add_tag(sd_device *device, const char *tag, bool both) { in device_add_tag() argument
1285 assert(tag); in device_add_tag()
1287 if (!is_valid_tag(tag)) in device_add_tag()
1291 added = set_put_strdup(&device->all_tags, tag); in device_add_tag()
1297 r = set_put_strdup(&device->current_tags, tag); in device_add_tag()
1300 (void) set_remove(device->all_tags, tag); in device_add_tag()
1967 _public_ int sd_device_has_tag(sd_device *device, const char *tag) { in sd_device_has_tag() argument
[all …]
Ddevice-private.h41 int device_add_tag(sd_device *device, const char *tag, bool both);
42 void device_remove_tag(sd_device *device, const char *tag);
/systemd-251/src/udev/fido_id/ !
Dfido_id_desc.c35 uint8_t tag, type, size_code; in is_fido_security_token_desc() local
52 tag = desc[pos] >> 4; /* Bits 7 to 4 */ in is_fido_security_token_desc()
71 if (type == HID_RPTDESC_TYPE_GLOBAL && tag == HID_RPTDESC_TAG_USAGE_PAGE) { in is_fido_security_token_desc()
79 if (type == HID_RPTDESC_TYPE_LOCAL && tag == HID_RPTDESC_TAG_USAGE) { in is_fido_security_token_desc()
/systemd-251/src/libudev/ !
Dlibudev-device.c845 const char *tag; in udev_device_get_tags_list_entry() local
849 FOREACH_DEVICE_TAG(udev_device->device, tag) in udev_device_get_tags_list_entry()
850 if (!udev_list_entry_add(udev_device->all_tags, tag, NULL)) in udev_device_get_tags_list_entry()
865 const char *tag; in udev_device_get_current_tags_list_entry() local
869 FOREACH_DEVICE_CURRENT_TAG(udev_device->device, tag) in udev_device_get_current_tags_list_entry()
870 if (!udev_list_entry_add(udev_device->current_tags, tag, NULL)) in udev_device_get_current_tags_list_entry()
889 _public_ int udev_device_has_tag(struct udev_device *udev_device, const char *tag) { in udev_device_has_tag() argument
892 return sd_device_has_tag(udev_device->device, tag) > 0; in udev_device_has_tag()
895 _public_ int udev_device_has_current_tag(struct udev_device *udev_device, const char *tag) { in udev_device_has_current_tag() argument
898 return sd_device_has_current_tag(udev_device->device, tag) > 0; in udev_device_has_current_tag()
Dlibudev.h95 int udev_device_has_tag(struct udev_device *udev_device, const char *tag);
96 int udev_device_has_current_tag(struct udev_device *udev_device, const char *tag);
117 int udev_monitor_filter_add_match_tag(struct udev_monitor *udev_monitor, const char *tag);
138 int udev_enumerate_add_match_tag(struct udev_enumerate *udev_enumerate, const char *tag);
Dlibudev-enumerate.c303 _public_ int udev_enumerate_add_match_tag(struct udev_enumerate *udev_enumerate, const char *tag) { in udev_enumerate_add_match_tag() argument
308 if (!tag) in udev_enumerate_add_match_tag()
311 r = sd_device_enumerator_add_match_tag(udev_enumerate->enumerator, tag); in udev_enumerate_add_match_tag()
Dlibudev-monitor.c288 _public_ int udev_monitor_filter_add_match_tag(struct udev_monitor *udev_monitor, const char *tag) { in udev_monitor_filter_add_match_tag() argument
293 r = sd_device_monitor_filter_add_match_tag(udev_monitor->monitor, tag); in udev_monitor_filter_add_match_tag()
/systemd-251/hwdb.d/ !
Dacpi-update.py25 def handle_starttag(self, tag, attrs): argument
27 if tag == "td":
39 def handle_endtag(self, tag): argument
41 if tag == "td":
/systemd-251/src/libsystemd/sd-journal/ !
Djournal-authenticate.c46 o->tag.seqnum = htole64(journal_file_tag_seqnum(f)); in journal_file_append_tag()
47 o->tag.epoch = htole64(FSPRG_GetEpoch(f->fsprg_state)); in journal_file_append_tag()
50 le64toh(o->tag.seqnum), in journal_file_append_tag()
60 memcpy(o->tag.tag, gcry_md_read(f->hmac, 0), TAG_LENGTH); in journal_file_append_tag()
273 gcry_md_write(f->hmac, &o->tag.seqnum, sizeof(o->tag.seqnum)); in journal_file_hmac_put_object()
274 gcry_md_write(f->hmac, &o->tag.epoch, sizeof(o->tag.epoch)); in journal_file_hmac_put_object()
Djournal-verify.c373 if (!VALID_EPOCH(le64toh(o->tag.epoch))) { in journal_file_object_verify()
376 le64toh(o->tag.epoch)); in journal_file_object_verify()
1114 if (le64toh(o->tag.seqnum) != n_tags + 1) { in journal_file_verify()
1117 le64toh(o->tag.seqnum), in journal_file_verify()
1123 if (le64toh(o->tag.epoch) < last_epoch) { in journal_file_verify()
1126 le64toh(o->tag.epoch), in journal_file_verify()
1136 debug(p, "Checking tag %"PRIu64"...", le64toh(o->tag.seqnum)); in journal_file_verify()
1138 … rt = f->fss_start_usec + le64toh(o->tag.epoch) * f->fss_interval_usec; in journal_file_verify()
1151 r = journal_file_fsprg_seek(f, le64toh(o->tag.epoch)); in journal_file_verify()
1185 if (memcmp(o->tag.tag, gcry_md_read(f->hmac, 0), TAG_LENGTH) != 0) { in journal_file_verify()
[all …]
Djournal-def.h129 uint8_t tag[TAG_LENGTH]; /* SHA-256 HMAC */ member
139 TagObject tag; member
/systemd-251/src/udev/ !
Dudevadm-monitor.c64 const char *subsystem, *devtype, *tag; in setup_monitor() local
84 SET_FOREACH(tag, arg_tag_filter) { in setup_monitor()
85 r = sd_device_monitor_filter_add_match_tag(monitor, tag); in setup_monitor()
87 return log_error_errno(r, "Failed to apply tag filter '%s': %m", tag); in setup_monitor()
Dudev-builtin-path_id.c693 char tag[UDEV_NAME_SIZE]; in builtin_path_id() local
702 tag[i++] = *p; in builtin_path_id()
711 if (tag[i-1] == '_') in builtin_path_id()
714 tag[i++] = '_'; in builtin_path_id()
717 while (i > 0 && tag[i-1] == '_') in builtin_path_id()
719 tag[i] = '\0'; in builtin_path_id()
722 udev_builtin_add_property(dev, test, "ID_PATH_TAG", tag); in builtin_path_id()
/systemd-251/src/systemd/ !
Dsd-device.h102 int sd_device_has_tag(sd_device *device, const char *tag);
103 int sd_device_has_current_tag(sd_device *device, const char *tag);
130 int sd_device_enumerator_add_match_tag(sd_device_enumerator *enumerator, const char *tag);
149 int sd_device_monitor_filter_add_match_tag(sd_device_monitor *m, const char *tag);
/systemd-251/tools/ !
Dgit-contrib.sh5 tag="$(git describe --abbrev=0 --match 'v[0-9][0-9][0-9]')"
6 git log --pretty=tformat:%aN -s "${tag}.." |
Dupdate-dbus-docs.py228 if (child.tag == etree.Comment
231 if (child.tag == etree.Comment
234 if (child.tag == "variablelist"
284 if xml.tag != 'refentry':
/systemd-251/src/libsystemd-network/ !
Ddhcp-lease-internal.h24 uint8_t tag; member
86 int dhcp_lease_insert_private_option(sd_dhcp_lease *lease, uint8_t tag, const void *data, uint8_t l…
Dsd-dhcp-lease.c918 int dhcp_lease_insert_private_option(sd_dhcp_lease *lease, uint8_t tag, const void *data, uint8_t l… in dhcp_lease_insert_private_option() argument
924 if (tag < cur->tag) { in dhcp_lease_insert_private_option()
928 if (tag == cur->tag) { in dhcp_lease_insert_private_option()
929 log_debug("Ignoring duplicate option, tagged %i.", tag); in dhcp_lease_insert_private_option()
938 option->tag = tag; in dhcp_lease_insert_private_option()
1109 xsprintf(key, "OPTION_%" PRIu8, option->tag); in dhcp_lease_save()
/systemd-251/docs/ !
DJOURNAL_FILE_FORMAT.md139 …**TAG** object, consisting of an FSS sealing tag for all data from the beginning of the file or th…
588 uint8_t tag[TAG_LENGTH]; /* SHA-256 HMAC */
593 intervals a tag object is appended to the file. The tag object consists of a
594 SHA-256 HMAC tag that is calculated from the objects stored in the file since
595 the last tag was written, or from the beginning if no tag was written yet. The
598 increased with each tag. When calculating the HMAC of objects header fields
602 after an object has been written are not protected by the tag. This means a
606 calculating the HMAC for the objects it reads. Each time a tag object is
607 encountered the HMAC should be verified and restarted. The tag object sequence
609 partially protected by the HMAC (i.e. seqnum and epoch is included, the tag
[all …]

12