Expose permission profile resolution in the core API (#40989)

GitOrigin-RevId: 80229fcfd3a91715c361b1ba57d1c63eb0728529
This commit is contained in:
Sean Huang
2026-08-26 22:34:42 +00:00
committed by copyberry
parent 0d654e6536
commit 6e008417bb
2 changed files with 6 additions and 2 deletions

View File

@@ -189,7 +189,9 @@ use permission_profile_catalog::permission_profile_is_allowed;
use permission_profile_catalog::validate_permission_profile_for_deny_read;
pub use permission_profile_selection::ResolvedPermissionProfileSelection;
pub use permission_profile_selection::resolve_permission_profile_selection;
pub use permissions::compile_permission_profile;
pub(crate) use permissions::is_builtin_permission_profile_name;
pub use permissions::resolve_permission_profile;
pub(crate) use resolved_permission_profile::PermissionProfileState;
const DEFAULT_IGNORE_LARGE_UNTRACKED_DIRS: i64 = 200;

View File

@@ -194,7 +194,8 @@ pub(crate) fn apply_network_proxy_feature_config(
}
}
pub(crate) fn resolve_permission_profile(
/// Resolves a named permission profile and its inherited configuration.
pub fn resolve_permission_profile(
permissions: &PermissionsToml,
profile_name: &str,
) -> io::Result<PermissionProfileToml> {
@@ -347,7 +348,8 @@ pub(crate) fn network_proxy_config_for_profile_selection(
))
}
pub(crate) fn compile_permission_profile(
/// Compiles a named permission profile into filesystem and network policies.
pub fn compile_permission_profile(
permissions: &PermissionsToml,
profile_name: &str,
startup_warnings: &mut Vec<String>,