|
| 1 | +# The execution boundary must use celld::asyncrt. Modules which never execute |
| 2 | +# in the World carry an explicit lint allow and are listed in the S0 audit. |
| 3 | +disallowed-methods = [ |
| 4 | + { path = "tokio::spawn", reason = "use celld::asyncrt::spawn inside the World boundary" }, |
| 5 | + { path = "tokio::runtime::Handle::spawn", reason = "use celld::asyncrt::spawn inside the World boundary" }, |
| 6 | + { path = "tokio::task::spawn_blocking", reason = "use celld::asyncrt::blocking inside the World boundary" }, |
| 7 | + { path = "tokio::runtime::Handle::spawn_blocking", reason = "use celld::asyncrt::blocking inside the World boundary" }, |
| 8 | + { path = "tokio::time::sleep", reason = "use celld::asyncrt::sleep inside the World boundary" }, |
| 9 | + { path = "tokio::time::sleep_until", reason = "use celld::asyncrt::sleep_until inside the World boundary" }, |
| 10 | + { path = "tokio::time::timeout", reason = "use celld::asyncrt::timeout inside the World boundary" }, |
| 11 | + { path = "tokio::time::timeout_at", reason = "use celld::asyncrt::timeout_at inside the World boundary" }, |
| 12 | + { path = "tokio::time::interval", reason = "use celld::asyncrt::interval inside the World boundary" }, |
| 13 | + { path = "tokio::time::interval_at", reason = "use celld::asyncrt::interval_at inside the World boundary" }, |
| 14 | + { path = "std::time::SystemTime::now", reason = "use the execution-domain wall clock inside the World boundary" }, |
| 15 | + { path = "std::time::Instant::now", reason = "use the execution-domain monotonic clock inside the World boundary" }, |
| 16 | + { path = "rand::random", reason = "use a labeled execution-domain RNG inside the World boundary" }, |
| 17 | + { path = "std::process::id", reason = "use the execution-domain process tag inside the World boundary" }, |
| 18 | + { path = "std::fs::read", reason = "use the injected whole-node filesystem for celld node storage" }, |
| 19 | + { path = "std::fs::read_to_string", reason = "use the injected whole-node filesystem for celld node storage" }, |
| 20 | + { path = "std::fs::read_dir", reason = "use the injected whole-node filesystem for celld node storage" }, |
| 21 | + { path = "std::fs::metadata", reason = "use the injected whole-node filesystem for celld node storage" }, |
| 22 | + { path = "std::fs::symlink_metadata", reason = "use the injected whole-node filesystem for celld node storage" }, |
| 23 | + { path = "std::fs::canonicalize", reason = "use the injected whole-node filesystem for celld node storage" }, |
| 24 | + { path = "std::fs::copy", reason = "use the injected whole-node filesystem for celld node storage" }, |
| 25 | + { path = "std::fs::exists", reason = "use injected filesystem metadata for celld node storage" }, |
| 26 | + { path = "std::fs::hard_link", reason = "use the injected whole-node filesystem for celld node storage" }, |
| 27 | + { path = "std::fs::read_link", reason = "use the injected whole-node filesystem for celld node storage" }, |
| 28 | + { path = "std::fs::File::create", reason = "use the injected whole-node filesystem for celld node storage" }, |
| 29 | + { path = "std::fs::File::open", reason = "use the injected whole-node filesystem for celld node storage" }, |
| 30 | + { path = "std::fs::File::options", reason = "use the injected whole-node filesystem for celld node storage" }, |
| 31 | + { path = "std::fs::File::sync_all", reason = "use the injected whole-node filesystem for celld node storage" }, |
| 32 | + { path = "std::fs::File::sync_data", reason = "use the injected whole-node filesystem for celld node storage" }, |
| 33 | + { path = "std::fs::OpenOptions::new", reason = "use the injected whole-node filesystem for celld node storage" }, |
| 34 | + { path = "std::fs::OpenOptions::open", reason = "use the injected whole-node filesystem for celld node storage" }, |
| 35 | + { path = "std::fs::write", reason = "use the injected whole-node filesystem for celld node storage" }, |
| 36 | + { path = "std::fs::rename", reason = "use the injected whole-node filesystem for celld node storage" }, |
| 37 | + { path = "std::fs::remove_file", reason = "use the injected whole-node filesystem for celld node storage" }, |
| 38 | + { path = "std::fs::remove_dir", reason = "use the injected whole-node filesystem for celld node storage" }, |
| 39 | + { path = "std::fs::remove_dir_all", reason = "use the injected whole-node filesystem for celld node storage" }, |
| 40 | + { path = "std::fs::create_dir", reason = "use the injected whole-node filesystem for celld node storage" }, |
| 41 | + { path = "std::fs::create_dir_all", reason = "use the injected whole-node filesystem for celld node storage" }, |
| 42 | + { path = "std::fs::set_permissions", reason = "use the injected whole-node filesystem for celld node storage" }, |
| 43 | + { path = "std::path::Path::exists", reason = "use injected filesystem metadata for celld node storage" }, |
| 44 | + { path = "std::path::Path::try_exists", reason = "use injected filesystem metadata for celld node storage" }, |
| 45 | + { path = "std::path::Path::is_file", reason = "use injected filesystem metadata for celld node storage" }, |
| 46 | + { path = "std::path::Path::is_dir", reason = "use injected filesystem metadata for celld node storage" }, |
| 47 | + { path = "std::path::Path::is_symlink", reason = "use injected filesystem metadata for celld node storage" }, |
| 48 | + { path = "std::path::Path::metadata", reason = "use injected filesystem metadata for celld node storage" }, |
| 49 | + { path = "std::path::Path::symlink_metadata", reason = "use injected filesystem metadata for celld node storage" }, |
| 50 | + { path = "std::path::Path::canonicalize", reason = "use the injected whole-node filesystem for celld node storage" }, |
| 51 | + { path = "std::path::Path::read_link", reason = "use the injected whole-node filesystem for celld node storage" }, |
| 52 | + { path = "std::path::Path::read_dir", reason = "use the injected whole-node filesystem for celld node storage" }, |
| 53 | + { path = "tokio::fs::read", reason = "use the injected whole-node filesystem for celld node storage" }, |
| 54 | + { path = "tokio::fs::read_dir", reason = "use the injected whole-node filesystem for celld node storage" }, |
| 55 | + { path = "tokio::fs::read_to_string", reason = "use the injected whole-node filesystem for celld node storage" }, |
| 56 | + { path = "tokio::fs::metadata", reason = "use the injected whole-node filesystem for celld node storage" }, |
| 57 | + { path = "tokio::fs::symlink_metadata", reason = "use the injected whole-node filesystem for celld node storage" }, |
| 58 | + { path = "tokio::fs::canonicalize", reason = "use the injected whole-node filesystem for celld node storage" }, |
| 59 | + { path = "tokio::fs::copy", reason = "use the injected whole-node filesystem for celld node storage" }, |
| 60 | + { path = "tokio::fs::try_exists", reason = "use injected filesystem metadata for celld node storage" }, |
| 61 | + { path = "tokio::fs::hard_link", reason = "use the injected whole-node filesystem for celld node storage" }, |
| 62 | + { path = "tokio::fs::read_link", reason = "use the injected whole-node filesystem for celld node storage" }, |
| 63 | + { path = "tokio::fs::File::create", reason = "use the injected whole-node filesystem for celld node storage" }, |
| 64 | + { path = "tokio::fs::File::open", reason = "use the injected whole-node filesystem for celld node storage" }, |
| 65 | + { path = "tokio::fs::File::sync_all", reason = "use the injected whole-node filesystem for celld node storage" }, |
| 66 | + { path = "tokio::fs::File::sync_data", reason = "use the injected whole-node filesystem for celld node storage" }, |
| 67 | + { path = "tokio::fs::OpenOptions::new", reason = "use the injected whole-node filesystem for celld node storage" }, |
| 68 | + { path = "tokio::fs::OpenOptions::open", reason = "use the injected whole-node filesystem for celld node storage" }, |
| 69 | + { path = "tokio::fs::write", reason = "use the injected whole-node filesystem for celld node storage" }, |
| 70 | + { path = "tokio::fs::rename", reason = "use the injected whole-node filesystem for celld node storage" }, |
| 71 | + { path = "tokio::fs::remove_file", reason = "use the injected whole-node filesystem for celld node storage" }, |
| 72 | + { path = "tokio::fs::remove_dir", reason = "use the injected whole-node filesystem for celld node storage" }, |
| 73 | + { path = "tokio::fs::remove_dir_all", reason = "use the injected whole-node filesystem for celld node storage" }, |
| 74 | + { path = "tokio::fs::create_dir", reason = "use the injected whole-node filesystem for celld node storage" }, |
| 75 | + { path = "tokio::fs::create_dir_all", reason = "use the injected whole-node filesystem for celld node storage" }, |
| 76 | + { path = "tokio::fs::set_permissions", reason = "use the injected whole-node filesystem for celld node storage" }, |
| 77 | +] |
| 78 | + |
| 79 | +disallowed-macros = [ |
| 80 | + { path = "tokio::select", reason = "use celld::asyncrt::select with a declared priority inside the World boundary" }, |
| 81 | +] |
| 82 | + |
| 83 | +disallowed-types = [ |
| 84 | + { path = "rand::rngs::OsRng", reason = "use a labeled execution-domain RNG inside the World boundary" }, |
| 85 | +] |
0 commit comments