{"id":22912830,"url":"https://github.com/demindiro/runcap","last_synced_at":"2025-04-01T11:24:32.639Z","repository":{"id":137321536,"uuid":"451042368","full_name":"Demindiro/runcap","owner":"Demindiro","description":"Run programs temporarily with capabilities as non-root","archived":false,"fork":false,"pushed_at":"2022-01-23T08:12:54.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-07T06:26:48.072Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://git.sr.ht/~demindiro/runcap","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Demindiro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-23T08:12:43.000Z","updated_at":"2022-01-23T08:13:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"16ca36b5-b129-4425-aa8a-b31e16f31683","html_url":"https://github.com/Demindiro/runcap","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Demindiro%2Fruncap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Demindiro%2Fruncap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Demindiro%2Fruncap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Demindiro%2Fruncap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Demindiro","download_url":"https://codeload.github.com/Demindiro/runcap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246629409,"owners_count":20808326,"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":[],"created_at":"2024-12-14T04:29:55.487Z","updated_at":"2025-04-01T11:24:32.616Z","avatar_url":"https://github.com/Demindiro.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# runcap\n\nThis program allows granting specific capabilities to non-root processes.\n\n## Why not capsh?\n\n`capsh` is (IMO) awful to use and I couldn't find an alternative. For some\nreason the Debian version misses `--addamb` too which makes it effectively\nuseless. I also can't figure out how to make it `exec()` (\"chainload\") a\nprogram.\n\n## How it works\n\n- Set UID \u0026 GID (with `set_uid` and `set_groups`, which are special).\n- Put a list of capabilities in the effective, inheritable and permitted\n  sets.\n- Put those capabilities in the ambient set.\n- Execute the program.\n\n## TODO\n\nIt may be worth setting the bounding set properly.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdemindiro%2Fruncap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdemindiro%2Fruncap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdemindiro%2Fruncap/lists"}