summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmy Winston <amynka@gentoo.org>2016-06-06 17:58:55 +0200
committerAmy Winston <amynka@gentoo.org>2016-06-06 18:03:52 +0200
commit1a5da76efe78891df3fac92e70142c2460f260d1 (patch)
tree7f22088ffe355f2455ddb100f4504e480b0ca672 /sys-cluster/util-vserver
parentsys-apps/portage: Fix a typo in an einfo (diff)
downloadgentoo-1a5da76efe78891df3fac92e70142c2460f260d1.tar.gz
gentoo-1a5da76efe78891df3fac92e70142c2460f260d1.tar.bz2
gentoo-1a5da76efe78891df3fac92e70142c2460f260d1.zip
sys-cluster/util-vserver: setattr repaired bug #583892
Package-Manager: portage-2.2.28
Diffstat (limited to 'sys-cluster/util-vserver')
-rw-r--r--sys-cluster/util-vserver/util-vserver-0.30.216_pre3120.ebuild12
1 files changed, 10 insertions, 2 deletions
diff --git a/sys-cluster/util-vserver/util-vserver-0.30.216_pre3120.ebuild b/sys-cluster/util-vserver/util-vserver-0.30.216_pre3120.ebuild
index fab02aed082e..e78a7f4eeee4 100644
--- a/sys-cluster/util-vserver/util-vserver-0.30.216_pre3120.ebuild
+++ b/sys-cluster/util-vserver/util-vserver-0.30.216_pre3120.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
@@ -87,7 +87,15 @@ pkg_postinst() {
# present when merging.
mkdir -p "${VDIRBASE}" || die
- setattr --barrier "${VDIRBASE}" || die
+ if ! setattr --barrier "${VDIRBASE}"; then
+ ewarn "Filesystem on ${VDIRBASE} does not support chroot barriers."
+ ewarn "Chroot barrier is additional security measure that is used"
+ ewarn "when two vservers or the host system share the same filesystem."
+ ewarn "If you intend to use separate filesystem for every vserver"
+ ewarn "you can safely ignore this warning."
+ ewarn "To manually apply a barrier use: setattr --barrier ${VDIRBASE}"
+ ewarn "For details see: http://linux-vserver.org/Secure_chroot_Barrier"
+ fi
rm /etc/vservers/.defaults/vdirbase || die
ln -sf "${VDIRBASE}" /etc/vservers/.defaults/vdirbase || die