SPECS: bind.spec - vserver safe device nodes
glen
glen at pld-linux.org
Tue May 16 16:20:55 CEST 2006
Author: glen Date: Tue May 16 14:20:55 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- vserver safe device nodes
---- Files affected:
SPECS:
bind.spec (1.226 -> 1.227)
---- Diffs:
================================================================
Index: SPECS/bind.spec
diff -u SPECS/bind.spec:1.226 SPECS/bind.spec:1.227
--- SPECS/bind.spec:1.226 Fri Feb 24 16:20:04 2006
+++ SPECS/bind.spec Tue May 16 16:20:50 2006
@@ -388,6 +388,20 @@
%useradd -u 58 -g 58 -d /tmp -s /bin/false -c "BIND user" named
%post
+if [ "$1" = 1 ]; then
+ mknod -m 660 %{_var}/lib/named/dev/null c 1 3 2>/dev/null
+ chown root:named %{_var}/lib/named/dev/null 2>/dev/null
+ mknod -m 640 %{_var}/lib/named/dev/null c 1 8 2>/dev/null
+ chown root:named %{_var}/lib/named/dev/random 2>/dev/null
+ if [ ! -c %{_var}/lib/named/dev/null ] || [ ! -c %{_var}/lib/named/dev/random ]; then
+%banner -e %{name}-devs <<-EOF
+Device nodes were not created!!!
+
+Please read PLD Linux Vserver FAQ if you're installing %{name} inside
+vserver: <http://www.pld-linux.org/Vserver>.
+EOF
+ fi #'
+fi
/sbin/chkconfig --add named
%service named restart
@@ -443,8 +457,8 @@
# devices for chrooted bind
%attr(750,root,named) %dir %{_var}/lib/named/dev
-%dev(c,1,3) %attr(660,root,named) %{_var}/lib/named/dev/null
-%dev(c,1,8) %attr(640,root,named) %{_var}/lib/named/dev/random
+%ghost %attr(660,root,named) %{_var}/lib/named/dev/null
+%ghost %attr(640,root,named) %{_var}/lib/named/dev/random
%files utils
%defattr(644,root,root,755)
@@ -494,6 +508,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.227 2006/05/16 14:20:50 glen
+- vserver safe device nodes
+
Revision 1.226 2006/02/24 15:20:04 glen
- use %service
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/bind.spec?r1=1.226&r2=1.227&f=u
More information about the pld-cvs-commit
mailing list