Group :: Sistema/Bibliotecas
RPM: libselinux
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: libselinux-3.2-alt.patch
Download
Download
man/man8/selinuxconlist.8 | 18 ++++++++++++++++++
man/man8/selinuxdefcon.8 | 24 ++++++++++++++++++++++++
src/Makefile | 2 +-
src/libselinux.pc.in | 2 +-
4 files changed, 44 insertions(+), 2 deletions(-)
diff --git a/man/man8/selinuxconlist.8 b/man/man8/selinuxconlist.8
new file mode 100644
index 00000000..c698daae
--- /dev/null
+++ b/man/man8/selinuxconlist.8
@@ -0,0 +1,18 @@
+.TH "selinuxconlist" "1" "7 May 2008" "dwalsh@redhat.com" "SELinux Command Line documentation"
+.SH "NAME"
+selinuxconlist \- list all SELinux context reachable for user
+.SH "SYNOPSIS"
+.B selinuxconlist [-l level] user [context]
+
+.SH "DESCRIPTION"
+.B selinuxconlist
+reports the list of context reachable for user from the current context or specified context
+
+.B \-l level
+mcs/mls level
+
+.SH AUTHOR
+This manual page was written by Dan Walsh <dwalsh@redhat.com>.
+
+.SH "SEE ALSO"
+secon(8), selinuxdefcon(8)
diff --git a/man/man8/selinuxdefcon.8 b/man/man8/selinuxdefcon.8
new file mode 100644
index 00000000..3cbeff25
--- /dev/null
+++ b/man/man8/selinuxdefcon.8
@@ -0,0 +1,24 @@
+.TH "selinuxdefcon" "1" "7 May 2008" "dwalsh@redhat.com" "SELinux Command Line documentation"
+.SH "NAME"
+selinuxdefcon \- report default SELinux context for user
+
+.SH "SYNOPSIS"
+.B selinuxdefcon [-l level] user fromcon
+
+.SH "DESCRIPTION"
+.B selinuxdefcon
+reports the default context for the specified user from the specified context
+
+.B \-l level
+mcs/mls level
+
+.SH EXAMPLE
+# selinuxdefcon jsmith system_u:system_r:sshd_t:s0
+.br
+unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
+
+.SH AUTHOR
+This manual page was written by Dan Walsh <dwalsh@redhat.com>.
+
+.SH "SEE ALSO"
+secon(8), selinuxconlist(8)
diff --git a/src/Makefile b/src/Makefile
index 52c40f01..a620d784 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -147,7 +147,7 @@ $(SWIGRUBYLOBJ): $(SWIGRUBYCOUT)
$(CC) $(CFLAGS) $(SWIG_CFLAGS) $(RUBYINC) -fPIC -DSHARED -c -o $@ $<
$(SWIGRUBYSO): $(SWIGRUBYLOBJ)
- $(CC) $(CFLAGS) $(LDFLAGS) -L. -shared -o $@ $^ -lselinux $(RUBYLIBS)
+ $(CC) $(CFLAGS) $(LDFLAGS) -L. -shared -o $@ $^ -lselinux $(RUBYLIBS) $(PCRE_LDLIBS)
$(LIBA): $(OBJS)
$(AR) rcs $@ $^
diff --git a/src/libselinux.pc.in b/src/libselinux.pc.in
index 7c66b1fa..9238fc98 100644
--- a/src/libselinux.pc.in
+++ b/src/libselinux.pc.in
@@ -7,6 +7,6 @@ Name: libselinux
Description: SELinux utility library
Version: @VERSION@
URL: http://userspace.selinuxproject.org/
-Requires.private: libsepol @PCRE_MODULE@
+Libs.private: -lsepol -lpcre
Libs: -L${libdir} -lselinux
Cflags: -I${includedir}