{"id":17526991,"url":"https://github.com/Freaky/portacl-rc","last_synced_at":"2025-03-06T06:31:20.538Z","repository":{"id":189052400,"uuid":"679951244","full_name":"Freaky/portacl-rc","owner":"Freaky","description":"A FreeBSD rc(8) script for mac_portacl(4)","archived":false,"fork":false,"pushed_at":"2023-09-13T13:31:44.000Z","size":53,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-09-14T00:11:08.818Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Roff","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Freaky.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-08-18T02:07:06.000Z","updated_at":"2023-09-12T18:25:52.000Z","dependencies_parsed_at":"2023-08-18T04:21:04.176Z","dependency_job_id":null,"html_url":"https://github.com/Freaky/portacl-rc","commit_stats":null,"previous_names":["freaky/portacl"],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freaky%2Fportacl-rc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freaky%2Fportacl-rc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freaky%2Fportacl-rc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freaky%2Fportacl-rc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Freaky","download_url":"https://codeload.github.com/Freaky/portacl-rc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":220753131,"owners_count":16697311,"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-10-20T15:02:53.792Z","updated_at":"2024-10-20T15:07:14.268Z","avatar_url":"https://github.com/Freaky.png","language":"Roff","funding_links":[],"categories":["Roff"],"sub_categories":[],"readme":"# `portacl`\n\nA FreeBSD rc(8) script for mac_portacl(4)\n\n## Description\n\nmac_portacl(4) is a kernel module which provides an access control policy\nto permit given users and groups to bind to otherwise privileged ports only\naccessible to the superuser.\n\nTypical configuration looks like this:\n\n`/boot/loader.conf`:\n\n```sh\nmac_portacl_load=\"YES\"\n```\n\n`/etc/sysctl.conf`:\n\n```sh\n# Disable standard root-only access check\nnet.inet.ip.portrange.reservedhigh=0\n\n# Permit uid 80 to bind ports http and https\nsecurity.mac.portacl.rules=\"uid:80:tcp:80,uid:80:tcp:443\"\n```\n\nThis script replaces it with a more convenient interface:\n\n`/etc/rc.conf`:\n\n```sh\nportacl_enable=\"YES\"\nportacl_users=\"www\"\nportacl_user_www_tcp=\"http https\"\n```\n\nAccess controls for groups, numeric user IDs and ports work as you would\nexpect, and additional verbatim rules can also be specified.\n\n## Usage\n\nIf you can't work that out for yourself and deal with any fallout if it does\nanything bad, don't.\n\n## Status\n\nIt works on my machine.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFreaky%2Fportacl-rc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FFreaky%2Fportacl-rc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFreaky%2Fportacl-rc/lists"}