Lines Matching refs:operation
168 [r->param.path.operation], in tomoyo_audit_path_log()
182 [tomoyo_pp2mac[r->param.path2.operation]], in tomoyo_audit_path2_log()
198 [tomoyo_pnnn2mac[r->param.mkdev.operation]], in tomoyo_audit_mkdev_log()
213 const u8 type = r->param.path_number.operation; in tomoyo_audit_path_number_log()
255 if (acl->perm & (1 << r->param.path.operation)) { in tomoyo_check_path_acl()
277 return (acl->perm & (1 << r->param.path_number.operation)) && in tomoyo_check_path_number_acl()
297 return (acl->perm & (1 << r->param.path2.operation)) && in tomoyo_check_path2_acl()
316 return (acl->perm & (1 << r->param.mkdev.operation)) && in tomoyo_check_mkdev_acl()
558 static int tomoyo_path_permission(struct tomoyo_request_info *r, u8 operation, in tomoyo_path_permission() argument
563 r->type = tomoyo_p2mac[operation]; in tomoyo_path_permission()
569 r->param.path.operation = operation; in tomoyo_path_permission()
599 r->param.path.operation = TOMOYO_TYPE_EXECUTE; in tomoyo_execute_permission()
711 r.param.path_number.operation = type; in tomoyo_path_number_perm()
785 int tomoyo_path_perm(const u8 operation, struct path *path, const char *target) in tomoyo_path_perm() argument
797 if (tomoyo_init_request_info(&r, NULL, tomoyo_p2mac[operation]) in tomoyo_path_perm()
807 switch (operation) { in tomoyo_path_perm()
820 error = tomoyo_path_permission(&r, operation, &buf); in tomoyo_path_perm()
821 if (operation == TOMOYO_TYPE_SYMLINK) in tomoyo_path_perm()
841 int tomoyo_mkdev_perm(const u8 operation, struct path *path, in tomoyo_mkdev_perm() argument
852 if (tomoyo_init_request_info(&r, NULL, tomoyo_pnnn2mac[operation]) in tomoyo_mkdev_perm()
862 r.param.mkdev.operation = operation; in tomoyo_mkdev_perm()
885 int tomoyo_path2_perm(const u8 operation, struct path *path1, in tomoyo_path2_perm() argument
898 if (tomoyo_init_request_info(&r, NULL, tomoyo_pp2mac[operation]) in tomoyo_path2_perm()
907 switch (operation) { in tomoyo_path2_perm()
922 r.param.path2.operation = operation; in tomoyo_path2_perm()
998 const char *operation = tomoyo_read_token(param); in tomoyo_write_file() local
1000 if (tomoyo_permstr(operation, tomoyo_path_keyword[type])) in tomoyo_write_file()
1005 if (tomoyo_permstr(operation, in tomoyo_write_file()
1011 if (tomoyo_permstr(operation, in tomoyo_write_file()
1017 if (tomoyo_permstr(operation, in tomoyo_write_file()
1022 if (tomoyo_permstr(operation, in tomoyo_write_file()