Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RaunakChhatwal/fhsenv
/ functions
Functions
18 in github.com/RaunakChhatwal/fhsenv
⨍
Functions
18
◇
Types & classes
3
↓ 5 callers
Function
prepend_entries_in_env
(key: &str, additions: &[&str])
src/prepare_env.rs:23
↓ 4 callers
Function
bind_entries
asynchronously loop over bind_entry
src/main.rs:216
↓ 3 callers
Function
command
(program: &Path)
src/main.rs:17
↓ 3 callers
Function
subprocess
(program: &Path, args: I)
src/main.rs:25
↓ 2 callers
Function
set_mapping
https://man7.org/linux/man-pages/man1/newuidmap.1.html
src/main.rs:116
↓ 1 callers
Function
bind_entry
target is inside new_root so isolated from outside however entry may be malicious if from fhs_path or /tmp TODO: is there a practical limit on number
src/main.rs:194
↓ 1 callers
Function
create_ld_so_conf
(new_root: &std::path::Path)
src/prepare_env.rs:3
↓ 1 callers
Function
create_new_root
mount requires root since it allows the caller to overwrite sensitive system files > mount a filesystem of your choice on /etc, with an /etc/shadow co
src/main.rs:242
↓ 1 callers
Function
define_fhs
(Mode { shell_nix, packages }: Mode)
src/main.rs:289
↓ 1 callers
Function
enter_shell
TODO: how does nix-shell do this?
src/main.rs:313
↓ 1 callers
Function
enter_user_namespace
https://man7.org/linux/man-pages/man7/user_namespaces.7.html
src/main.rs:154
↓ 1 callers
Function
exists
tokio::fs::try_exists equivalent that doesn't traverse symlinks
src/main.rs:183
↓ 1 callers
Function
get_fhs_path
TODO: handle the case where fhs_derivation doesn't actually evaluate to buildFHSUserEnv.env
src/main.rs:38
↓ 1 callers
Method
mapper
(&self)
src/main.rs:85
↓ 1 callers
Function
pivot_root
(new_root: &Path)
src/main.rs:265
↓ 1 callers
Function
prepare_env
()
src/prepare_env.rs:31
↓ 1 callers
Function
read_subuid
(mapping: Mapping, username: &str)
src/main.rs:91
Function
main
()
src/main.rs:348