r147 - trunk/text/chapter09

robert at linuxfromscratch.org robert at linuxfromscratch.org
Sat Feb 5 06:59:19 PST 2005


Author: robert
Date: 2005-02-05 07:59:19 -0700 (Sat, 05 Feb 2005)
New Revision: 147

Modified:
   trunk/text/chapter09/02-rdate.txt
   trunk/text/chapter09/03-openntpd.txt
Log:
more fpie additions

Modified: trunk/text/chapter09/02-rdate.txt
===================================================================
--- trunk/text/chapter09/02-rdate.txt	2005-02-05 00:50:45 UTC (rev 146)
+++ trunk/text/chapter09/02-rdate.txt	2005-02-05 14:59:19 UTC (rev 147)
@@ -15,6 +15,7 @@
 
 # Rdate installs to /usr by default.
 
+sed -e 's/^CFLAGS.*$/& -pie -fpie/' -i Makefile &&
 make &&
 make install
 

Modified: trunk/text/chapter09/03-openntpd.txt
===================================================================
--- trunk/text/chapter09/03-openntpd.txt	2005-02-05 00:50:45 UTC (rev 146)
+++ trunk/text/chapter09/03-openntpd.txt	2005-02-05 14:59:19 UTC (rev 147)
@@ -19,12 +19,14 @@
 # This version of the Network Time Protocol Daemon uses privilege separation,
 # like OpenSSH's daemon. We will need to add a dedicated group and user.
 
-install -o root -g sys -d /var/empty &&
-groupadd ntp &&
-useradd -g ntp -s /sbin/nologin -d /var/empty -c 'OpenNTP daemon' ntp
+install -m555 -o root -g sys -d /var/empty &&
+groupadd -g 26 ntp &&
+useradd -u 26 -g ntp -s /sbin/nologin \
+	-d /var/empty -c 'OpenNTP daemon' ntp
 
 # Then configure and install OpenNTPD.
 
+sed -e 's/^CFLAGS=.*$/& -pie -fpie/' -i Makefile.in &&
 ./configure --prefix=/usr --sysconfdir=/etc \
 	--with-privsep-user=ntp &&
 make &&




More information about the hlfs-dev mailing list