Skip to contentSkip to conversation

New security policy

PATCH Shaun Savage 2 participants 6 messages Dec 10, 2001

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Hi Folks

I have worked with RSBAC for about 5 years now and now I trying to work with selinux. I would like a security policy with

sysdm_r this for root to admin the system but can't change security of "system" types
secoff_r The is for security officer to set up the security for the system
dataoff_r this is the only person that can "see" users personal files/directories
user_r this is for the normal user
system_r for normal system stuff

NEXT

I have compiled some of the selinux utils for RH7.2, I hope to do the rest this week. this is how I did it

I first did >rpm -bp XXXX.spec
the patched the XXXX directory using the patch
on some XXXX i needed to autoconf (caution: the autoconf that comes with RH7.2 is bad upgrade to 2.52 from GNU.org) I then go back to the SPEC directory and rpm -bc --short-circuit XXXX.spec
then rpm -bi --short-circuit XXXX.spec

then goto /var/tmp/XXXX and get the files.

More later
Shaun Savage

config.h.in +3 -0
diff -Nur fileutils-4.1/config.h.in fileutils-4.1-selinux/config.h.in
@@ -37,6 +37,9 @@
 /* Define to 1 if NLS is requested. */
 #undef ENABLE_NLS
 
+/* Define Flask */
+#undef FLASK_LINUX
+
 /* Define on systems for which file names may have a so-called `drive letter'
    prefix, define this to compute the length of that prefix, including the
    colon. */
configure.in +12 -0
diff -Nur fileutils-4.1/configure.in fileutils-4.1-selinux/configure.in
@@ -7,6 +7,18 @@
 
 ALL_LINGUAS="cs da de el es fr gl it ja ko nl no pl pt pt_BR ru sk sl sv zh"
 
+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 -DFLASK_LINUX -I/usr/local/selinux/include"
+   LIBS="$LIBS -L/usr/local/selinux/lib -lsecure"])
+AC_ARG_PROGRAM
+
 jm_PERL
 AC_PROG_CC
 AC_PROG_CPP
lib/makepath.c +30 -1
diff -Nur fileutils-4.1/lib/makepath.c fileutils-4.1-selinux/lib/makepath.c
@@ -94,6 +94,10 @@
 # define S_IXUSR 0100
 #endif
 
+#ifdef FLASK_LINUX
+#include <fs_secure.h>
+#endif FLASK_LINUX
+
 #ifndef S_IRWXU
 # define S_IRWXU (S_IRUSR | S_IWUSR | S_IXUSR)
 #endif
@@ -143,6 +147,25 @@
     }							\
   while (0)
 
+
+#ifdef FLASK_LINUX
+static security_id_t Sid = -1;
+
+int
+make_path_s (const char *argpath,
+	     int mode,
+	     int parent_mode,
+	     uid_t owner,
+	     gid_t group,
+	     int preserve_existing,
+	     const char *verbose_fmt_string,
+	     security_id_t sid)
+{
+  Sid = sid;
+  return( make_path(argpath, mode, parent_mode, owner, group, preserve_existing, verbose_fmt_string) );
+}
+#endif FLASK_LINUX
+
 /* Attempt to create directory DIR (aka DIRPATH) with the specified MODE.
    If CREATED_DIR_P is non-NULL, set *CREATED_DIR_P to non-zero if this
    function creates DIR and to zero otherwise.  Give a diagnostic and
@@ -157,6 +180,11 @@
   int fail = 0;
   int created_dir;
 
+#ifdef FLASK_LINUX
+        if ( (int) Sid > 0 )
+          created_dir = mkdir_secure (dir, mode, Sid);
+        else
+#endif FLASK_LINUX
   created_dir = (mkdir (dir, mode) == 0);
 
   if (!created_dir)
@@ -195,6 +223,7 @@
   return fail;
 }
 
+
 /* Ensure that the directory ARGPATH exists.
    Remove any trailing slashes from ARGPATH before calling this function.
 
@@ -212,7 +241,6 @@
 
    Return 0 if ARGPATH exists as a directory with the proper
    ownership and permissions when done, otherwise 1.  */
