All of lore.kernel.org
 help / color / mirror / Atom feed
From: BaiKefan <baikefan@leap-io-kernel.com>
To: Yanteng Si <si.yanteng@linux.dev>
Cc: alexs@kernel.org, dzm91@hust.edu.cn, corbet@lwn.net,
	linux-doc@vger.kernel.org, doubled@leap-io-kernel.com
Subject: Re: [PATCH v3 3/8] docs/zh_CN: Add authorization.rst translation
Date: Tue, 2 Dec 2025 16:11:01 +0800	[thread overview]
Message-ID: <20251202155213.00007c30@leap-io-kernel.com> (raw)
In-Reply-To: <343e5b82-e78a-483b-a8db-57bef4f447eb@linux.dev>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=GB18030, Size: 4875 bytes --]

On Mon, 1 Dec 2025 14:54:53 +0800
Yanteng Si <si.yanteng@linux.dev> wrote:

> 
> ÔÚ 2025/11/24 21:34, Kefan Bai дµÀ:
> > Translate .../usb/authorization.rst into Chinese
> >
> > Update the translation through commit f176638af476
> > ("USB: Remove Wireless USB and UWB documentation")
> >
> > Signed-off-by: Kefan Bai <baikefan@leap-io-kernel.com>
> > ---
> >   .../translations/zh_CN/usb/authorization.rst  | 125
> > ++++++++++++++++++ 1 file changed, 125 insertions(+)
> >   create mode 100644
> > Documentation/translations/zh_CN/usb/authorization.rst
> >
> > diff --git a/Documentation/translations/zh_CN/usb/authorization.rst
> > b/Documentation/translations/zh_CN/usb/authorization.rst new file
> > mode 100644 index 000000000000..2bcb3e9d4c5a
> > --- /dev/null
> > +++ b/Documentation/translations/zh_CN/usb/authorization.rst
> > @@ -0,0 +1,125 @@
> > +.. SPDX-License-Identifier: GPL-2.0
> > +.. include:: ../disclaimer-zh_CN.rst
> > +
> > +:Original: Documentation/usb/authorization.rst
> > +:·­Òë:
> > +
> > + °×îÝ·² Kefan Bai <baikefan@leap-io-kernel.com>
> > +
> > +:УÒë:
> > +
> > +
> > +==============================================================
> > +ÊÚȨ£¨»ò²»ÊÚȨ£©USBÉ豸Á¬½Óµ½ÏµÍ³
> > +==============================================================
> 
> It's too long, please trim them.
> 
> 
> Thanks,
> 
> Yanteng
> 

Hi Yanteng,

Thanks for the review.

I'll shorten those overlong markers and check the rest of the
translated files for similar issues.

Thanks,
Kefan

