From d1d964a0b12208a378685d892fc26509f7582bb3 Mon Sep 17 00:00:00 2001 From: zacheiss Date: Sat, 22 Dec 2001 02:43:46 +0000 Subject: [PATCH] Treat MACHINE list membership info as public information. --- server/qaccess.pc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server/qaccess.pc b/server/qaccess.pc index f6ea1044..1c745c3c 100644 --- a/server/qaccess.pc +++ b/server/qaccess.pc @@ -309,7 +309,8 @@ int access_vis_list_by_name(struct query *q, char *argv[], client *cl) /* access_member - allow user to access member of type "USER" and name matches * username, or to access member of type "KERBEROS" and the principal matches * the user, or to access member of type "LIST" and list is one that user is - * on the acl of, or the list is visible. + * on the acl of, or the list is visible. Allow anyone to look up list + * memberships of MACHINEs. */ int access_member(struct query *q, char *argv[], client *cl) @@ -329,6 +330,9 @@ int access_member(struct query *q, char *argv[], client *cl) return MR_SUCCESS; } + if (!strcmp(argv[0], "MACHINE") || !strcmp(argv[0], "RMACHINE")) + return MR_SUCCESS; + return MR_PERM; } -- 2.45.2