-
 int
 make_path (const char *argpath,
 	   int mode,
@@ -224,6 +252,7 @@
 {
   struct stat stats;
   int retval = 0;
+  int rv;
 
   if (stat (argpath, &stats))
     {
src/chcon.c +336 -0

336 lines not on this page · raw message

src/copy.c +116 -1

196 lines not on this page · raw message

src/copy.h +3 -1
diff -Nur fileutils-4.1/src/copy.h fileutils-4.1-selinux/src/copy.h
@@ -89,6 +89,9 @@
   int preserve_owner_and_group;
   int preserve_chmod_bits;
   int preserve_timestamps;
+#ifdef FLASK_LINUX
+  int preserve_security_context;
+#endif /*FLASK_LINUX*/
 
   /* If nonzero and any of the above (for preserve) file attributes cannot
      be applied to a destination file, treat it as a failure and return
@@ -157,5 +160,4 @@
 copy PARAMS ((const char *src_path, const char *dst_path,
 	      int nonexistent_dst, const struct cp_options *options,
 	      int *copy_into_self, int *rename_succeeded));
-
 #endif
src/cp.c +196 -10

338 lines not on this page · raw message

src/df.c +85 -1

155 lines not on this page · raw message

src/install.c +172 -6

255 lines not on this page · raw message

src/ls.c +316 -5

427 lines not on this page · raw message

src/mkdir.c +138 -4

205 lines not on this page · raw message

src/mkfifo.c +89 -1

138 lines not on this page · raw message

src/mknod.c +120 -3

191 lines not on this page · raw message

src/system.h +4 -0
diff -Nur fileutils-4.1/src/system.h fileutils-4.1-selinux/src/system.h
@@ -23,6 +23,10 @@
 # define mkfifo(path, mode) (mknod ((path), (mode) | S_IFIFO, 0))
 #endif
 
+#ifdef FLASK_LINUX
+# define mkfifo_secure(path, mode, sid) (mknod_secure ((path), (mode) | S_IFIFO, 0, (sid)))
+#endif /*FLASK_LINUX*/
+
 #if HAVE_SYS_PARAM_H
 # include <sys/param.h>
 #endif
INSTALL +4 -0
diff -Nur findutils-4.1.7/INSTALL findutils-4.1.7-lsm/INSTALL
@@ -31,6 +31,10 @@
      `sh ./configure' instead to prevent `csh' from trying to execute
      `configure' itself.
 
+     If you are configuring for the Flask secure Linux, you will need to
+     say where the root of the Flask source tree is located (`--with-flaskroot')
+     in addition to specifying `--with-flask'.
+
      Running `configure' takes awhile.  While running, it prints some
      messages telling which features it is checking for.
 
README +5 -0
diff -Nur findutils-4.1.7/README findutils-4.1.7-lsm/README
@@ -21,6 +21,11 @@
 unless you are running NIS or Hesiod, which make password and group
 calls very expensive.
 
+--with-flask, --with-flaskroot
+  Both are needed to compile for Flask secure Linux. You will need
+  the Flask libraries, headers and kernel to take advantage of the
+  options.
+
 To gain speed, GNU find avoids statting files whenever possible.
 It does this by:
 1. Checking the number of links to directories and not statting files
configure.in +11 -0
diff -Nur findutils-4.1.7/configure.in findutils-4.1.7-lsm/configure.in
@@ -17,6 +17,17 @@
    are running NIS or Hesiod, which make password and group calls
    very expensive.]))
 
+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 -DFLASK_LINUX -I/usr/local/selinux/include"
+   LIBS="$LIBS -L/usr/local/selinux/lib -lsecure"])
+  
 dnl Checks for programs.
 AC_PROG_CC
 AC_PROG_CPP
find/defs.h +15 -0
diff -Nur findutils-4.1.7/find/defs.h findutils-4.1.7-lsm/find/defs.h
@@ -118,6 +118,10 @@
 #define MODE_RWX	(S_IXUSR | S_IXGRP | S_IXOTH | MODE_RW)
 #define MODE_ALL	(S_ISUID | S_ISGID | S_ISVTX | MODE_RWX)
 
