{"id":13626014,"url":"https://github.com/tailhook/unshare","last_synced_at":"2025-04-05T19:14:42.095Z","repository":{"id":36455429,"uuid":"40760503","full_name":"tailhook/unshare","owner":"tailhook","description":"The low-level linux containers creation library for rust","archived":false,"fork":false,"pushed_at":"2023-06-13T21:46:50.000Z","size":7358,"stargazers_count":121,"open_issues_count":11,"forks_count":26,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-04-16T05:49:23.368Z","etag":null,"topics":["containers","linux","namespaces","process","supervision","unshare"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tailhook.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2015-08-15T13:15:40.000Z","updated_at":"2024-02-10T02:00:40.000Z","dependencies_parsed_at":"2024-01-14T07:04:39.424Z","dependency_job_id":null,"html_url":"https://github.com/tailhook/unshare","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tailhook%2Funshare","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tailhook%2Funshare/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tailhook%2Funshare/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tailhook%2Funshare/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tailhook","download_url":"https://codeload.github.com/tailhook/unshare/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247386266,"owners_count":20930619,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["containers","linux","namespaces","process","supervision","unshare"],"created_at":"2024-08-01T21:02:07.874Z","updated_at":"2025-04-05T19:14:42.071Z","avatar_url":"https://github.com/tailhook.png","language":"Rust","readme":"Rust Unshare\n============\n\n*Status:* 90% feature-complete, works in production in [lithos][1] and powers [vagga][2]\n\n[Github](https://github.com/tailhook/unshare) |\n[Documentaion](http://docs.rs/unshare) |\n[Crate](https://crates.io/crates/unshare)\n\nUnshare is a low-level library to create linux containers.\n\nIt contains the following:\n\n* Process creation interface similar to `std::process::Command`\n* Unsharing arbitrary linux namespaces\n* Ability to change root (`chroot/pivot_root`), `uid`, `gid`, `gid_map`\n* Some signal mask handling (especially for new processes)\n* Forwarding file descriptors and other unixy stuff (sessions, terminals)\n* Setting few important prctl flags (`PR_SET_PDEATHSIG`)\n* Runs both as root user and as unprivileged user\n\nNot implemeneted yet:\n\n* Fine grained capabilities control (currently you may change user or use\n  user namespaces)\n\nThe following is considered:\n\n* Capture input (should be, because part of ``std::process`` interface)\n* Pseudo tty creation for child\n* The `unshare` and `setns`\n\nThe following is out of scope:\n\n* mounting file systems\n* setting up network\n* in-container and out of container supervision\n* handing child signals\n\n[1]: http://lithos.readthedocs.org\n[2]: http://vagga.readthedocs.org\n\n\nLicense\n=======\n\nLicensed under either of\n\n * Apache License, Version 2.0, (./LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)\n * MIT license (./LICENSE-MIT or http://opensource.org/licenses/MIT)\n\nat your option.\n\nContribution\n------------\n\nUnless you explicitly state otherwise, any contribution intentionally\nsubmitted for inclusion in the work by you, as defined in the Apache-2.0\nlicense, shall be dual licensed as above, without any additional terms or\nconditions.\n","funding_links":[],"categories":["Rust"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftailhook%2Funshare","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftailhook%2Funshare","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftailhook%2Funshare/lists"}