9 Star 0 Fork 6

src-openEuler / tcp_wrappers

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
man_fromhost.patch 873 Bytes
一键复制 编辑 原始数据 按行查看 历史
dogsheng 提交于 2019-12-14 14:49 . Package init
Upstream-Status: Backport
diff -ruN tcp_wrappers_7.6.orig/hosts_access.3 tcp_wrappers_7.6/hosts_access.3
--- tcp_wrappers_7.6.orig/hosts_access.3 2004-04-25 00:10:48.000000000 +0200
+++ tcp_wrappers_7.6/hosts_access.3 2004-04-25 00:09:36.000000000 +0200
@@ -14,6 +14,9 @@
struct request_info *request_set(request, key, value, ..., 0)
struct request_info *request;
+void fromhost(request)
+struct request_info *request;
+
int hosts_access(request)
struct request_info *request;
@@ -60,6 +63,7 @@
is available, host names and client user names are looked up on demand,
using the request structure as a cache. hosts_access() returns zero if
access should be denied.
+fromhost() must be called before hosts_access().
.PP
hosts_ctl() is a wrapper around the request_init() and hosts_access()
routines with a perhaps more convenient interface (though it does not
1
https://gitee.com/src-openeuler/tcp_wrappers.git
git@gitee.com:src-openeuler/tcp_wrappers.git
src-openeuler
tcp_wrappers
tcp_wrappers
master

搜索帮助