+#ifdef FLASK_LINUX
+#include <fs_secure.h>
+#endif /*FLASK_LINUX*/
+
 /* Not char because of type promotion; NeXT gcc can't handle it.  */
 typedef int boolean;
 #define		true    1
@@ -265,6 +269,10 @@
     struct perm_val perm;	/* perm */
     mode_t type;		/* type */
     FILE *stream;		/* fprint fprint0 */
+#ifdef FLASK_LINUX
+    security_id_t sid;          /* sid */
+    char *scontext;             /* scontext */
+#endif /*FLASK_LINUX*/
     struct format_val printf_vec; /* printf fprintf */
   } args;
 
@@ -310,6 +318,13 @@
 VOID *xmalloc PARAMS((size_t n));
 VOID *xrealloc PARAMS((VOID *p, size_t n));
 
+#ifdef FLASK_LINUX
+boolean pred_sid PARAMS((char *pathname, struct stat *stat_buf, struct predicate *pred_ptr));
+boolean pred_scontext PARAMS((char *pathname, struct stat *stat_buf, struct predicate *pred_ptr));
+extern int (*x_sec_stat) ();
+#endif /*FLASK_LINUX*/
+
+
 /* xstrdup.c */
 char *xstrdup PARAMS((char *string));
 
find/find.1 +8 -0
diff -Nur findutils-4.1.7/find/find.1 findutils-4.1.7-lsm/find/find.1
@@ -230,6 +230,10 @@
 file of type \fIc\fR; if \-follow has been given, true if \fIc\fR is
 `l'.  In other words, for symbolic links, \-xtype checks the type of
 the file that \-type does not check.
+.IP "\-sid \fIsid\fR"
+(Flask only) File has the Security Identifier \fIsid\fR.
+.IP "\-scontext \fIscontext\fR"
+(Flask only) File has the security context \fIscontext\fR.
 .SS ACTIONS
 .IP "\-exec \fIcommand\fR ;"
 Execute \fIcommand\fR; true if 0 status is returned.  All following
@@ -417,6 +421,10 @@
 File's user name, or numeric user ID if the user has no name.
 .IP %U
 File's numeric user ID.
+.IP %C
+(Flask only) file's security context.
+.IP %S
+(Flask only) file's numeric SID.
 .PP
 A `%' character followed by any other character is discarded (but the
 other character is printed).
find/find.c +6 -0
diff -Nur findutils-4.1.7/find/find.c findutils-4.1.7-lsm/find/find.c
@@ -135,6 +135,9 @@
 
 /* Pointer to the function used to stat files. */
 int (*xstat) ();
+#ifdef FLASK_LINUX
+int (*x_sec_stat) ();
+#endif /* FLASK_LINUX */
 
 /* Status value to return to system. */
 int exit_status;
@@ -181,6 +184,9 @@
   xstat = debug_stat;
 #else /* !DEBUG_STAT */
   xstat = lstat;
+#ifdef FLASK_LINUX
+  x_sec_stat = lstat_secure;
+#endif /* FLASK_LINUX */
 #endif /* !DEBUG_STAT */
 
   human_block_size (getenv ("FIND_BLOCK_SIZE"), 0, &output_block_size);
find/parser.c +136 -4

182 lines not on this page · raw message

find/pred.c +142 -0

172 lines not on this page · raw message

## Process this file with automake to produce Makefile.in -*-Makefile-*- AUTOMAKE_OPTIONS = ansi2knr

EXTRA_PROGRAMS = df

bin_PROGRAMS = chgrp chown chmod chcon cp dd dircolors du \
ginstall ln dir vdir ls mkdir \
mkfifo mknod mv rm rmdir shred sync touch @DF_PROG@

datadir = $(prefix)/@DATADIRNAME@
localedir = $(datadir)/locale

noinst_HEADERS = \
system.h sys2.h copy.h cp-hash.h ls.h dircolors.h remove.h \
chown-core.h
EXTRA_DIST = dcgen dircolors.hin

INCLUDES = -I.. -I$(srcdir) -I$(top_srcdir)/lib -I../intl DEFS = -DLOCALEDIR=\"$(localedir)\" -DSHAREDIR=\"$(datadir)\" @DEFS@ LDADD = @INTLLIBS@ ../lib/libfetish.a

