[PATCH 0/8] busybox -- SELinux option support for coreutils: ver3
Yuichi Nakamura
ynakam at hitachisoft.jp
Fri Feb 23 00:47:33 PST 2007
Hi.
The following patches provide SELinux options(like -Z) and applets to coreutils.
To maintain SELinux system, some commands must be extended to be able to handle
attribute in SELinux(such as security context).
Current patch is version 3.
We submitted previous patches some weeks ago, and some reviews were done.
chcon and runcon applets are added, since last patch.
I think that's all for coreutils.
We hope the patches are merged into busybox svn tree.
[1/8] busybox-coreutils-common-01.v3.patch
- common component for SELinux options, applets
like usage messages, the definition of applets and Kbuild/Config.in.
[2/8] busybox-coreutils-02-copy.v3.patch
- cp: -c option support.
-c option: security context is preserved during file copy.
- mv
In SELinux, it is recommended to preserve security context
when file is moved. By this patch, file context is preserved
during file move.
- install
When file is copied by install, security context of installed file
becomes different from value configured in file_contexts file.
By this patch, security context is set according to file_contexts file.
-Z option is also supported, security context can be set during file copy.
(annotation) The reason why the above options are required:
SELinux stores secutiry context of files/directories in its
xattr area, but most of commands don't pay attention for xattr.
Thus, it's not preserved during file copy includes a case when mv
falled back into read/write copy.
We have to preserve them to keep consistency of the secure system.
[3/8] busybox-coreutils-03-mk.v3.patch
- -Z option support for mkdir, mkfifo, mknod.
By -Z, security context for created file can be set.
This improves compatibility with up-streamed coreutils.
[4/8] busybox-coreutils-04-stat.v3.patch
- -Z option support for stat. Security context of file is shown by -Z option.
Security context of file is very important attribute for SELinux,
so it should be shown in stat.
[5/8] busybox-coreutils-05-ls.v3.patch
- -Z option support for ls. Security context of file is shown by -Z option.
In current busybox, -k/-K shows security context. However, they are replaced
by -Z option in recent coreutils, so -Z have to be added by this patch.
[6/8] busybox-coreutils-06-id.v3.patch
- -Z option support for id. Security context of process is shown by -Z option.
[7/8] busybox-coreutils-07-chcon.v3.patch
- chcon - change security context of file.
chcon provides one of the core facilities to associate a correct security
context within files. It enables to change whole or specific parts of the
security context within them.
[8/8] busybox-coreutils-08-runcon.v3.patch
- runcon - run application with specified security context.
runcon provides one of the core facilities to run application with explicitly
specified security context. It enables users to run their application under
the least privilege set explicitly.
This project is originated from some of JPSEUG(Japan SELinux User Group).
We have more patches to support SELinux commands/options.
For list of our work, please visit following site.
http://code.google.com/p/sebusybox/
Regards,
Yuichi Nakamura
More information about the busybox
mailing list