From db54983feae4333410ec4638093a57483b6821a8 Mon Sep 17 00:00:00 2001 From: phessler Date: Mon, 29 May 2017 07:49:27 +0000 Subject: [PATCH] remove the file permission check for bgpd.conf OK deraadt@, henning@, sthen@, and everyone who has ever been annoyed --- usr.sbin/bgpd/parse.y | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/usr.sbin/bgpd/parse.y b/usr.sbin/bgpd/parse.y index 44a9df6597a..331f04e7931 100644 --- a/usr.sbin/bgpd/parse.y +++ b/usr.sbin/bgpd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.306 2017/05/28 15:16:33 henning Exp $ */ +/* $OpenBSD: parse.y,v 1.307 2017/05/29 07:49:27 phessler Exp $ */ /* * Copyright (c) 2002, 2003, 2004 Henning Brauer @@ -2737,14 +2737,6 @@ check_file_secrecy(int fd, const char *fname) log_warn("cannot stat %s", fname); return (-1); } - if (st.st_uid != 0 && st.st_uid != getuid()) { - log_warnx("%s: owner not root or current user", fname); - return (-1); - } - if (st.st_mode & (S_IWGRP | S_IXGRP | S_IRWXO)) { - log_warnx("%s: group writable or world read/writeable", fname); - return (-1); - } return (0); } -- 2.20.1