mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[rdct] IJPL-166181. Disable using self-contained set of file systems with ebabled FIPS
- Update scripts for launching backend to check for FIPS enabled in OS before importing self-contained libiries. (cherry picked from commit 2b86435ec1f91cb94546451a4ed9c46b5f6f47a4) IJ-CR-149619 GitOrigin-RevId: 44af0bc6125422043709c7e8ceba4c27e20b2887
This commit is contained in:
committed by
intellij-monorepo-bot
parent
0a4b728177
commit
506fed297b
@@ -517,6 +517,11 @@ fn preload_native_libs(ide_home_dir: &PathBuf) -> Result<()> {
|
||||
use std::collections::BTreeSet;
|
||||
use std::mem;
|
||||
|
||||
if is_fips() {
|
||||
debug!("Unable to use libraries for self-contained distribution with FIPS enabled.");
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
let use_libs = parse_bool_env_var("REMOTE_DEV_SERVER_USE_SELF_CONTAINED_LIBS", true)?;
|
||||
if !use_libs {
|
||||
return Ok(())
|
||||
@@ -614,3 +619,10 @@ fn is_wsl2() -> bool {
|
||||
.map(|x| x.contains("WSL2"))
|
||||
.unwrap_or(false)
|
||||
}
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
fn is_fips() -> bool {
|
||||
fs::read_to_string("/proc/sys/crypto/fips_enabled")
|
||||
.map(|x| x.contains("1"))
|
||||
.unwrap_or(false)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user