]> andersk Git - test.git/commitdiff
Added some documentation explaining how to configure ShellInABox on Fedora.
authorMarkus Gutschke <markus@shellinabox.com>
Mon, 23 Nov 2009 04:53:38 +0000 (04:53 +0000)
committerMarkus Gutschke <markus@shellinabox.com>
Mon, 23 Nov 2009 04:53:38 +0000 (04:53 +0000)
Makefile.am
Makefile.in
README.Fedora [new file with mode: 0644]
config.h
configure
configure.ac
demo/vt100.js
etc-pam.d-shellinabox-example [new file with mode: 0644]
shellinabox/shell_in_a_box.js
shellinabox/vt100.js

index b4b86d60d930ce32f34fe9a8701912ff0cec0060..290575b79b56b54c3263575ee31a705f4c7bb20d 100644 (file)
@@ -20,7 +20,9 @@ dist_doc_DATA        = AUTHORS                                                \
                        shellinabox/black-on-white.css                         \
                        shellinabox/monochrome.css                             \
                        shellinabox/color.css
-EXTRA_DIST           = demo/beep.wav                                          \
+EXTRA_DIST           = INSTALL.Debian                                         \
+                       README.Fedora                                          \
+                       demo/beep.wav                                          \
                        demo/favicon.ico                                       \
                        demo/demo.html                                         \
                        demo/demo.js                                           \
@@ -34,6 +36,7 @@ EXTRA_DIST           = demo/beep.wav                                          \
                        demo/usercss-1.css                                     \
                        demo/usercss-2.css                                     \
                        demo/usercss-3.css                                     \
+                       etc-pam.d-shellinabox-example                          \
                        shellinabox/shellinaboxd.man.in                        \
                        shellinabox/shell_in_a_box.js                          \
                        shellinabox/vt100.js                                   \
index f20b28ed5b5bf9d62516f955ef97a365e47ad8db..f33706ae34cde9aab5f5732c49a190ff4fbdb419 100644 (file)
@@ -279,7 +279,9 @@ dist_doc_DATA = AUTHORS                                                \
                        shellinabox/monochrome.css                             \
                        shellinabox/color.css
 
-EXTRA_DIST = demo/beep.wav                                          \
+EXTRA_DIST = INSTALL.Debian                                         \
+                       README.Fedora                                          \
+                       demo/beep.wav                                          \
                        demo/favicon.ico                                       \
                        demo/demo.html                                         \
                        demo/demo.js                                           \
@@ -293,6 +295,7 @@ EXTRA_DIST = demo/beep.wav                                          \
                        demo/usercss-1.css                                     \
                        demo/usercss-2.css                                     \
                        demo/usercss-3.css                                     \
+                       etc-pam.d-shellinabox-example                          \
                        shellinabox/shellinaboxd.man.in                        \
                        shellinabox/shell_in_a_box.js                          \
                        shellinabox/vt100.js                                   \
diff --git a/README.Fedora b/README.Fedora
new file mode 100644 (file)
index 0000000..decc5be
--- /dev/null
@@ -0,0 +1,27 @@
+When running in SELinux mode on Fedora, some operations don't work out of the
+box.
+
+Until somebody contributes a complete SELinux policy for ShellInABox, here are
+some tips on getting things working:
+
+- avoid using the default "LOGIN" service. Calling /bin/login does not do
+  the right thing.
+  The "LOGIN" service is the default service when running "shellinaboxd" as
+  "root". This means, you will most likely see all logins failing, whenever
+  you start the daemon as "root".
+  To fix this problem, consider explicitly specifying a service definition.
+  One of these two should work:
+    --service /:AUTH:HOME:/bin/bash
+  or
+    --service /:SSH
+  The latter requires that you have a locally running "sshd" daemon.
+
+- On Fedora, PAM authentication does not work for shellinabox until you
+  explicitly configure it. This means, using "AUTH" in the service definition
+  will not allow you to log in.
+  You can fix this by defining a proper "/etc/pam.d/shellinabox" file. Take a
+  look at "etc-pam.d-shellinabox-example" for a working example.
+  Make sure you assign the correct SELinux labels to this file when copying
+  it into "/etc/pam.d":
+    cp -Z system_u:object_r:etc_t:s0 etc-pam.d-shellinabox-example /etc/pam.d/
+
index 1fe28311eaa6f44aa38f4124ce53c8fe8638d38e..a7284bd8e6e40ee592e5f3ca817e30ca76db3e44 100644 (file)
--- a/config.h
+++ b/config.h
 #define STDC_HEADERS 1
 
 /* Most recent revision number in the version control system */
