Skip to content

Commit e6f86d4

Browse files
committed
rust: move Linux loader library to triple specific list
It should only be allowed on certain targets.
1 parent 41c146d commit e6f86d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ const ELF_ALLOWED_LIBRARIES: &[&str] = &[
5151
"libpthread.so.0",
5252
"librt.so.1",
5353
"libutil.so.1",
54-
// Linux loader.
55-
"ld-linux-x86-64.so.2",
5654
// Our set.
5755
"libpython3.8.so.1.0",
5856
"libpython3.8d.so.1.0",
@@ -127,6 +125,8 @@ static ELF_ALLOWED_LIBRARIES_BY_TRIPLE: Lazy<HashMap<&'static str, Vec<&'static
127125
"armv7-unknown-linux-gnueabihf",
128126
vec!["ld-linux-armhf.so.3", "libgcc_s.so.1"],
129127
),
128+
("i686-unknown-linux-gnu", vec!["ld-linux-x86-64.so.2"]),
129+
("x86_64-unknown-linux-gnu", vec!["ld-linux-x86-64.so.2"]),
130130
]
131131
.iter()
132132
.cloned()

0 commit comments

Comments
 (0)