Lines Matching full: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()
239 * tomoyo_check_path_acl - Check permission for path operation.
255 if (acl->perm & (1 << r->param.path.operation)) { in tomoyo_check_path_acl()
265 * tomoyo_check_path_number_acl - Check permission for path number operation.
277 return (acl->perm & (1 << r->param.path_number.operation)) && in tomoyo_check_path_number_acl()
285 * tomoyo_check_path2_acl - Check permission for path path operation.
297 return (acl->perm & (1 << r->param.path2.operation)) && in tomoyo_check_path2_acl()
304 * tomoyo_check_mkdev_acl - Check permission for path number number number operation.
316 return (acl->perm & (1 << r->param.mkdev.operation)) && in tomoyo_check_mkdev_acl()
548 * tomoyo_path_permission - Check permission for single path operation.
551 * @operation: Type of operation.
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()
578 * tomoyo_execute_permission - Check permission for execute operation.
599 r->param.path.operation = TOMOYO_TYPE_EXECUTE; in tomoyo_execute_permission()
684 * @type: Type of operation.
711 r.param.path_number.operation = type; in tomoyo_path_number_perm()
778 * @operation: Type of operation.
780 * @target: Symlink's target if @operation is TOMOYO_TYPE_SYMLINK,
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()
834 * @operation: Type of operation. (TOMOYO_TYPE_MKCHAR or TOMOYO_TYPE_MKBLOCK)
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()
879 * @operation: Type of operation.
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()