Lines Matching defs:operation
169 [r->param.path.operation],
183 [tomoyo_pp2mac[r->param.path2.operation]],
199 [tomoyo_pnnn2mac[r->param.mkdev.operation]],
214 const u8 type = r->param.path_number.operation;
241 * tomoyo_check_path_acl - Check permission for path operation.
258 if (acl->perm & (1 << r->param.path.operation)) {
268 * tomoyo_check_path_number_acl - Check permission for path number operation.
281 return (acl->perm & (1 << r->param.path_number.operation)) &&
289 * tomoyo_check_path2_acl - Check permission for path path operation.
302 return (acl->perm & (1 << r->param.path2.operation)) &&
309 * tomoyo_check_mkdev_acl - Check permission for path number number number operation.
322 return (acl->perm & (1 << r->param.mkdev.operation)) &&
563 * tomoyo_path_permission - Check permission for single path operation.
566 * @operation: Type of operation.
573 static int tomoyo_path_permission(struct tomoyo_request_info *r, u8 operation,
578 r->type = tomoyo_p2mac[operation];
584 r->param.path.operation = operation;
593 * tomoyo_execute_permission - Check permission for execute operation.
614 r->param.path.operation = TOMOYO_TYPE_EXECUTE;
702 * @type: Type of operation.
729 r.param.path_number.operation = type;
796 * @operation: Type of operation.
798 * @target: Symlink's target if @operation is TOMOYO_TYPE_SYMLINK,
803 int tomoyo_path_perm(const u8 operation, const struct path *path, const char *target)
815 if (tomoyo_init_request_info(&r, NULL, tomoyo_p2mac[operation])
825 switch (operation) {
838 error = tomoyo_path_permission(&r, operation, &buf);
839 if (operation == TOMOYO_TYPE_SYMLINK)
852 * @operation: Type of operation. (TOMOYO_TYPE_MKCHAR or TOMOYO_TYPE_MKBLOCK)
859 int tomoyo_mkdev_perm(const u8 operation, const struct path *path,
870 if (tomoyo_init_request_info(&r, NULL, tomoyo_pnnn2mac[operation])
880 r.param.mkdev.operation = operation;
897 * @operation: Type of operation.
903 int tomoyo_path2_perm(const u8 operation, const struct path *path1,
916 if (tomoyo_init_request_info(&r, NULL, tomoyo_pp2mac[operation])
925 switch (operation) {
938 r.param.path2.operation = operation;
1016 const char *operation = tomoyo_read_token(param);
1019 if (tomoyo_permstr(operation, tomoyo_path_keyword[type]))
1024 if (tomoyo_permstr(operation,
1030 if (tomoyo_permstr(operation,
1036 if (tomoyo_permstr(operation,
1041 if (tomoyo_permstr(operation,