加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-malloc-uses-getrandom-now.patch 1.16 KB
一键复制 编辑 原始数据 按行查看 历史
From 08c99e5600f92c5143b931a507980a2655380cb3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Cristian=20Rodr=C3=ADguez?= <crodriguez@owncloud.com>
Date: Fri, 9 Jul 2021 17:19:05 -0400
Subject: [PATCH] malloc() uses getrandom now
glibc master uses getrandom in malloc since https://sourceware.org/git/?p=glibc.git;a=commit;h=fc859c304898a5ec72e0ba5269ed136ed0ea10e1 , getrandom should be in the default set so to avoid all non trivial programs to fallback to a PRNG.
(cherry picked from commit 14f4b1b568907350d023d1429c1aa4aaa8925f22)
Conflict:NA
Reference:https://github.com/systemd/systemd/commit/08c99e5600f92c5143b931a507980a2655380cb3
---
src/shared/seccomp-util.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/shared/seccomp-util.c b/src/shared/seccomp-util.c
index e0f88aec73..cad0af89f2 100644
--- a/src/shared/seccomp-util.c
+++ b/src/shared/seccomp-util.c
@@ -310,6 +310,7 @@ const SyscallFilterSet syscall_filter_sets[_SYSCALL_FILTER_SET_MAX] = {
"getpgrp\0"
"getpid\0"
"getppid\0"
+ "getrandom\0"
"getresgid\0"
"getresgid32\0"
"getresuid\0"
--
2.33.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化