Lines Matching refs:data
203 * Returns true if all data was flushed, false otherwise.
668 char *data = head->write_buf;
673 if (sscanf(data, "PROFILE_VERSION=%u", &head->w.ns->profile_version)
676 i = simple_strtoul(data, &cp, 10);
679 data = cp + 1;
683 cp = strchr(data, '=');
687 if (!strcmp(data, "COMMENT")) {
702 if (!strcmp(data, "PREFERENCE")) {
708 return tomoyo_set_mode(data, cp, profile);
887 char *data = head->write_buf;
889 if (!strcmp(data, "manage_by_non_root")) {
893 return tomoyo_update_manager_entry(data, head->w.is_delete);
976 * @data: String to parse.
983 const char *data)
989 if (strncmp(data, "select ", 7))
991 data += 7;
992 if (sscanf(data, "pid=%u", &pid) == 1 ||
993 (global_pid = true, sscanf(data, "global-pid=%u", &pid) == 1)) {
1004 } else if (!strncmp(data, "domain=", 7)) {
1005 if (tomoyo_domain_def(data + 7))
1006 domain = tomoyo_find_domain(data + 7);
1007 } else if (sscanf(data, "Q=%u", &pid) == 1) {
1021 tomoyo_io_printf(head, "# select %s\n", data);
1057 if (tomoyo_str_starts(¶m->data, "manual_domain_transition ")) {
1111 * @data: Policy to be interpreted.
1119 struct list_head *list, char *data,
1125 .data = data,
1141 if (!tomoyo_str_starts(¶m.data,
1166 char *data = head->write_buf;
1170 bool is_select = !is_delete && tomoyo_str_starts(&data, "select ");
1173 if (*data == '<') {
1178 ret = tomoyo_delete_domain(data);
1180 domain = tomoyo_find_domain(data);
1182 domain = tomoyo_assign_domain(data, false);
1189 if (sscanf(data, "use_profile %u", &idx) == 1
1196 if (sscanf(data, "use_group %u\n", &idx) == 1
1207 if (strncmp(data, cp, strlen(cp) - 1))
1212 return tomoyo_write_domain2(ns, &domain->acl_info_list, data,
1754 .data = head->write_buf,
1758 if (tomoyo_str_starts(¶m.data, "aggregator "))
1761 if (tomoyo_str_starts(¶m.data, tomoyo_transition_type[i]))
1764 if (tomoyo_str_starts(¶m.data, tomoyo_group_name[i]))
1766 if (tomoyo_str_starts(¶m.data, "acl_group ")) {
1768 char *data;
1770 group = simple_strtoul(param.data, &data, 10);
1771 if (group < TOMOYO_MAX_ACL_GROUPS && *data++ == ' ')
1774 data, is_delete);
2257 char *data = head->write_buf;
2269 if (sscanf(data, "A%u=%u", &serial, &answer) != 2)
2336 * tomoyo_read_stat - Read statistic data.
2388 char *data = head->write_buf;
2391 if (tomoyo_str_starts(&data, "Memory used by "))
2393 if (tomoyo_str_starts(&data, tomoyo_memory_headers[i]))
2394 sscanf(data, "%u", &tomoyo_memory_quota[i]);