Unlock instant, AI-driven research and patent intelligence for your innovation.

A method and unit for temporarily opening a root shell in an embedded linux device

An embedded and device technology, applied in the field of communication, can solve problems caused by devices, rootshell password leakage, technical obstacles, etc., and achieve the effect of convenient location and questioning

Inactive Publication Date: 2019-03-29
广州鲁邦通物联网科技股份有限公司
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] In the current embedded Linux devices, there are two methods for the root shell. One is to open the root shell, but only the R&D personnel of the manufacturer know that when the R&D personnel leave the job, the root shell password may be leaked, which may cause risks to the device; The other is to not open the root shell for security reasons. In this case, if there is a problem with the device, or the customer wants to do secondary development on the device, there will be relatively large technical obstacles

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method and unit for temporarily opening a root shell in an embedded linux device
  • A method and unit for temporarily opening a root shell in an embedded linux device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0025] Such as figure 1 Shown, a method for temporarily opening the root shell in an embedded linux device, the device manufacturer generates a public-private key pair for signature authentication when producing an embedded linux device; the public-private key pair is stored in the embedded linux device The public key in; generally speaking, the OTP area of ​​the embedded linux device is used to store the public key and will not be erased. This method comprises the steps:

[0026] Step 1: Obtain the first hash value through the SN code and hash function of the embedded linux device;

[0027] The hash function is SHA256. Since the SN code is unique for any device, the first hash value generated is also unique.

[0028] Step 2: Obtain the license file from the device manufacturer, and obtain the second hash value through the public key and the license file; the second hash value is generated by the device manufacturer according to the SN code and hash function, and signed with...

Embodiment 2

[0037] Such as figure 2 As shown, a unit for temporarily opening a root shell in an embedded linux device includes the following modules:

[0038] License module 1: used to obtain the license file provided by the equipment manufacturer; generally, the equipment manufacturer has already prepared the license file during the production process; the main method of making the license file is:

[0039] Step 10: The device manufacturer obtains the SN code of the embedded linux device, and calculates the second hash value according to the hash function SHA256;

[0040] Step 20: The device manufacturer signs the second hash value with a private key to obtain a license file.

[0041] The first hash value generating module 2: used to obtain the first hash value through the SN code of the embedded linux device and the hash function SHA256;

[0042] The second hash value acquisition module 3: used to sign the license file obtained by the license module with a public key to obtain the se...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method for temporarily opening root shell in embedded linux device. A device manufacturer generates a public-private key pair for signature authentication when producing embedded linux device. The embedded linux device stores a public key in a public-private key pair. Includes such steps as 1, obtaining first hash value by SN code and hash function of embedded linux device; 2, obtaining a license file from that device manufacturer, and obtaining a second hash value through the public key and the license file; wherein The second hash value is generated by the device manufacturer according to the SN code and the hash function, and a license file is generated by using a private key signature. 3, comparing whether that first hash value and the second hash value are consistent, and if so, temporarily opening the root shell permission; If not, root shell permissions are not open. An object of the present invention is to provide a method and a unit for temporarily opening a root shell in an embedded linux device, When the root shell is not open, it is convenient to locate the problem or the customer's redevelopment by loading a license file dynamically and opening the root shell temporarily.

Description

technical field [0001] The invention relates to the technical field of communication, in particular to a method and a unit for temporarily opening a rootshell in an embedded linux device. Background technique [0002] In the current embedded Linux devices, there are two methods for the root shell. One is to open the root shell, but only the R&D personnel of the manufacturer know that when the R&D personnel leave the job, the root shell password may be leaked, which may cause risks to the device; The other is to not open the root shell for security reasons. In this case, if there is a problem with the device, or if the customer wants to do secondary development on the device, there will be relatively large technical obstacles. Contents of the invention [0003] The purpose of the present invention is to provide a method for temporarily opening the root shell in an embedded linux device. When the root shell is not open, the method temporarily opens the root shell by dynamica...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F21/33G06F21/44G06F21/64
CPCG06F21/33G06F21/44G06F21/64
Inventor 赵伟黄章良陶洋陈小军
Owner 广州鲁邦通物联网科技股份有限公司