Unit Instance
Units API.
See the Weblate's Web API documentation for detailed description of the API.
GET /api/units/1128395/?format=api
{ "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookjail_index/zh_CN/?format=api", "source": [ "In [.filename]#kern_jail.c#, the function `jail()` then calls function `jail_attach()` with a given `jid`. And `jail_attach()` calls function `change_root()` to change the root directory of the calling process. The `jail_attach()` then creates a new `ucred` structure, and attaches the newly created `ucred` structure to the calling process after it has successfully attached the `prison` structure to the `ucred` structure. From then on, the calling process is recognized as jailed. When the kernel routine `jailed()` is called in the kernel with the newly created `ucred` structure as its argument, it returns 1 to tell that the credential is connected with a jail. The public ancestor process of all the process forked within the jail, is the process which runs man:jail[8], as it calls the man:jail[2] system call. When a program is executed through man:execve[2], it inherits the jailed property of its parent's `ucred` structure, therefore it has a jailed `ucred` structure." ], "previous_source": "", "target": [ "" ], "id_hash": -5312930558792477038, "content_hash": -5312930558792477038, "location": "documentation/content/en/books/arch-handbook/jail/_index.adoc:280", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 50, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 149, "source_unit": "https://translate-dev.freebsd.org/api/units/1127708/?format=api", "priority": 100, "id": 1128395, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookjail_index/zh_CN/?checksum=3644adce4edb5692", "url": "https://translate-dev.freebsd.org/api/units/1128395/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:14:26.877673Z" }