Skip to content

busybox -- SELinux option support for coreutils

Yuichi Nakamura selinux 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6busybox -- SELinux option support for coreutilsusage.h+21 -91 reply
2/6busybox -- SELinux option support for coreutilscopy_file.c cp.c install.c +2 more+113 -71 reply
3/6busybox -- SELinux option support for coreutilslibcoreutils/getopt_mk_fifo_nod.c mkdir.c+38 -41 reply
4/6busybox -- SELinux option support for coreutilsstat.c+155 -160 replies
5/6busybox -- SELinux option support for coreutilsls.c+5 -10 replies
6/6busybox -- SELinux option support for coreutilsid.c+31 -101 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/6] busybox -- SELinux option support for coreutils

Hi.

The following patches provide SELinux options(like -Z) to coreutils We imported SELinux options from coreutils 5.97(included in Fedora Core6). You have to enable CONFIG_SELINUX to use following feature. Any of them are fundamental one to use SELinux.
We are welcoming any comment, and hope to merge it into busybox.

[1/6] busybox-coreutils-common-01.patch
- usage.h for SELinux options

[2/6] busybox-coreutils-02-copy.patch
- cp: -Z,-c option support.
-c option: security context is preserved during file copy. -Z option: security context can be set 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.

[3/6] busybox-coreutils-03-mk.patch
- -Z option support for mkdir, mkfifo, mknod. By -Z, security context for created file can be set.

[4/6] busybox-coreutils-04-stat.patch
- -Z option support for stat. Security context of file is shown by -Z option.

[5/6] busybox-coreutils-05-ls.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/6] busybox-coreutils-06-id.patch
- -Z option support for id. Security context of process is shown by -Z option.

This project is originated from some of JPSEUG(Japan SELinux User Group). Now, we are preparing to submit more patches to support SELinux commands/options.

Regards,

Yuichi Nakamura
Hitachi Software
SELinux Policy Editor: http://seedit.sourceforge.net/

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.