代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/samba 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
From 8a2b11fda30eef3883bbe9ea538dae6f68216fd9 Mon Sep 17 00:00:00 2001
From: Stefan Metzmacher <metze@samba.org>
Date: Thu, 16 Mar 2023 10:11:05 +0100
Subject: [PATCH 12/28] CVE-2023-4154 py_security: allow idx argument to
descriptor.[s|d]acl_add()
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15424
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
(cherry picked from commit 9ea06aaf9f57e3c7094553d9ac40fb73057a9b74)
Conflict: NA
Reference: https://download.samba.org/pub/samba/patches/security/samba-4.18.8-security-2023-10-10.patch
[PATCH 12/28] CVE-2023-4154 py_security: allow idx argument to
descriptor.[s|d]acl_add()
---
source4/librpc/ndr/py_security.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/source4/librpc/ndr/py_security.c b/source4/librpc/ndr/py_security.c
index ff3de775af6..ac92f3a47a3 100644
--- a/source4/librpc/ndr/py_security.c
+++ b/source4/librpc/ndr/py_security.c
@@ -176,12 +176,13 @@ static PyObject *py_descriptor_sacl_add(PyObject *self, PyObject *args)
NTSTATUS status;
struct security_ace *ace;
PyObject *py_ace;
+ Py_ssize_t idx = -1;
- if (!PyArg_ParseTuple(args, "O", &py_ace))
+ if (!PyArg_ParseTuple(args, "O|n", &py_ace, &idx))
return NULL;
ace = pytalloc_get_ptr(py_ace);
- status = security_descriptor_sacl_add(desc, ace);
+ status = security_descriptor_sacl_insert(desc, ace, idx);
PyErr_NTSTATUS_IS_ERR_RAISE(status);
Py_RETURN_NONE;
}
@@ -192,13 +193,14 @@ static PyObject *py_descriptor_dacl_add(PyObject *self, PyObject *args)
NTSTATUS status;
struct security_ace *ace;
PyObject *py_ace;
+ Py_ssize_t idx = -1;
- if (!PyArg_ParseTuple(args, "O", &py_ace))
+ if (!PyArg_ParseTuple(args, "O|n", &py_ace, &idx))
return NULL;
ace = pytalloc_get_ptr(py_ace);
- status = security_descriptor_dacl_add(desc, ace);
+ status = security_descriptor_dacl_insert(desc, ace, idx);
PyErr_NTSTATUS_IS_ERR_RAISE(status);
Py_RETURN_NONE;
}
--
2.34.1
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。