-#define VCS_REVISION "187"
+#define VCS_REVISION "188"
 
 /* Version number of package */
 #define VERSION "2.10"
index 3dfd081921601c8858492aac03543efb8cf5306c..0bd626e6cf9b66e4bcea887b3b4b261ff9cf195f 100755 (executable)
--- a/configure
+++ b/configure
@@ -2319,7 +2319,7 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
 
-VCS_REVISION=187
+VCS_REVISION=188
 
 
 cat >>confdefs.h <<_ACEOF
index 11226d666980efd147be86f0f62284d675fcaeec..b8486ef6d2db48146812cab2f35e329dceea558b 100644 (file)
@@ -2,7 +2,7 @@ AC_PREREQ(2.57)
 
 dnl This is the one location where the authoritative version number is stored
 AC_INIT(shellinabox, 2.10, markus@shellinabox.com)
-VCS_REVISION=187
+VCS_REVISION=188
 AC_SUBST(VCS_REVISION)
 AC_DEFINE_UNQUOTED(VCS_REVISION, "${VCS_REVISION}",
                    [Most recent revision number in the version control system])
index 23cb4edd8151f4385960c9203ac4ab228e8485ac..63797a28607751752fc807358f651f475a54b360 100644 (file)
@@ -1901,7 +1901,7 @@ VT100.prototype.toggleBell = function() {
 };
 
 VT100.prototype.about = function() {
-  alert("VT100 Terminal Emulator " + "2.10 (revision 187)" +
+  alert("VT100 Terminal Emulator " + "2.10 (revision 188)" +
         "\nCopyright 2008-2009 by Markus Gutschke\n" +
         "For more information check http://shellinabox.com");
 };
diff --git a/etc-pam.d-shellinabox-example b/etc-pam.d-shellinabox-example
new file mode 100644 (file)
index 0000000..bf775a3
--- /dev/null
@@ -0,0 +1,13 @@
+#%PAM-1.0
+auth      required     pam_sepermit.so
+auth       include      password-auth
+account    required     pam_nologin.so
+account    include      password-auth
+password   include      password-auth
+# pam_selinux.so close should be the first session rule
+session    required     pam_selinux.so close
+session    required     pam_loginuid.so
+# pam_selinux.so open should only be followed by sessions to be executed in the user context
+session    required     pam_selinux.so open env_params
+session    optional     pam_keyinit.so force revoke
+session    include      password-auth
index ca5904e78eda8f605b1ca14807a963873ef4db85..3310af440de40d8029e6d1ad078f7f940d6b3157 100644 (file)
@@ -358,7 +358,7 @@ ShellInABox.prototype.extendContextMenu = function(entries, actions) {
 };
 
 ShellInABox.prototype.about = function() {
-  alert("Shell In A Box version " + "2.10 (revision 187)" +
+  alert("Shell In A Box version " + "2.10 (revision 188)" +
         "\nCopyright 2008-2009 by Markus Gutschke\n" +
         "For more information check http://shellinabox.com" +
         (typeof serverSupportsSSL != 'undefined' && serverSupportsSSL ?
index 23cb4edd8151f4385960c9203ac4ab228e8485ac..63797a28607751752fc807358f651f475a54b360 100644 (file)
@@ -1901,7 +1901,7 @@ VT100.prototype.toggleBell = function() {
 };
 
 VT100.prototype.about = function() {
-  alert("VT100 Terminal Emulator " + "2.10 (revision 187)" +
+  alert("VT100 Terminal Emulator " + "2.10 (revision 188)" +
         "\nCopyright 2008-2009 by Markus Gutschke\n" +
         "For more information check http://shellinabox.com");
 };
This page took 0.0477610000000001 seconds and 5 git commands to generate.