Lines Matching +full:common +full:- +full:rules

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 */
45 u32 value; /* internal common value */
46 struct symtab permissions; /* common permissions */
52 char *comkey; /* common name */
53 struct common_datum *comdatum; /* common datum */
54 struct symtab permissions; /* class-specific permission symbol table */
56 struct constraint_node *validatetrans; /* special transition rules */
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) */
266 /* quickly exclude lookups when parent ttype has no rules */
268 /* actual set of filename_trans rules */
273 /* bools indexed by (value - 1) */
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()
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()