{"id":21281675,"url":"https://github.com/mycodeself/tripwire-policy-adjust","last_synced_at":"2025-06-30T00:07:33.763Z","repository":{"id":89567373,"uuid":"151980801","full_name":"mycodeself/tripwire-policy-adjust","owner":"mycodeself","description":"Simple script to adjust tripwire policy","archived":false,"fork":false,"pushed_at":"2018-10-07T20:09:20.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-15T14:22:42.208Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/mycodeself.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-07T20:07:45.000Z","updated_at":"2018-10-07T20:09:21.000Z","dependencies_parsed_at":"2023-06-29T03:00:55.964Z","dependency_job_id":null,"html_url":"https://github.com/mycodeself/tripwire-policy-adjust","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mycodeself/tripwire-policy-adjust","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mycodeself%2Ftripwire-policy-adjust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mycodeself%2Ftripwire-policy-adjust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mycodeself%2Ftripwire-policy-adjust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mycodeself%2Ftripwire-policy-adjust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mycodeself","download_url":"https://codeload.github.com/mycodeself/tripwire-policy-adjust/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mycodeself%2Ftripwire-policy-adjust/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262685695,"owners_count":23348451,"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-11-21T10:49:48.530Z","updated_at":"2025-06-30T00:07:33.736Z","avatar_url":"https://github.com/mycodeself.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tripwire policy adjust\n\nA simple script for clean the default tripwire policy removing the nonexistent directories/files\n\n## Usage\n\nFirst we need to generate a file output with nonexistent files/directories with tripwire\n```sh\n$ tripwire -m i \u003e /tmp/ouput\n```\n\nGive execution permission to script\n```sh\n$ chmod +x twpa.py\n```\n\nRun script \n```sh\n$ ./twpa.py /tmp/output /etc/tripwire/twpol.txt\n```\n\nNote: the script uses two params, first one the output file generated by tripwire and second one with policy to adjust.\n\nExample output:\n```sh\n$ ./twpa.py /tmp/output /etc/tripwire/twpol.txt\n175 nonexistent files found in twpol.txt\nCreating new policy file...\nFile /etc/tripwire/twpol.txt.adjusted was created successfully.\n```\n## I do not give any warranty, use under your responsibility\n### Feel free to use this as you want!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmycodeself%2Ftripwire-policy-adjust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmycodeself%2Ftripwire-policy-adjust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmycodeself%2Ftripwire-policy-adjust/lists"}