dir_LDADD = $(LDADD) -ltermcap
ls_LDADD = $(LDADD) -ltermcap
shred_LDADD = $(LDADD) @LIB_CLOCK_GETTIME@
vdir_LDADD = $(LDADD) -ltermcap

$(bin_PROGRAMS) $(libexec_PROGRAMS): ../lib/libfetish.a

# Use `ginstall' in the definition of PROGRAMS and in dependencies to avoid

# confusion with the `install' target.  The install rule transforms `ginstall'
# to install before applying any user-specified name transformations.

transform = s/ginstall/install/; @program_transform_name@ ginstall_SOURCES = install.c copy.c cp-hash.c

cp_SOURCES = cp.c copy.c cp-hash.c
dir_SOURCES = ls.c ls-dir.c
vdir_SOURCES = ls.c ls-vdir.c
ls_SOURCES = ls.c ls-ls.c
chown_SOURCES = chown.c chown-core.c
chgrp_SOURCES = chgrp.c chown-core.c

mv_SOURCES = mv.c copy.c cp-hash.c remove.c
rm_SOURCES = rm.c remove.c

BUILT_SOURCES = dircolors.h
PERL = @PERL@
editpl = sed -e 's,@''PERL''@,$(PERL),g'

MAINTAINERCLEANFILES = dircolors.h

dircolors.h: dcgen dircolors.hin

	$(PERL) -w -- $(srcdir)/dcgen $(srcdir)/dircolors.hin > $@-t
	mv $@-t $@
Makefile +7 -1
diff -Nur stat-2.5/Makefile stat-2.5-lsm/Makefile
@@ -1,11 +1,17 @@
 # This is the Makefile for stat
 
-CFLAGS=$(RPM_OPT_FLAGS) -D_FILE_OFFSET_BITS=64
+CDEFS=-DFLASK_LINUX -D_FILE_OFFSET_BITS=64
+INCLUDE=-I/usr/local/selinux/include
+CFLAGS=$(RPM_OPT_FLAGS) $(CDEFS) $(INCLUDE)
 CC=gcc
 DESTDIR=$(RPM_BUILD_ROOT)
+SECLIB=-L/usr/local/selinux/lib -lsecure
 
 all: stat
 
+stat: stat.o
+	${CC} -o $@ $< ${CFLAGS} ${SECLIB}
+
 install:
 	mkdir -p ${DESTDIR}/usr/bin
 	install -s -m 755 stat ${DESTDIR}/usr/bin
stat.1 +2 -0
diff -Nur stat-2.5/stat.1 stat-2.5-lsm/stat.1
@@ -68,6 +68,8 @@
 
 Group ID (and name if available) of owner
 
+SID Security ID
+
 Device type (if inode device)
 
 Total size, in bytes
stat.c +25 -1
diff -Nur stat-2.5/stat.c stat-2.5-lsm/stat.c
@@ -6,6 +6,9 @@
 #include <unistd.h>
 #include <time.h>
 #include <sys/vfs.h>
+#ifdef FLASK_LINUX
+#include <fs_secure.h>
+#endif /*FLASK_LINUX*/
 
 #include "fs.h"
 