> > +
> > +°æÈ¨ (C) 2007 Inaky Perez-Gonzalez <inaky@linux.intel.com>
> > ÒòÌØ¶û¹«Ë¾ +
> > +´Ë¹¦ÄÜÔÊÐíÄã¿ØÖÆÏµÍ³ÖÐUSBÉ豸µÄʹÓÃȨÏÞ¡£
> > +Äã¿ÉÒÔ½è´ËʵÏÖUSBÉ豸µÄËø¶¨£¬²¢ÓÉÓû§¿Õ¼äÍêÈ«¿ØÖÆ¡£
> > +
> > +ĿǰΪֹ£¬µ±²åÈëÒ»¸öUSBÉ豸ʱ£¬ÏµÍ³»áÅäÖøÃUSBÉ豸£¬Æä½Ó¿Ú»áÁ¢¼´¶ÔÓû§¿ª·Å¡£
> > +ͨ¹ý´ËÐ޸ģ¬Ö»ÓÐÔÚrootÊÚȨÅäÖÃÉ豸ºó£¬Óû§²ÅÄÜʹÓÃËü¡£
> > +
> > +
> > +ʹÓ÷½·¨
> > +=========
> > +
> > +ÊÚȨÉ豸Á¬½Ó::
> > +
> > +	$ echo 1 > /sys/bus/usb/devices/DEVICE/authorized
> > +
> > +È¡ÏûÊÚȨÉ豸Á¬½Ó::
> > +	$ echo 0 > /sys/bus/usb/devices/DEVICE/authorized
> > +
> > +½«ÐÂÁ¬½Óµ½hostXµÄÉ豸ĬÈÏÉèÖÃΪδÊÚȨ£¨¼´£ºËø¶¨£©::
> > +
> > +	$ echo 0 > /sys/bus/usb/devices/usbX/authorized_default
> > +
> > +½â³ýËø¶¨::
> > +
> > +	$ echo 1 > /sys/bus/usb/devices/usbX/authorized_default
> > +
> > +ĬÈÏÇé¿öÏ£¬ËùÓÐUSBÉ豸¶¼ÊÇÊÚȨµÄ¡£
> > +Ïòauthorized_defaultÊôÐÔдÈë "2"
> > »áʹÄÚºËĬÈÏÖ»ÊÚȨÁ¬½Óµ½ÄÚ²¿USB¶Ë¿ÚµÄÉ豸¡£ +
> > +ÏµÍ³Ëø¶¨Ê¾Àý£¨¼òµ¥Ê¾Àý£©
> > +------------------------------
> > +
> > +¼ÙÉèÄãÏëʵÏÖÒ»¸öËø¶¨¹¦ÄÜ£¬ÒªÇóÖ»ÓÐÀàÐÍΪXYZµÄÉ豸¿ÉÒÔÁ¬½Ó
> > +£¨ÀýÈ磬ËüÊÇÒ»¸ö´øÓпɼûUSB¶Ë¿ÚµÄ×ÔÖú·þÎñÖÕ¶Ë£©::
> > +
> > +  Æô¶¯ÏµÍ³
> > +  rc.local ->
> > +
> > +   for host in /sys/bus/usb/devices/usb*
> > +   do
> > +      echo 0 > $host/authorized_default
> > +   done
> > +
> > +½«Ò»¸ö½Å±¾¹Ò½Óµ½udev£¬µ±²åÈëеÄUSBÉ豸ʱ£¬¸Ã½Å±¾¾Í»á±»×Ô¶¯´¥·¢::
> > +
> > + if device_is_my_type $DEV
> > + then
> > +   echo 1 > $device_path/authorized
> > + done
> > +
> > +
> > +ÕâÀïµÄdevice_is_my_type()¾ÍÊÇʵÏÖËø¶¨µÄ¹Ø¼üËùÔÚ¡£
> > +½ö½ö¼ì²éclass¡¢type ºÍprotocolÊÇ·ñÆ¥Åäij¸öÖµ£¬
> > +ÊÇ×î²îµÄ°²È«ÑéÖ¤·½Ê½£¨µ«¶ÔÓÚÏë񻮮½âµÄÈËÈ´ÊÇ×îÈÝÒ׵ģ©¡£
> > +Èç¹ûÄãÐèÒªÕæÕý°²È«µÄ·½°¸£¬Ó¦Ê¹ÓüÓÃÜ¡¢Ö¤ÊéÈÏÖ¤µÈÊֶΡ£
> > +Ò»¸öÕë¶Ô´æ´¢ÃÜÔ¿µÄ¼òµ¥Ê¾Àý::
> > +
> > + function device_is_my_type()
> > + {
> > +   echo 1 > authorized		# ÔÝʱÊÚȨËü
> > +                                # FIXME: È·±£Ã»ÓÐÈËÄܹ»¹ÒÔØËü
> > +   mount DEVICENODE /mntpoint
> > +   sum=$(md5sum /mntpoint/.signature)
> > +   if [ $sum = $(cat /etc/lockdown/keysum) ]
> > +   then
> > +        echo "We are good, connected"
> > +        umount /mntpoint
> > +        # Ìí¼ÓһЩ¶îÍâµÄÄÚÈÝ£¬ÒÔ±ãÆäËûÈËÒ²¿ÉÒÔʹÓÃËü
> > +   else
> > +        echo 0 > authorized
> > +   fi
> > + }
> > +
> > +
> > +µ±È»£¬ÕâÖÖ×ö·¨ºÜ¼òª£»Êµ¼ÊÉÏÄãÓ¦¸ÃʹÓûùÓÚPKIµÄÕæÕýÖ¤ÊéÑéÖ¤£¬
> > +ÕâÑù¾Í²»»áÒÀÀµ¹²ÏíÃÜÔ¿Ö®ÀàµÄ¶«Î÷¡£²»¹ýÄãÃ÷°×ÎÒµÄÒâ˼¡£
> > +ÈκÎÄõ½É豸·ÂÕæ¹¤¾ß°üµÄÈ˶¼ÄÜαÔìÃèÊö·ûºÍÉ豸ÐÅÏ¢¡£
> > +ËùÒÔǧÍò²»ÒªÐÅÈÎÕâЩÐÅÏ¢¡£
> > +
> > +½Ó¿ÚÊÚȨ
> > +---------
> > +
> > +Ò²ÓÐÀàËÆµÄ·½·¨ÓÃÓÚÔÊÐí»ò¾Ü¾øÌض¨USB½Ó¿Ú¡£ÕâÔÊÐíÖ»×èÖ¹USBÉ豸µÄÒ»¸ö×Ó¼¯¡£
> > +
> > +ÊÚȨ½Ó¿Ú::
> > +
> > +	$ echo 1 > /sys/bus/usb/devices/INTERFACE/authorized
> > +
> > +È¡ÏûÊÚȨ½Ó¿Ú::
> > +
> > +	$ echo 0 > /sys/bus/usb/devices/INTERFACE/authorized
> > +
> > +Ò²¿ÉÒÔ¸ü¸ÄнӿÚÔÚÌØ¶¨USB×ÜÏßÉϵÄĬÈÏÖµ¡£
> > +
> > +ĬÈÏÔÊÐí½Ó¿Ú::
> > +
> > +	$ echo 1 >
> > /sys/bus/usb/devices/usbX/interface_authorized_default +
> > +ĬÈϾܾø½Ó¿Ú::
> > +	$ echo 0 >
> > /sys/bus/usb/devices/usbX/interface_authorized_default +
> > +ĬÈÏÇé¿öÏ£¬interface_authorized_defaultλΪ1¡£
> > +Òò´Ë£¬ËùÓнӿÚĬÈ϶¼ÊÇÊÚȨµÄ¡£
> > +
> > +×¢Ò⣺
> > +  Èç¹ûÒª¶ÔÒ»¸öδÊÚȨµÄ½Ó¿Ú½øÐÐÊÚȨ£¬Ôò±ØÐëͨ¹ý½«INTERFACEдÈë
> > +  /sys/bus/usb/drivers_probeÀ´ÊÖ¶¯´¥·¢Çý¶¯³ÌÐò½øÐÐ̽²â¡£
> > +  ¶ÔÓÚʹÓöà¸ö½Ó¿ÚµÄÇý¶¯³ÌÐò£¬ÐèÒªÏȶÔËùÓÐʹÓõĽӿڽøÐÐÊÚȨ¡£
> > +  Ö®ºóӦ̽²âÇý¶¯³ÌÐò¡£ÕâÑù×ö¿ÉÒÔ±ÜÃ⸱×÷Óá£
> > --
> > 2.52.0
> >
> 
> 


  reply	other threads:[~2025-12-02  8:11 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-24 13:34 [PATCH v3 0/8] Add Chinese translation for USB subsystem Kefan Bai
2025-11-24 13:34 ` [PATCH v3 1/8] docs/zh_CN: Add index.rst translation Kefan Bai
2025-11-24 13:34 ` [PATCH v3 2/8] docs/zh_CN: Add acm.rst translation Kefan Bai
2025-12-01  6:44   ` Yanteng Si
2025-11-24 13:34 ` [PATCH v3 3/8] docs/zh_CN: Add authorization.rst translation Kefan Bai
2025-12-01  6:54   ` Yanteng Si
2025-12-02  8:11     ` BaiKefan [this message]
2025-12-02  8:36     ` [RESEND] " BaiKefan
2025-11-24 13:34 ` [PATCH v3 4/8] docs/zh_CN: Add chipidea.rst translation Kefan Bai
2025-11-24 13:34 ` [PATCH v3 5/8] docs/zh_CN: Add dwc3.rst translation Kefan Bai
2025-11-24 13:34 ` [PATCH v3 6/8] docs/zh_CN: Add ehci.rst translation Kefan Bai
2025-11-24 13:34 ` [PATCH v3 7/8] docs/zh_CN: Add usbmon.rst translation Kefan Bai
2025-11-24 13:34 ` [PATCH v3 8/8] docs/zh_CN: Add CREDITS translation Kefan Bai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20251202155213.00007c30@leap-io-kernel.com \
    --to=baikefan@leap-io-kernel.com \
    --cc=alexs@kernel.org \
    --cc=corbet@lwn.net \
    --cc=doubled@leap-io-kernel.com \
    --cc=dzm91@hust.edu.cn \
    --cc=linux-doc@vger.kernel.org \
    --cc=si.yanteng@linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.