Searched defs:cond (Results 1 - 7 of 7) sorted by relevance

/security/apparmor/
H A Dfile.c187 * @cond: conditions to consider (NOT NULL)
195 struct path_cond *cond)
206 if (uid_eq(current_fsuid(), cond->uid)) {
233 * @cond: conditions to consider for permission set computation (NOT NULL)
239 const char *name, struct path_cond *cond,
249 *perms = compute_perms(dfa, state, cond);
274 * @cond: conditional info for this request (NOT NULL)
279 int flags, u32 request, struct path_cond *cond)
286 flags |= profile->path_flags | (S_ISDIR(cond->mode) ? PATH_IS_DIR : 0);
298 aa_str_perms(profile->file.dfa, profile->file.start, name, cond,
194 compute_perms(struct aa_dfa *dfa, unsigned int state, struct path_cond *cond) argument
238 aa_str_perms(struct aa_dfa *dfa, unsigned int start, const char *name, struct path_cond *cond, struct file_perms *perms) argument
278 aa_path_perm(int op, struct aa_profile *profile, struct path *path, int flags, u32 request, struct path_cond *cond) argument
353 struct path_cond cond = { local
451 struct path_cond cond = { local
[all...]
H A Ddomain.c101 struct path_cond cond = { }; local
112 aa_str_perms(profile->file.dfa, start, name, &cond, &perms);
120 aa_str_perms(profile->file.dfa, state, name, &cond, &perms);
345 struct path_cond cond = { local
400 state = aa_str_perms(profile->file.dfa, state, name, &cond, &perms);
517 name, target, cond.uid, info, error);
H A Dlsm.c158 * @cond: conditional info for the permission request (NOT NULL)
163 struct path_cond *cond)
170 error = aa_path_perm(op, profile, path, 0, mask, cond);
181 * @cond: conditional info for the permission request (NOT NULL)
187 struct path_cond *cond)
191 return common_perm(op, &path, mask, cond);
207 struct path_cond cond = { dentry->d_inode->i_uid, local
211 return common_perm(op, &path, mask, &cond);
227 struct path_cond cond = { }; local
232 cond
162 common_perm(int op, struct path *path, u32 mask, struct path_cond *cond) argument
185 common_perm_dir_dentry(int op, struct path *dir, struct dentry *dentry, u32 mask, struct path_cond *cond) argument
251 struct path_cond cond = { current_fsuid(), mode }; local
284 struct path_cond cond = { path->dentry->d_inode->i_uid, local
330 struct path_cond cond = { old_dentry->d_inode->i_uid, local
357 struct path_cond cond = { path->dentry->d_inode->i_uid, local
398 struct path_cond cond = { inode->i_uid, inode->i_mode }; local
[all...]
/security/tomoyo/
H A Dgc.c154 tomoyo_put_condition(acl->cond);
270 struct tomoyo_condition *cond = container_of(element, typeof(*cond), local
272 const u16 condc = cond->condc;
273 const u16 numbers_count = cond->numbers_count;
274 const u16 names_count = cond->names_count;
275 const u16 argc = cond->argc;
276 const u16 envc = cond->envc;
279 = (const struct tomoyo_condition_element *) (cond + 1);
H A Dcondition.c636 dprintk(KERN_INFO "%u: cond=%u numbers=%u names=%u ac=%u ec=%u\n",
738 * @cond: Pointer to "struct tomoyo_condition". Maybe NULL.
745 const struct tomoyo_condition *cond)
760 if (!cond)
762 condc = cond->condc;
763 argc = cond->argc;
764 envc = cond->envc;
770 condp = (struct tomoyo_condition_element *) (cond + 1);
773 (numbers_p + cond->numbers_count);
774 argv = (const struct tomoyo_argv *) (names_p + cond
744 tomoyo_condition(struct tomoyo_request_info *r, const struct tomoyo_condition *cond) argument
[all...]
H A Dcommon.c1196 * @cond: Pointer to "struct tomoyo_condition".
1201 const struct tomoyo_condition *cond)
1207 if (cond->transit) {
1209 tomoyo_set_string(head, cond->transit->name);
1214 const u16 condc = cond->condc;
1216 (typeof(condp)) (cond + 1);
1221 (numbers_p + cond->numbers_count);
1223 (typeof(argv)) (names_p + cond->names_count);
1225 (typeof(envp)) (argv + cond->argc);
1323 if (cond
1200 tomoyo_print_condition(struct tomoyo_io_buffer *head, const struct tomoyo_condition *cond) argument
[all...]
H A Dcommon.h670 struct tomoyo_condition *cond; /* Maybe NULL. */ member in struct:tomoyo_acl_info
921 const struct tomoyo_condition *cond);
1175 * @cond: Pointer to "struct tomoyo_condition". Maybe NULL.
1179 static inline void tomoyo_put_condition(struct tomoyo_condition *cond) argument
1181 if (cond)
1182 atomic_dec(&cond->head.users);

Completed in 80 milliseconds