problems after installing selinux
Hi
I recently installed selinux (the 2.4-14-lsm kernel) on my SuSE 7.2 system. After compiling and installing the kernel and all other utilities (exactly as described in the selinux/README file). I have the folowing problem:
- when entering the 'ls --context' command I get the message "Sorry, --context can be used only on a flask-enabled kernel".
- when entering the 'ps -e --context' command, all processes have SID = 3 and CONTEXT = -
Can anyone tell me how I can solve this problem?
Thank you
Johan Camp
KULeuven
--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 7 lines · --On Monday, 10 December, 2001 22:55 +0100 Johan Camp…
Hi
I recently installed selinux (the 2.4-14-lsm kernel) on my SuSE 7.2 system. After compiling and installing the kernel and all other utilities (exactly as described in the selinux/README file). I have the folowing problem:
Quoted 7 lines
- when entering the 'ls --context' command I get the message "Sorry, --context can be used only on a flask-enabled kernel".
- when entering the 'ps -e --context' command, all processes have SID = 3 and CONTEXT = -
Can anyone tell me how I can solve this problem?
this is what happens when a non-selinux kernel is booted. did you fix up /etc/lilo.conf and run lilo to make sure the new kernel is available at boot time?
-paul
--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 14 lines · Paul Krumviede
--On Monday, 10 December, 2001 22:55 +0100 Johan Camp
Quoted 10 lines · <[email protected]> wrote:
Hi
I recently installed selinux (the 2.4-14-lsm kernel) on my SuSE 7.2 system. After compiling and installing the kernel and all other utilities (exactly as described in the selinux/README file). I have the folowing problem:
- when entering the 'ls --context' command I get the message "Sorry, --context can be used only on a flask-enabled kernel".
Quoted 8 lines
Quoted 4 lines
- when entering the 'ps -e --context' command, all processes have SID = 3 and CONTEXT = -
Can anyone tell me how I can solve this problem?
this is what happens when a non-selinux kernel is booted. did you fix up
/etc/lilo.confand run lilo to make sure the new kernel is available at boot time?
Yes, I am sure of that. Another indicator is that the tty login used to show "suse linux 2.4-4" and now shows "2.4-14-lsm", so this should be correct (in a more scientific approach, I checked the lilo.conf file in which '/boot/vmlinuz' is indicated as kernel image. 'ls -l /boot/vmlinuz' shows this file was put there on dec 10 2002).
Any other suggestions are welcome
Thanx
Johan Camp
KULeuven
ps: oh yes, and I didn't forget to select the "NSA SELinux" option in the make menuconfig menu either.
--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
do you see messages in dmesg such as
AVC: allocated 14760 bytes during initialization. SELinux: module inserted
or, from messages,
Dec 10 16:49:15 zfc kernel: security: starting up (compiled Nov 27 2001) Dec 10 16:49:15 zfc kernel: security: loading policy configuration from /ss_policy Dec 10 16:49:15 zfc kernel: security: 3 users, 6 roles, 372 types Dec 10 16:49:15 zfc kernel: security: 29 classes, 70479 rules
if not, i'd check to see if the SELinux kernel configuration
flags are set correctly (for example, make sure that CONFIG_SECURITY_SELINUX=y is present in the
kernel configuration file) and that a policy configuration exists in /ss_policy.
-paul
Quoted 32 lines · --On Tuesday, 11 December, 2001 01:41 +0100 Johan Camp…
Quoted 14 lines · Paul Krumviede
--On Monday, 10 December, 2001 22:55 +0100 Johan Camp
Quoted 10 lines · <[email protected]> wrote:
Hi
I recently installed selinux (the 2.4-14-lsm kernel) on my SuSE 7.2 system. After compiling and installing the kernel and all other utilities (exactly as described in the selinux/README file). I have the folowing problem:
- when entering the 'ls --context' command I get the message "Sorry, --context can be used only on a flask-enabled kernel".
Quoted 8 lines
Quoted 4 lines
- when entering the 'ps -e --context' command, all processes have SID = 3 and CONTEXT = -
Can anyone tell me how I can solve this problem?
this is what happens when a non-selinux kernel is booted. did you fix up
/etc/lilo.confand run lilo to make sure the new kernel is available at boot time?Yes, I am sure of that. Another indicator is that the tty login used to show "suse linux 2.4-4" and now shows "2.4-14-lsm", so this should be correct (in a more scientific approach, I checked the lilo.conf file in which '
/boot/vmlinuz' is indicated as kernel image. 'ls -l/boot/vmlinuz' shows this file was put there on dec 10 2002).Any other suggestions are welcome
Quoted 9 lines
Thanx
Johan Camp
KULeuvenps: oh yes, and I didn't forget to select the "NSA SELinux" option in the make menuconfig menu either.
--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 7 lines · Johan Camp
- when entering the 'ls --context' command I get the message "Sorry, --context can be used only on a flask-enabled kernel".
- when entering the 'ps -e --context' command, all processes have SID = 3 and CONTEXT = -
Can anyone tell me how I can solve this problem?
This indicates that the SELinux module isn't registered. Check your kernel configuration and make sure that you enabled SELinux as built-in. Also check your /var/log/messages file or 'dmesg' output to see if there were any errors during initialization. As a side note, there is a newer release now, but the old release should work for you as well.
--
Stephen D. Smalley, NAI Labs
[email protected]
--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
RH72 psmisc patch
Here is a patch for psmisc-20.1
do rpm -bp psmisc.spec
then apply this patch.
run autoconf (make sure you upgrade to 2.52)
then run rpm -bc --shortcircuit psmisc.spec then rpm -bi --short-circuit psmisc.spec
I upgraded to the new selinux-20011210.....
I found a problem with the fileutils patch i submitted yesterday. 'df' security segfaults.
Shaun Savage
acconfig.h +2 -0
@@ -0,0 +1,2 @@ +/* SELinux */ +#undef FLASK_LINUX
configure.in +37 -3
@@ -1,8 +1,25 @@ dnl Process this file with autoconf to produce a configure script. -AC_INIT(src/comm.h) +AC_INIT +AC_CONFIG_SRCDIR([src/comm.h]) AM_CONFIG_HEADER(config.h) AM_INIT_AUTOMAKE(psmisc,20.1) +dnl Set of available languages. +ALL_LINGUAS="de fr es ko nl no pl pt sl sv" + + +dnl Make Flask security-enhanced versions of fileutils +dnl Should add existence chackes for libsecure library, etc +dnl CFLAGS="$CFLAGS -DFLASK_LINUX -I/usr/flask/include -I/usr/src/linux/include" +dnl LIBS="$LIBS -L/usr/flask/lib -lsecure" + +AC_ARG_WITH(selinux, +[ --with-selinux include support for SELinux], +[ AC_DEFINE(FLASK_LINUX) + CFLAGS="$CFLAGS -I/usr/local/selinux/include -Wall" + DEFS="-DFLASK_LINUX" + LIBS="$LIBS -L/usr/local/selinux/lib -lsecure"]) + dnl Checks for programs. AC_PROG_CC AC_PROG_CPP
@@ -22,10 +39,27 @@ AC_C_CONST AC_TYPE_PID_T AC_TYPE_SIZE_T -AC_STRUCT_ST_RDEV +AC_DIAGNOSE([obsolete],[AC_DIAGNOSE([obsolete],[AC_STRUCT_ST_RDEV: + your code should no longer depend upon `HAVE_ST_RDEV', but + `HAVE_STRUCT_STAT_ST_RDEV'. Remove this warning and + the `AC_DEFINE' when you adjust the code.]) +AC_CHECK_MEMBERS([struct stat.st_rdev],[AC_DEFINE(HAVE_ST_RDEV, 1, + [Define if your `struct stat' has `st_rdev'. + Deprecated, use `HAVE_STRUCT_STAT_ST_RDEV' + instead.])]) +: + your code should no longer depend upon `HAVE_ST_RDEV', but + `HAVE_STRUCT_STAT_ST_RDEV'. Remove this warning and + the `AC_DEFINE' when you adjust the code.]) +AC_CHECK_MEMBERS([struct stat.st_rdev],[AC_DEFINE(HAVE_ST_RDEV, 1, + [Define if your `struct stat' has `st_rdev'. + Deprecated, use `HAVE_STRUCT_STAT_ST_RDEV' + instead.])]) + AC_TYPE_UID_T dnl Checks for library functions. AC_CHECK_FUNCS(strdup strerror strtoul) -AC_OUTPUT(Makefile doc/Makefile src/Makefile) +AC_CONFIG_FILES([Makefile doc/Makefile src/Makefile]) +AC_OUTPUT
doc/killall.1 +8 -0
@@ -11,6 +11,8 @@ .RB [ \-v , \-\-verbose ] .RB [ \-w , \-\-wait ] .RB [ \-V, \-\-version ] +.RB [ \-S , \-\-sid ] +.RB [ \-c , \-\-context ] .RB [ \-s , \-\-signal .IR signal ] .RB [ \-\- ]
@@ -66,6 +68,12 @@ any of the killed processes still exist and only returns if none are left. Note that \fBkillall\fP may wait forever if the signal was ignored, had no effect, or if the process stays in zombie state. +.IP \fB\-S\fP +(Flask only) Specify SID: kill only processes with given SID. Mutually exclusive +with \fB-c\fP argument. Must precede other arguments on command line. +.IP \fB\-c\fP +(Flask only) Specify security context: kill only processes with given security context. +Mutually exclusive with \fB-s\fP. Must precede other arguments on the command line. .SH FILES .nf /proc location of the proc file system
doc/pstree.1 +4 -0
@@ -74,6 +74,10 @@ with \fBecho -e '\\033%@'\fP .IP \fB\-V\fP Display version information. +.IP \fB\-s\fP +(Flask) Show Security ID (SID) for each process. +.IP \fB\-x\fP +(Flask) Show security context for each process. .SH FILES .nf /proc location of the proc file system
src/Makefile.am +0 -1
@@ -1,5 +1,4 @@ -CFLAGS = -Wall bin_PROGRAMS = fuser killall pstree
src/killall.c +108 -7
207 lines not on this page · raw message
src/pstree.c +134 -21
275 lines not on this page · raw message
Re: RH72 psmisc patch
Quoted 3 lines · Shaun Savage
I upgraded to the new selinux-20011210.....
I found a problem with the fileutils patch i submitted yesterday. 'df' security segfaults.
Yes, the df modifications didn't transfer well into fileutils-4.1, and we haven't looked into the problem yet. Consequently, the df modifications aren't in the modified fileutils-4.1 package in the new SELinux release. We still need to compare your fileutils-4.1 patch with our own at some point to see if there are any other important differences.
--
Stephen D. Smalley, NAI Labs
[email protected]
--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.