Lines Matching full:operation
169 [r->param.path.operation], in tomoyo_audit_path_log()
183 [tomoyo_pp2mac[r->param.path2.operation]], in tomoyo_audit_path2_log()
199 [tomoyo_pnnn2mac[r->param.mkdev.operation]], in tomoyo_audit_mkdev_log()
214 const u8 type = r->param.path_number.operation; in tomoyo_audit_path_number_log()
240 * tomoyo_check_path_acl - Check permission for path operation.
256 if (acl->perm & (1 << r->param.path.operation)) { in tomoyo_check_path_acl()
266 * tomoyo_check_path_number_acl - Check permission for path number operation.
278 return (acl->perm & (1 << r->param.path_number.operation)) && in tomoyo_check_path_number_acl()
286 * tomoyo_check_path2_acl - Check permission for path path operation.
298 return (acl->perm & (1 << r->param.path2.operation)) && in tomoyo_check_path2_acl()
305 * tomoyo_check_mkdev_acl - Check permission for path number number number operation.
317 return (acl->perm & (1 << r->param.mkdev.operation)) && in tomoyo_check_mkdev_acl()
549 * tomoyo_path_permission - Check permission for single path operation.
552 * @operation: Type of operation.
559 static int tomoyo_path_permission(struct tomoyo_request_info *r, u8 operation, in tomoyo_path_permission() argument
564 r->type = tomoyo_p2mac[operation]; in tomoyo_path_permission()
570 r->param.path.operation = operation; in tomoyo_path_permission()
579 * tomoyo_execute_permission - Check permission for execute operation.
600 r->param.path.operation = TOMOYO_TYPE_EXECUTE; in tomoyo_execute_permission()
685 * @type: Type of operation.
712 r.param.path_number.operation = type; in tomoyo_path_number_perm()
779 * @operation: Type of operation.
781 * @target: Symlink's target if @operation is TOMOYO_TYPE_SYMLINK,
786 int tomoyo_path_perm(const u8 operation, const struct path *path, const char *target) in tomoyo_path_perm() argument
798 if (tomoyo_init_request_info(&r, NULL, tomoyo_p2mac[operation]) in tomoyo_path_perm()
808 switch (operation) { in tomoyo_path_perm()
821 error = tomoyo_path_permission(&r, operation, &buf); in tomoyo_path_perm()
822 if (operation == TOMOYO_TYPE_SYMLINK) in tomoyo_path_perm()
835 * @operation: Type of operation. (TOMOYO_TYPE_MKCHAR or TOMOYO_TYPE_MKBLOCK)
842 int tomoyo_mkdev_perm(const u8 operation, const struct path *path, in tomoyo_mkdev_perm() argument
853 if (tomoyo_init_request_info(&r, NULL, tomoyo_pnnn2mac[operation]) in tomoyo_mkdev_perm()
863 r.param.mkdev.operation = operation; in tomoyo_mkdev_perm()
880 * @operation: Type of operation.
886 int tomoyo_path2_perm(const u8 operation, const struct path *path1, in tomoyo_path2_perm() argument
899 if (tomoyo_init_request_info(&r, NULL, tomoyo_pp2mac[operation]) in tomoyo_path2_perm()
908 switch (operation) { in tomoyo_path2_perm()
921 r.param.path2.operation = operation; in tomoyo_path2_perm()
997 const char *operation = tomoyo_read_token(param); in tomoyo_write_file() local
999 if (tomoyo_permstr(operation, tomoyo_path_keyword[type])) in tomoyo_write_file()
1004 if (tomoyo_permstr(operation, in tomoyo_write_file()
1010 if (tomoyo_permstr(operation, in tomoyo_write_file()
1016 if (tomoyo_permstr(operation, in tomoyo_write_file()
1021 if (tomoyo_permstr(operation, in tomoyo_write_file()