• Home
  • Raw
  • Download

Lines Matching refs:nsec

380 	uint32_t *buf = NULL, nsec;  in module_package_read_offsets()  local
404 nsec = *sections = le32_to_cpu(buf[2]); in module_package_read_offsets()
406 if (nsec > MAXSECTIONS) { in module_package_read_offsets()
408 nsec); in module_package_read_offsets()
412 off = (size_t *) calloc(nsec + 1, sizeof(size_t)); in module_package_read_offsets()
419 buf = calloc(nsec, sizeof(uint32_t)); in module_package_read_offsets()
424 rc = next_entry(buf, file, sizeof(uint32_t) * nsec); in module_package_read_offsets()
430 for (i = 0; i < nsec; i++) { in module_package_read_offsets()
440 rc = policy_file_length(file, &off[nsec]); in module_package_read_offsets()
444 if (nsec && off[nsec] < off[nsec-1]) { in module_package_read_offsets()
446 "offset %zu -> %zu", nsec, off[nsec - 1], in module_package_read_offsets()
447 off[nsec]); in module_package_read_offsets()
471 uint32_t buf[1], nsec; in sepol_module_package_read() local
476 if (module_package_read_offsets(mod, file, &offsets, &nsec)) in sepol_module_package_read()
481 for (i = 0; i < nsec; i++) { in sepol_module_package_read()
657 uint32_t buf[5], len, nsec; in sepol_module_package_info() local
666 if (module_package_read_offsets(mod, file, &offsets, &nsec)) { in sepol_module_package_info()
670 for (i = 0; i < nsec; i++) { in sepol_module_package_info()
870 uint32_t buf[5], offsets[5], len, nsec = 0; in sepol_module_package_write() local
883 nsec++; in sepol_module_package_write()
899 nsec++; in sepol_module_package_write()
902 nsec++; in sepol_module_package_write()
905 nsec++; in sepol_module_package_write()
908 nsec++; in sepol_module_package_write()
912 buf[2] = cpu_to_le32(nsec); in sepol_module_package_write()
917 offsets[0] = (nsec + 3) * sizeof(uint32_t); in sepol_module_package_write()
946 if (put_entry(buf, sizeof(uint32_t), nsec, file) != nsec) in sepol_module_package_write()