{"id":17921128,"url":"https://github.com/nukem9/dune","last_synced_at":"2025-10-04T13:47:24.814Z","repository":{"id":75411275,"uuid":"64283136","full_name":"Nukem9/Dune","owner":"Nukem9","description":"Fork of http://dune.scs.stanford.edu/dune.git","archived":false,"fork":false,"pushed_at":"2016-07-27T07:06:50.000Z","size":212,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-21T07:37:24.352Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Nukem9.png","metadata":{"files":{"readme":"README","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-07-27T06:27:30.000Z","updated_at":"2020-10-19T11:51:27.000Z","dependencies_parsed_at":"2023-06-06T10:31:43.260Z","dependency_job_id":null,"html_url":"https://github.com/Nukem9/Dune","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Nukem9/Dune","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nukem9%2FDune","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nukem9%2FDune/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nukem9%2FDune/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nukem9%2FDune/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nukem9","download_url":"https://codeload.github.com/Nukem9/Dune/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nukem9%2FDune/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278322188,"owners_count":25967873,"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","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-28T20:31:16.850Z","updated_at":"2025-10-04T13:47:24.787Z","avatar_url":"https://github.com/Nukem9.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"Overview\n========\n\nDune is a system that lets you safely run applications in Ring 0 by using\nhardware virtualization.  This lets applications access privileged CPU features\nand do things like change their own page table, register interrupt handlers and\nmore, while still being able to perform normal system calls.  More information\nis available here:\n\n\thttp://dune.scs.stanford.edu/\n\nDune has two components:\n\n1.  A kernel module to enable virtualization (kern)\n2.  A utility library to help with using Dune (libdune)\n\nWe also provide an optional patched glibc (eglibc-2.14). It slightly\nimproves system call performance by performing a VMCALL directly.\nIf used, it does not need to be installed globally.\n\nDune is enabled only on applications that call dune_init().  All other\napplications on the system remain unaffected.\n\nThe directory layout of this archive is as follows:\nkern/    -\u003e the Dune kernel module\nlibdune/ -\u003e the Dune library OS\nbench/   -\u003e a series of benchmarks to compare Dune and Linux performance\ntest/    -\u003e simple test programs and examples\nsandbox/ -\u003e a generic implementation for sandboxing untrusted binaries\n\nRequirements\n============\n\n* A 64-bit x86 Linux environment\n* A recent Intel CPU (we use Nehalem and later) with VT-x support.\n* A recent kernel version --- We use 3.0 and later, but earlier versions\n  may also work.\n* Kernel headers must be installed for the running kernel.\n\nWe provide a script called dune_req.sh that will attempt to verify\nif these requirements are met.\n\nSetup\n=====\n\n# make\n# insmod kern/dune.ko\n# test/hello\n\nYou'll need to be root to load the module. However, applications can use\nDune without running as root; simply change the permission of '/dev/dune'\naccordingly.\n\nAnother program worth trying after Dune is setup is the Dune benchmark suite.\nIt can be run with the following command:\n\n# bench/bench_dune\n\nRun the following command to build a faster version of glibc (optional):\n\n# make libc\n\nIf eglibc build fails some systems (e.g. Ubuntu) may have incompatible default\nCFLAGS set.  Before running the libc build set the following flags.\n\n# setenv CFLAGS \"-U_FORTIFY_SOURCE -O2 -fno-stack-protector\"\n\nThe alternate glibc can be used by prefixing dune apps with the\ndune_env.sh script.\n\nLimitations\n===========\n\nDune is fairly far along, but could benefit from better support for signals\nand more robust pthread support inside libdune. We're currently working on\nthese issues.\n\nProgramming\n===========\n\n1.  Call dune_init() to enter dune mode.  (Link to libdune.)\n2.  The application will continue to function as normal.  You can use printf,\n    use sockets, access files, etc.\n3.  But you can then also perform privileged CPU instructions.\n\nQuestions?\n==========\n\nContact us at dune@scs.stanford.edu.\n\nLast edited: 10/05/12\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnukem9%2Fdune","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnukem9%2Fdune","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnukem9%2Fdune/lists"}