{"id":17360698,"url":"https://github.com/certik/restrict","last_synced_at":"2025-04-15T00:47:54.772Z","repository":{"id":2060369,"uuid":"2998698","full_name":"certik/restrict","owner":"certik","description":"Restricts the file access using LD_PRELOAD","archived":false,"fork":false,"pushed_at":"2011-12-18T08:14:03.000Z","size":104,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-15T00:47:41.450Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/certik.png","metadata":{"files":{"readme":"README.rst","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}},"created_at":"2011-12-17T00:15:58.000Z","updated_at":"2022-01-09T14:42:01.000Z","dependencies_parsed_at":"2022-08-29T02:41:13.791Z","dependency_job_id":null,"html_url":"https://github.com/certik/restrict","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/certik%2Frestrict","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/certik%2Frestrict/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/certik%2Frestrict/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/certik%2Frestrict/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/certik","download_url":"https://codeload.github.com/certik/restrict/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248986278,"owners_count":21194025,"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-15T19:27:35.044Z","updated_at":"2025-04-15T00:47:54.752Z","avatar_url":"https://github.com/certik.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"Restrict\n========\n\nThe restrict library restricts the ``open()``, ``open64()`` and ``fopen()``\ncalls to only allow opening \"allowed\" files. Compile with::\n\n    ./compile\n\nExamples of usage::\n\n    LD_PRELOAD=./restrict.so touch test_file\n    LD_PRELOAD=./restrict.so cat test_file\n\nHow it Works\n------------\n\nIt preloads the ``open()``, ``open64()`` and ``fopen()`` libc calls using the\n``LD_PRELOAD`` mechanism. This means that static binaries, as well as accessing\nfiles by other means than through ``open/open64/fopen`` will not be checked.\n\nLicense\n-------\n\nAll code in this package is released under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcertik%2Frestrict","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcertik%2Frestrict","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcertik%2Frestrict/lists"}