(val: ®orus::Value)
| 688 | } |
| 689 | |
| 690 | fn parse_filesystem_policy(val: ®orus::Value) -> FilesystemPolicy { |
| 691 | FilesystemPolicy { |
| 692 | read_only: get_str_array(val, "read_only") |
| 693 | .into_iter() |
| 694 | .map(PathBuf::from) |
| 695 | .collect(), |
| 696 | read_write: get_str_array(val, "read_write") |
| 697 | .into_iter() |
| 698 | .map(PathBuf::from) |
| 699 | .collect(), |
| 700 | include_workdir: get_bool(val, "include_workdir").unwrap_or(true), |
| 701 | } |
| 702 | } |
| 703 | |
| 704 | fn parse_landlock_policy(val: ®orus::Value) -> LandlockPolicy { |
| 705 | let compat = get_str(val, "compatibility").unwrap_or_default(); |
no test coverage detected