diff options
author | Roy Marples <uberlord@gentoo.org> | 2007-10-24 11:38:14 +0000 |
---|---|---|
committer | Roy Marples <uberlord@gentoo.org> | 2007-10-24 11:38:14 +0000 |
commit | 7a2e4b907b03e2bd91339fa75f995fe00a22291c (patch) | |
tree | 1acf39f6ce0ff3d3cad209b8b58afb6918260878 /net-misc/oidentd/files/oidentd-2.0.7-init | |
parent | Sparc stable --- Bug #195278 --- poppler requirement and seems fine. (diff) | |
download | gentoo-2-7a2e4b907b03e2bd91339fa75f995fe00a22291c.tar.gz gentoo-2-7a2e4b907b03e2bd91339fa75f995fe00a22291c.tar.bz2 gentoo-2-7a2e4b907b03e2bd91339fa75f995fe00a22291c.zip |
Check sysctl security.bsd.see_other_uids is not zero and error accordingly if it is, #153961 thanks to Robert Sebastian Gerus.
(Portage version: 2.1.3.16)
Diffstat (limited to 'net-misc/oidentd/files/oidentd-2.0.7-init')
-rw-r--r-- | net-misc/oidentd/files/oidentd-2.0.7-init | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/net-misc/oidentd/files/oidentd-2.0.7-init b/net-misc/oidentd/files/oidentd-2.0.7-init index 48e3e1bcb5a9..592ab12941ab 100644 --- a/net-misc/oidentd/files/oidentd-2.0.7-init +++ b/net-misc/oidentd/files/oidentd-2.0.7-init @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/oidentd/files/oidentd-2.0.7-init,v 1.3 2004/07/15 00:06:35 agriffis Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/oidentd/files/oidentd-2.0.7-init,v 1.4 2007/10/24 11:38:14 uberlord Exp $ depend() { need net @@ -18,6 +18,11 @@ check_config() { eerror "Please set \$GROUP in /etc/conf.d/oidentd!" return 1 fi + + if [ "$(sysctl -n security.bsd.see_other_uids 2>/dev/null)" = "0" ]; then + eerror "${SVCNAME} cannot work if the sysctl security.bsd.see_other_uids is 0" + return 1 + fi } |