Lines Matching +full:config +full:- +full:cond

1 /* SPDX-License-Identifier: GPL-2.0 */
7 * Copyright (C) 2005-2011 NTT DATA CORPORATION
60 #define TOMOYO_GC_IN_PROGRESS -1
80 TOMOYO_EXEC_ARGC, /* "struct linux_binprm *"->argc */
81 TOMOYO_EXEC_ENVC, /* "struct linux_binprm *"->envc */
315 TOMOYO_MOUNT_BIND, /* mount --bind /source /dest */
316 TOMOYO_MOUNT_MOVE, /* mount --move /old /new */
317 TOMOYO_MOUNT_REMOUNT, /* mount -o remount /dir */
318 TOMOYO_MOUNT_MAKE_UNBINDABLE, /* mount --make-unbindable /dir */
319 TOMOYO_MOUNT_MAKE_PRIVATE, /* mount --make-private /dir */
320 TOMOYO_MOUNT_MAKE_SLAVE, /* mount --make-slave /dir */
321 TOMOYO_MOUNT_MAKE_SHARED, /* mount --make-shared /dir */
674 struct tomoyo_condition *cond; /* Maybe NULL. */ member
887 u8 config[TOMOYO_MAX_MAC_INDEX + TOMOYO_MAX_MAC_CATEGORY_INDEX]; member
919 /* Structure for "struct task_struct"->security. */
932 const struct tomoyo_condition *cond);
1102 * tomoyo_read_lock - Take lock for protecting policy.
1112 * tomoyo_read_unlock - Release lock for protecting policy.
1124 * tomoyo_sys_getppid - Copy of getppid().
1136 pid = task_tgid_vnr(rcu_dereference(current->real_parent)); in tomoyo_sys_getppid()
1142 * tomoyo_sys_getpid - Copy of getpid().
1155 * tomoyo_pathcmp - strcmp() for "struct tomoyo_path_info" structure.
1165 return a->hash != b->hash || strcmp(a->name, b->name); in tomoyo_pathcmp()
1169 * tomoyo_put_name - Drop reference on "struct tomoyo_name".
1180 atomic_dec(&ptr->head.users); in tomoyo_put_name()
1185 * tomoyo_put_condition - Drop reference on "struct tomoyo_condition".
1187 * @cond: Pointer to "struct tomoyo_condition". Maybe NULL.
1191 static inline void tomoyo_put_condition(struct tomoyo_condition *cond) in tomoyo_put_condition() argument
1193 if (cond) in tomoyo_put_condition()
1194 atomic_dec(&cond->head.users); in tomoyo_put_condition()
1198 * tomoyo_put_group - Drop reference on "struct tomoyo_group".
1207 atomic_dec(&group->head.users); in tomoyo_put_group()
1211 * tomoyo_task - Get "struct tomoyo_task" for specified thread.
1213 * @task - Pointer to "struct task_struct".
1219 return task->security + tomoyo_blob_sizes.lbs_task; in tomoyo_task()
1223 * tomoyo_same_name_union - Check for duplicated "struct tomoyo_name_union" entry.
1233 return a->filename == b->filename && a->group == b->group; in tomoyo_same_name_union()
1237 * tomoyo_same_number_union - Check for duplicated "struct tomoyo_number_union" entry.
1247 return a->values[0] == b->values[0] && a->values[1] == b->values[1] && in tomoyo_same_number_union()
1248 a->group == b->group && a->value_type[0] == b->value_type[0] && in tomoyo_same_number_union()
1249 a->value_type[1] == b->value_type[1]; in tomoyo_same_number_union()
1253 * tomoyo_same_ipaddr_union - Check for duplicated "struct tomoyo_ipaddr_union" entry.
1263 return !memcmp(a->ip, b->ip, sizeof(a->ip)) && a->group == b->group && in tomoyo_same_ipaddr_union()
1264 a->is_ipv6 == b->is_ipv6; in tomoyo_same_ipaddr_union()
1268 * tomoyo_current_namespace - Get "struct tomoyo_policy_namespace" for current thread.
1274 return tomoyo_domain()->ns; in tomoyo_current_namespace()
1278 * list_for_each_cookie - iterate over a list with cookie.
1284 pos = srcu_dereference((head)->next, &tomoyo_ss); \
1285 for ( ; pos != (head); pos = srcu_dereference(pos->next, &tomoyo_ss))