summaryrefslogtreecommitdiff
path: root/src/unix
diff options
context:
space:
mode:
authorBenjamin Lamowski <benjamin.lamowski@kernkonzept.com>2022-01-24 15:20:17 +0100
committerBenjamin Lamowski <benjamin.lamowski@kernkonzept.com>2022-01-24 15:43:47 +0100
commitdf9df78281ac51db324263151f042239b0c4191c (patch)
tree5e3ee71cb555f72efeb20beb39e2bf6fd38a1560 /src/unix
parent78e76aa33fd4019b2663ecd557b308fd13b3c824 (diff)
downloadrust-libc-df9df78281ac51db324263151f042239b0c4191c.tar.gz
add O_NOFOLLOW flag to uclibc
This is needed by the fix for CVE-2022-21658 in the standard library.
Diffstat (limited to 'src/unix')
-rw-r--r--src/unix/linux_like/linux/uclibc/x86_64/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/unix/linux_like/linux/uclibc/x86_64/mod.rs b/src/unix/linux_like/linux/uclibc/x86_64/mod.rs
index 7f80df4377..aa51beacba 100644
--- a/src/unix/linux_like/linux/uclibc/x86_64/mod.rs
+++ b/src/unix/linux_like/linux/uclibc/x86_64/mod.rs
@@ -317,6 +317,7 @@ pub const O_CLOEXEC: ::c_int = 0x80000;
pub const O_CREAT: ::c_int = 0100;
pub const O_DIRECTORY: ::c_int = 0200000;
pub const O_EXCL: ::c_int = 0200;
+pub const O_NOFOLLOW: ::c_int = 0x20000;
pub const O_NONBLOCK: ::c_int = 04000;
pub const O_TRUNC: ::c_int = 01000;
pub const NCCS: usize = 32;