Lines Matching +full:num +full:- +full:vectors
1 /* SPDX-License-Identifier: GPL-2.0-only */
12 * Copyright (C) 2004-2005 Trusted Computer Solutions, Inc.
17 * Copyright (C) 2003-2004 Tresys Technology, LLC
34 * common prefixes for access vectors, classes,
43 /* Attributes of a common prefix for access vectors */
54 struct symtab permissions; /* class-specific permission symbol table */
123 struct mls_range range; /* MLS range (min - max) for user */
250 /* symbol names indexed by (value - 1) */
253 /* class, role, and user attributes indexed by (value - 1) */
259 /* type enforcement access vectors and transitions */
273 /* bools indexed by (value - 1) */
275 /* type enforcement conditional access vectors and transitions */
293 /* range transitions table (range_trans_key -> mls_range) */
296 /* type -> attribute reverse mapping */
357 if (bytes > fp->len) in next_entry()
358 return -EINVAL; in next_entry()
360 memcpy(buf, fp->data, bytes); in next_entry()
361 fp->data += bytes; in next_entry()
362 fp->len -= bytes; in next_entry()
366 static inline int put_entry(const void *buf, size_t bytes, size_t num, in put_entry() argument
371 if (unlikely(check_mul_overflow(bytes, num, &len))) in put_entry()
372 return -EINVAL; in put_entry()
374 if (len > fp->len) in put_entry()
375 return -EINVAL; in put_entry()
376 memcpy(fp->data, buf, len); in put_entry()
377 fp->data += len; in put_entry()
378 fp->len -= len; in put_entry()
386 return p->sym_val_to_name[sym_num][element_nr]; in sym_name()