Lines Matching refs:data
211 * Returns true if all data was flushed, false otherwise.
676 char *data = head->write_buf;
681 if (sscanf(data, "PROFILE_VERSION=%u", &head->w.ns->profile_version)
684 i = simple_strtoul(data, &cp, 10);
687 data = cp + 1;
691 cp = strchr(data, '=');
695 if (!strcmp(data, "COMMENT")) {
710 if (!strcmp(data, "PREFERENCE")) {
716 return tomoyo_set_mode(data, cp, profile);
895 char *data = head->write_buf;
897 if (!strcmp(data, "manage_by_non_root")) {
901 return tomoyo_update_manager_entry(data, head->w.is_delete);
984 * @data: String to parse.
991 const char *data)
997 if (strncmp(data, "select ", 7))
999 data += 7;
1000 if (sscanf(data, "pid=%u", &pid) == 1 ||
1001 (global_pid = true, sscanf(data, "global-pid=%u", &pid) == 1)) {
1012 } else if (!strncmp(data, "domain=", 7)) {
1013 if (tomoyo_domain_def(data + 7))
1014 domain = tomoyo_find_domain(data + 7);
1015 } else if (sscanf(data, "Q=%u", &pid) == 1) {
1029 tomoyo_io_printf(head, "# select %s\n", data);
1065 if (tomoyo_str_starts(¶m->data, "manual_domain_transition ")) {
1119 * @data: Policy to be interpreted.
1127 struct list_head *list, char *data,
1133 .data = data,
1149 if (!tomoyo_str_starts(¶m.data,
1174 char *data = head->write_buf;
1178 bool is_select = !is_delete && tomoyo_str_starts(&data, "select ");
1181 if (*data == '<') {
1186 ret = tomoyo_delete_domain(data);
1188 domain = tomoyo_find_domain(data);
1190 domain = tomoyo_assign_domain(data, false);
1197 if (sscanf(data, "use_profile %u", &idx) == 1
1204 if (sscanf(data, "use_group %u\n", &idx) == 1
1215 if (strncmp(data, cp, strlen(cp) - 1))
1220 return tomoyo_write_domain2(ns, &domain->acl_info_list, data,
1762 .data = head->write_buf,
1766 if (tomoyo_str_starts(¶m.data, "aggregator "))
1769 if (tomoyo_str_starts(¶m.data, tomoyo_transition_type[i]))
1772 if (tomoyo_str_starts(¶m.data, tomoyo_group_name[i]))
1774 if (tomoyo_str_starts(¶m.data, "acl_group ")) {
1776 char *data;
1778 group = simple_strtoul(param.data, &data, 10);
1779 if (group < TOMOYO_MAX_ACL_GROUPS && *data++ == ' ')
1782 data, is_delete);
2265 char *data = head->write_buf;
2277 if (sscanf(data, "A%u=%u", &serial, &answer) != 2)
2344 * tomoyo_read_stat - Read statistic data.
2396 char *data = head->write_buf;
2399 if (tomoyo_str_starts(&data, "Memory used by "))
2401 if (tomoyo_str_starts(&data, tomoyo_memory_headers[i]))
2402 sscanf(data, "%u", &tomoyo_memory_quota[i]);