SPECS: bind.spec - /dev/random is not needed inside of chroot (bin...
arekm
arekm at pld-linux.org
Fri Jun 1 19:25:14 CEST 2007
Author: arekm Date: Fri Jun 1 17:25:14 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- /dev/random is not needed inside of chroot (bind can use pre-chroot one). maybe even /dev/null is not needed (works without it with default config)
---- Files affected:
SPECS:
bind.spec (1.248 -> 1.249)
---- Diffs:
================================================================
Index: SPECS/bind.spec
diff -u SPECS/bind.spec:1.248 SPECS/bind.spec:1.249
--- SPECS/bind.spec:1.248 Fri May 11 23:01:17 2007
+++ SPECS/bind.spec Fri Jun 1 19:25:09 2007
@@ -400,7 +400,7 @@
ln -sf %{_var}/lib/named/named.log $RPM_BUILD_ROOT%{_var}/log/named
ln -sf %{_var}/lib/named/named.stats $RPM_BUILD_ROOT%{_var}/log/named.stats
-touch $RPM_BUILD_ROOT%{_var}/lib/named/{named.{log,stats},dev/{random,null}}
+touch $RPM_BUILD_ROOT%{_var}/lib/named/{named.{log,stats},dev/null}
%{?with_ldap:install -d $RPM_BUILD_ROOT%{_datadir}/openldap/schema}
%{?with_ldap:install %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/openldap/schema/dnszone.schema}
@@ -429,11 +429,9 @@
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/random 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
+ if [ ! -c %{_var}/lib/named/dev/null ]; then
%banner -e %{name}-devs <<-EOF
-Device nodes were not created!!!
+Device node was not created!!!
Please read PLD Linux Vserver FAQ if you're installing %{name} inside
vserver: <http://www.pld-linux.org/Vserver>.
@@ -493,7 +491,6 @@
# devices for chrooted bind
%attr(750,root,named) %dir %{_var}/lib/named/dev
%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)
@@ -550,6 +547,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.249 2007/06/01 17:25:09 arekm
+- /dev/random is not needed inside of chroot (bind can use pre-chroot one). maybe even /dev/null is not needed (works without it with default config)
+
Revision 1.248 2007/05/11 21:01:17 qboosh
- CVE reference
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/bind.spec?r1=1.248&r2=1.249&f=u
More information about the pld-cvs-commit
mailing list