@@ -133,12 +136,19 @@
 void do_stat(char *filename, int link, int terse)
 {
     struct stat statbuf;
-    int i = (link == 1) ? stat(filename, &statbuf) : lstat(filename, &statbuf);
+    int i;
     char access[10];
     struct passwd *pw_ent;
     struct group *gw_ent;
     char linkname[256];
+#ifdef FLASK_LINUX
+    security_id_t sid;
 
+    i = (link == 1) ? stat_secure(filename,&statbuf,&sid) :
+        lstat_secure(filename,&statbuf,&sid);
+#else /*!FLASK_LINUX*/
+    i = (link == 1) ? stat(filename, &statbuf) : lstat(filename, &statbuf);
+#endif /*FLASK_LINUX*/
     if (i == -1) {
 	perror(filename);
 	return;
@@ -203,6 +213,20 @@
 	(void) printf("Unknown\n");
     }
 
+#ifdef FLASK_LINUX
+      {
+        char sbuf[256];
+        int rv;
+        unsigned int sbuflen = sizeof(sbuf);
+
+        rv = security_sid_to_context(sid, (security_context_t *) &sbuf, &sbuflen);
+        if ( rv < 0 )
+          (void) sprintf(sbuf, "<error finding security context>", sid);
+
+        (void) printf("  SID: %d    S_context: %s\n", sid, sbuf);
+      }
+#endif /*FLASK_LINUX*/
+
     printf("Device: %xh/%dd\tInode: %-10d  Links: %-5d", (int)statbuf.st_dev, (int)statbuf.st_dev,
     	 (int)statbuf.st_ino, (int)statbuf.st_nlink);
 
acconfig.h +4 -0
diff -Nur tar-1.13.19/acconfig.h tar-1.13.19-selinux/acconfig.h
@@ -13,3 +13,7 @@
 
 /* Define to `int' if <sys/types.h> doesn't define.  */
 #undef ssize_t
+
+/* Define to 1 if we want to compile as security (flask) aware */
+#undef FLASK_LINUX
+
aclocal.m4 +8 -60

96 lines not on this page · raw message

configure.in +8 -0
diff -Nur tar-1.13.19/configure.in tar-1.13.19-selinux/configure.in

Lines of this file are not shown. View the raw message.

src/buffer.c +9 -1
diff -Nur tar-1.13.19/src/buffer.c tar-1.13.19-selinux/src/buffer.c

Lines of this file are not shown. View the raw message.

src/create.c +164 -1

165 lines not on this page · raw message

src/extract.c +56 -0

56 lines not on this page · raw message

src/list.c +89 -0

89 lines not on this page · raw message

src/tar.c +186 -0

186 lines not on this page · raw message

src/tar.h +3 -0
diff -Nur tar-1.13.19/src/tar.h tar-1.13.19-selinux/src/tar.h

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Part of the diff is not shown here. View the raw message.

#1 lore raw
Quoted 6 lines · Shaun Savage

sysdm_r this for root to admin the system but can't change security
of "system" types
secoff_r The is for security officer to set up the security for the
system
dataoff_r this is the only person that can "see" users personal
files/directories

You are likely to encounter difficulty in truly enforcing separation among these roles. Obviously, you can't let sysadm_r update the kernel or its modules if you want to separate secoff_r, but even this is not sufficient. For example, if you let sysadm_r update /bin/login or /etc/shadow, what prevents him from entering any role he wants? Or if you let sysadm_r update system libraries or programs executed by the other roles, what prevents him from inserting arbitrary code of his choosing to be executed by the other roles? I'm not sure about dataoff_r - what constitutes "personal" files/directories. Obviously, if dataoff_r can read a user's private keys, then he can obtain access to the user's account and thus may be able to enter the other roles.

Quoted 2 lines

I have compiled some of the selinux utils for RH7.2, I hope to do the rest this week.

As I've mentioned previously on the list
(http://marc.theaimsgroup.com/?l=selinux&m=100687390219347&w=2), we've been working on updating the utility patches to RH7.2 and have updated several of them already, so it seems that there is some duplication of work here.

--
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.

#4 lore raw
In reply to Shaun Savage
Quoted 10 lines · Shaun Savage

I have compiled some of the selinux utils for RH7.2, I hope to do the rest this week.
this is how I did it

I first did >rpm -bp XXXX.spec
the patched the XXXX directory using the patch
on some XXXX i needed to autoconf (caution: the autoconf that comes with RH7.2 is bad upgrade to 2.52 from GNU.org)
I then go back to the SPEC directory and rpm -bc --short-circuit XXXX.spec then rpm -bi --short-circuit XXXX.spec

In our work in upgrading the utilities, we've encountered a fair number of rejects from the existing patches that have required manual merging, and at least some of those manual merges were non-trivial. We also had to add stat64 variants of the stat_secure system calls, with transparent redirection, in order to support the new fileutils package. Are you actually dealing with any of these kinds of issues in your patches?

--
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.

#2 lore raw
In reply to Stephen Smalley
Quoted 10 lines · Stephen Smalley
Quoted 7 lines · Shaun Savage

sysdm_r this for root to admin the system but can't change security
of "system" types
secoff_r The is for security officer to set up the security for the
system
dataoff_r this is the only person that can "see" users personal
files/directories

Quoted 12 lines

You are likely to encounter difficulty in truly enforcing separation among these roles. Obviously, you can't let sysadm_r update the kernel or its modules if you want to separate secoff_r, but even this is not sufficient. For example, if you let sysadm_r update /bin/login or /etc/shadow, what prevents him from entering any role he wants? Or if you let sysadm_r update system libraries or programs executed by the other roles, what prevents him from inserting arbitrary code of his choosing to be executed by the other roles? I'm not sure about dataoff_r - what constitutes "personal" files/directories. Obviously, if dataoff_r can read a user's private keys, then he can obtain access to the user's account and thus may be able to enter the other roles.

The sysadm_r is see as the every day admin. checking logs, add/del users,accounts using system-tools.
But the secoff_r locks down system. if the secoff_r unlocks the system then sysadm_r can then a administrator the whole system. The reason I like this is that an unknow root exploit can't comprimise the whole system.

The dataoff_r is a trusted user that is allowed to move user data from one domain to another, reclassify data. This is a violation of the rules, but that is the role.

Quoted 11 lines
Quoted 4 lines

I have compiled some of the selinux utils for RH7.2, I hope to do the rest this week.

As I've mentioned previously on the list
(http://marc.theaimsgroup.com/?l=selinux&m=100687390219347&w=2), we've been working on updating the utility patches to RH7.2 and have updated several of them already, so it seems that there is some duplication of work here.

Where can I get the work that has been done already?

Shaun Savage

--
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.

#5 lore raw
In reply to Stephen Smalley
Quoted 14 lines · Stephen Smalley
Quoted 11 lines · Shaun Savage

I have compiled some of the selinux utils for RH7.2, I hope to do the rest this week.
this is how I did it

I first did >rpm -bp XXXX.spec
the patched the XXXX directory using the patch
on some XXXX i needed to autoconf (caution: the autoconf that comes with RH7.2 is bad upgrade to 2.52 from GNU.org)
I then go back to the SPEC directory and rpm -bc --short-circuit XXXX.spec then rpm -bi --short-circuit XXXX.spec

Quoted 7 lines

In our work in upgrading the utilities, we've encountered a fair number of rejects from the existing patches that have required manual merging, and at least some of those manual merges were non-trivial. We also had to add stat64 variants of the stat_secure system calls, with transparent redirection, in order to support the new fileutils package. Are you actually dealing with any of these kinds of issues in your patches?

I entered most of patches by hand, I thought most the manual patches easy. The issue of stat_secure calls with transparent redirection, I don't know. I have only working on selinux for about 3 days. I want to get the support programs ported first. If you want I can make RPM's.

Shaun Savage

--
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.

#3 lore raw
In reply to Shaun Savage
Quoted 5 lines · Shaun Savage

The sysadm_r is see as the every day admin. checking logs, add/del users,accounts using system-tools.
But the secoff_r locks down system. if the secoff_r unlocks the system then sysadm_r can then a administrator the whole system. The reason I like this is that an unknow root exploit can't comprimise the whole system.

I'm not sure what you mean. A root exploit isn't significant, because the SELinux nondiscretionary access controls aren't based on the Linux identity attributes. If someone exploits a flaw in a daemon that runs as root, they are still limited to the permissions granted to the domain assigned to that daemon. If an unprivileged user (e.g. user_t) exploits a flaw in a setuid program to become root, they are still limited to the permissions granted to the user_t domain. You don't need a separate secoff_r role to protect against such exploits.

But feel free to add such a role if you like. Just be sure that you are really enforcing the kind of separation that you want.

Quoted 1 line

Where can I get the work that has been done already?

There should be a new release very soon. We'll look over your patches and try to incorporate them into future releases (but it is too late to put them into the next one) if they are correct. It looks like we only duplicated each others' work for the fileutils patch. We are currently up-to-date with respect to the fileutils, logrotate, openssh, procps, sh-utils, util-linux, and vixie-cron patches. We'll see how your updated fileutils patch differs from ours, and also look at your updated
patches for findutils, stat, and tar. That just leaves the psmisc patch.

--
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.