{"id":18151206,"url":"https://github.com/msantos/fchmodexec-go","last_synced_at":"2025-08-21T23:05:10.778Z","repository":{"id":136621416,"uuid":"578571771","full_name":"msantos/fchmodexec-go","owner":"msantos","description":"fchmodexec: fchmod(2) fd's before exec(3)","archived":false,"fork":false,"pushed_at":"2024-09-16T13:03:11.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-13T05:30:03.303Z","etag":null,"topics":["exec","fd"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/msantos.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-12-15T11:25:14.000Z","updated_at":"2024-09-16T13:03:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"f5458448-2a39-4226-8e4e-c481f479064a","html_url":"https://github.com/msantos/fchmodexec-go","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/msantos%2Ffchmodexec-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msantos%2Ffchmodexec-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msantos%2Ffchmodexec-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msantos%2Ffchmodexec-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/msantos","download_url":"https://codeload.github.com/msantos/fchmodexec-go/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247568611,"owners_count":20959750,"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":["exec","fd"],"created_at":"2024-11-02T01:06:55.261Z","updated_at":"2025-04-06T23:29:05.798Z","avatar_url":"https://github.com/msantos.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SYNOPSIS\n\nfchmodexec *mode* *fd* *...* -- *cmd* *...*\n\n# DESCRIPTION\n\nfchmodexec - fchmod(2) inherited file descriptors before exec(3)'ing\na command\n\n`fchmodexec` runs as part of an exec chain to change the permissions of\nany file descriptors inherited from the parent process before executing\na program.\n\n# EXAMPLES\n\n```\n$ umask 077; ( ./fchmodexec 644 1 -- ls -al out) \u003e out\n$ cat out\n-rw-r--r-- 1 msantos msantos 0 Mar 18 07:32 out\n$ ls -al out\n-rw-r--r-- 1 msantos msantos 48 Mar 18 07:32 out\n```\n\n# OPTIONS\n\nNone.\n\n# BUILDING\n\n```\ngo install codeberg.org/msantos/fchmodexec/cmd/fchmodexec@latest\n```\n\nTo build a reproducible executable from the git repository:\n\n```\nCGO_ENABLED=0 go build -trimpath -ldflags \"-w\" ./cmd/fchmodexec\n```\n\n# ALTERNATIVES\n\n- [fchmodexec](https://github.com/msantos/fchmodexec)\n- [fchmodexec-rs](https://github.com/msantos/fchmodexec-rs)\n\n# SEE ALSO\n\n*exec(3)*, *fchmod*(2)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsantos%2Ffchmodexec-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmsantos%2Ffchmodexec-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsantos%2Ffchmodexec-go/lists"}