{"id":42307709,"url":"https://github.com/lumontec/lsmtrace","last_synced_at":"2026-02-06T16:01:32.119Z","repository":{"id":54805958,"uuid":"329308247","full_name":"lumontec/lsmtrace","owner":"lumontec","description":"Trace deep kernel events through eBPF and lsm hooks","archived":false,"fork":false,"pushed_at":"2021-02-09T09:25:08.000Z","size":3625,"stargazers_count":32,"open_issues_count":2,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-07-30T18:13:46.864Z","etag":null,"topics":["ebpf","kernel","linux-security-module","security","tracing"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lumontec.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}},"created_at":"2021-01-13T12:55:35.000Z","updated_at":"2024-05-20T09:43:51.000Z","dependencies_parsed_at":"2022-08-14T03:20:57.415Z","dependency_job_id":null,"html_url":"https://github.com/lumontec/lsmtrace","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lumontec/lsmtrace","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lumontec%2Flsmtrace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lumontec%2Flsmtrace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lumontec%2Flsmtrace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lumontec%2Flsmtrace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lumontec","download_url":"https://codeload.github.com/lumontec/lsmtrace/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lumontec%2Flsmtrace/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29167870,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T15:38:29.831Z","status":"ssl_error","status_checked_at":"2026-02-06T15:37:48.592Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["ebpf","kernel","linux-security-module","security","tracing"],"created_at":"2026-01-27T11:12:46.283Z","updated_at":"2026-02-06T16:01:32.094Z","avatar_url":"https://github.com/lumontec.png","language":"C","readme":"# lsmtrace\n\nTrace all Linux Security Modules hooks touched by executable.  \nHave a look at my **[blog post](https://lumontec.com/1-building-a-security-tracing)** to find out more.\n\n## Requirements\n\nYour kernel must have been compiled with the follwing options:\n* BPF_SYSCALL\n* BPF_LSM\n* DEBUG_INFO\n* DEBUG_INFO_BTF\n\n## Compilation\n\n```shell\n$ git submodule update --init --recursive    # check out libbpf\n$ cd src\n$ make\n```\n\n## Run\n\n```shell\n$ sudo ./lsmtrace /usr/bin/ls -a /home  \n\nAttaching hooks, don`t rush..\n\n-\u003e HOOK_CALL: -\u003e cred_getsecid( const struct cred *c, u32 *secid )\n-\u003e HOOK_CALL: -\u003e file_permission( struct file *file, int mask )\n     file,f_mode = 32797\n     file,f_path.dentry,d_flags = 64\n     file,f_path.dentry,d_name.name = ls\n     file,f_path.dentry,d_inode,i_ino = 3670696\n...\n```\n\n\n","funding_links":[],"categories":["C"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flumontec%2Flsmtrace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flumontec%2Flsmtrace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flumontec%2Flsmtrace/lists"}