{"id":17219382,"url":"https://github.com/andreafioraldi/fas-lkm","last_synced_at":"2025-03-25T14:42:01.206Z","repository":{"id":86885096,"uuid":"275147617","full_name":"andreafioraldi/FAS-LKM","owner":"andreafioraldi","description":"File Access with Sessions Linux Kernel Module","archived":false,"fork":false,"pushed_at":"2020-06-26T12:13:16.000Z","size":117,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-30T13:26:20.944Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andreafioraldi.png","metadata":{"files":{"readme":"README.txt","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2020-06-26T12:11:00.000Z","updated_at":"2020-06-26T12:13:19.000Z","dependencies_parsed_at":"2023-03-22T23:31:21.854Z","dependency_job_id":null,"html_url":"https://github.com/andreafioraldi/FAS-LKM","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/andreafioraldi%2FFAS-LKM","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreafioraldi%2FFAS-LKM/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreafioraldi%2FFAS-LKM/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreafioraldi%2FFAS-LKM/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andreafioraldi","download_url":"https://codeload.github.com/andreafioraldi/FAS-LKM/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245484634,"owners_count":20623122,"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-15T03:49:45.145Z","updated_at":"2025-03-25T14:42:01.178Z","avatar_url":"https://github.com/andreafioraldi.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"===========================\n File Access with Sessions\n===========================\n\n  Written and maintained by Andrea Fioraldi \u003candreafioraldi@gmail.com\u003e\n\n  Copyright 2019 Andrea Fioraldi. All rights reserved.\n  Released under terms and conditions of the GNU General Public License,\n  Version 2.0. A copy of the license is provided in the LICENSE.txt file.\n\nA Linux Kernel subsystem which allows to access files in a specific directory\nof the virtual file system using sessions.\n\nProject made for the Advanced Operating Systems and Virtualization class of\nSapienza University of Rome.\n\nSee docs/REPORT.txt for details.\n\n1) Building\n-----------\n\n$ make\n\nTo build the module and libfas in debug mode. Note that this will log a lot\nof data in dmesg.\n\n$ RELEASE=1 make\n\nTo build the module and libfas without debug logs.\n\n$ cd test ; make\n\nTo build the test binaries.\n\nThe FAS kernel module is known to compile and work for kernel versions \u003e= 5.0.\n\n2) Running\n----------\n\nLoad the module with\n\n# insmod src/fas.ko\n\nUnload it with\n\n# rmmod fas\n\nThe easy-peasy way to have session files in you l33t Linux box without doing\nalmost nothing is to preload test/test_preloader.so into an existing\napplication like bash.\n\nNote that you have to write / into /sys/kernel/fas/initial_path to allow\nsession files on the enire system.\nA requirement is that the application that uses FAS must have the permission to\nwrite into initial_path, so if you want to se initial_path to / you have to\nrun the applications as root (be careful!!!).\n\nThe commands are:\n\n# echo / \u003e /sys/kernel/fas/initial_path\n# LD_PRELOAD=/full/path/to/test_preloader.so /bin/bash\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreafioraldi%2Ffas-lkm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandreafioraldi%2Ffas-lkm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreafioraldi%2Ffas-lkm/lists"}