[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [PATCH 5/8] busybox -- SELinux option support for coreutils: ver3
From:       Yuichi Nakamura <ynakam () hitachisoft ! jp>
Date:       2007-02-26 1:54:09
Message-ID: 20070226105409.3a228ff6.ynakam () hitachisoft ! jp
[Download RAW message or body]

On Sat, 24 Feb 2007 16:01:11 +0100
Denis Vlasenko  wrote:
> On Friday 23 February 2007 09:48, Yuichi Nakamura wrote:
> > [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. 
> > Signed-off-by:  Yuichi Nakamura <ynakam@hitachisoft.jp>
> 
> +       USE_FEATURE_AUTOWIDTH("T:w:")
> +    USE_SELINUX("Z");
> 
> Use tab here instead of four spaces.
Fixed.

> --
> vda

Attached is revised patch(v4).

-- 
Yuichi Nakamura
Hitachi Software Engineering Co., Ltd.
SELinux Policy Editor: http://seedit.sourceforge.net/


["busybox-coreutils-ls-05.v4.patch" (application/octet-stream)]

Index: coreutils/ls.c
===================================================================
--- coreutils/ls.c	(revision 17961)
+++ coreutils/ls.c	(working copy)
@@ -716,7 +716,8 @@
 	USE_FEATURE_LS_RECURSIVE("R")
 	USE_FEATURE_HUMAN_READABLE("h")
 	USE_SELINUX("K")
-	USE_FEATURE_AUTOWIDTH("T:w:");
+	USE_FEATURE_AUTOWIDTH("T:w:")
+	USE_SELINUX("Z");
 
 enum {
 	LIST_MASK_TRIGGER	= 0,
@@ -769,6 +770,9 @@
 #if ENABLE_FEATURE_AUTOWIDTH
 	0, 0,                       /* T, w - ignored */
 #endif
+#if ENABLE_SELINUX	
+	LIST_MODEBITS|LIST_ID_NAME|LIST_CONTEXT, /*Z*/
+#endif
 	(1U<<31)
 };
 


_______________________________________________
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic