Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit24bc6b3

Browse files
committed
Remove rule to build sepgsql-regtest.pp.
Instead, document how to build it manually.Per discussion. KaiGai Kohei, with some wordsmithing by me.
1 parent9301698 commit24bc6b3

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

‎contrib/sepgsql/Makefile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
MODULE_big = sepgsql
44
OBJS = hooks.o selinux.o label.o dml.o\
55
schema.o relation.o proc.o
6-
DATA_built = sepgsql.sql sepgsql-regtest.pp
6+
DATA_built = sepgsql.sql
77
REGRESS = label dml misc
88
EXTRA_CLEAN = -r tmp *.pp sepgsql-regtest.if sepgsql-regtest.fc
99

@@ -20,6 +20,3 @@ endif
2020

2121
SHLIB_LINK +=$(filter -lselinux,$(LIBS))
2222
REGRESS_OPTS += --launcher$(top_builddir)/contrib/sepgsql/launcher
23-
24-
sepgsql-regtest.pp: sepgsql-regtest.te
25-
$(MAKE) -f$(DESTDIR)/usr/share/selinux/devel/Makefile$@

‎doc/src/sgml/sepgsql.sgml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,19 +124,24 @@ $ for DBNAME in template0 template1 postgres; do
124124
</para>
125125

126126
<para>
127-
First, install the policy package for the regression test.
127+
First,build andinstall the policy package for the regression test.
128128
The <filename>sepgsql-regtest.pp</> is a special purpose policy package
129129
which provides a set of rules to be allowed during the regression tests.
130-
You need to install this policy package using the <command>semodule</>
131-
command, which links supplied policy packages and loads them
132-
into the kernel space. If this packages is correctly installed,
130+
It should be built from the policy source fire
131+
(<filename>sepgsql-regtest.te</>), which is normally done using
132+
<command>make</command>. You will need to locate the appropriate
133+
Makefile on your system; the path shown below is only an example.
134+
Once built, you can install this policy package using the
135+
<command>semodule</> command, which links supplied policy packages and
136+
loads them into the kernel space. If this packages is correctly installed,
133137
<literal><command>semodule</> -l</> should list sepgsql-regtest as an
134138
available policy package.
135139
</para>
136140

137141
<screen>
142+
$ make -C ./contrib/sepgsql -f /usr/share/selinux/devel/Makefile
138143
$ su
139-
# semodule -u/usr/local/pgsql/share/contrib/sepgsql-regtest.pp
144+
# semodule -u./contrib/sepgsql/sepgsql-regtest.pp
140145
# semodule -l
141146
:
142147
sepgsql-regtest 1.03

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp