Remove rule to build sepgsql-regtest.pp.
authorRobert Haas <rhaas@postgresql.org>
Thu, 17 Feb 2011 11:39:13 +0000 (06:39 -0500)
committerRobert Haas <rhaas@postgresql.org>
Thu, 17 Feb 2011 11:40:32 +0000 (06:40 -0500)
Instead, document how to build it manually.

Per discussion.  KaiGai Kohei, with some wordsmithing by me.

contrib/sepgsql/Makefile
doc/src/sgml/sepgsql.sgml

index 37a6dce89d8825adcf314669e5b841391e60fbca..bc995dd29a2ad01b1281cede8ad5b6ddb3a56af3 100644 (file)
@@ -3,7 +3,7 @@
 MODULE_big = sepgsql
 OBJS = hooks.o selinux.o label.o dml.o \
    schema.o relation.o proc.o
-DATA_built = sepgsql.sql sepgsql-regtest.pp
+DATA_built = sepgsql.sql
 REGRESS = label dml misc
 EXTRA_CLEAN = -r tmp *.pp sepgsql-regtest.if sepgsql-regtest.fc
 
@@ -20,6 +20,3 @@ endif
 
 SHLIB_LINK += $(filter -lselinux, $(LIBS))
 REGRESS_OPTS += --launcher $(top_builddir)/contrib/sepgsql/launcher
-
-sepgsql-regtest.pp: sepgsql-regtest.te
-   $(MAKE) -f $(DESTDIR)/usr/share/selinux/devel/Makefile $@
index 9ef2bf9da820208c7fd9d9f8a10f028ae13e71e3..d24cc056d25ba7a9a8bb987fa0ed215153d2ffe5 100644 (file)
@@ -124,19 +124,24 @@ $ for DBNAME in template0 template1 postgres; do
   </para>
 
   <para>
-   First, install the policy package for the regression test.
+   First, build and install the policy package for the regression test.
    The <filename>sepgsql-regtest.pp</> is a special purpose policy package
    which provides a set of rules to be allowed during the regression tests.
-   You need to install this policy package using the <command>semodule</>
-   command, which links supplied policy packages and loads them
-   into the kernel space.  If this packages is correctly installed,
+   It should be built from the policy source fire 
+   (<filename>sepgsql-regtest.te</>), which is normally done using
+   <command>make</command>.  You will need to locate the appropriate
+   Makefile on your system; the path shown below is only an example.
+   Once built, you can install this policy package using the
+   <command>semodule</> command, which links supplied policy packages and
+   loads them into the kernel space.  If this packages is correctly installed,
    <literal><command>semodule</> -l</> should list sepgsql-regtest as an
    available policy package.
   </para>
 
 <screen>
+$ make -C ./contrib/sepgsql -f /usr/share/selinux/devel/Makefile
 $ su
-# semodule -u /usr/local/pgsql/share/contrib/sepgsql-regtest.pp
+# semodule -u ./contrib/sepgsql/sepgsql-regtest.pp
 # semodule -l
     :
 sepgsql-regtest 1.03