Re: Selinux bash prompt decorations

2006-04-04 Thread Paul Jarc
Steve Grubb <[EMAIL PROTECTED]> wrote: > On Tuesday 04 April 2006 15:51, Chet Ramey wrote: >> How about commands whose output may be assigned to shell variables? > > Yes, they can be acquired in a number of ways. But what we are trying to do > is > set things up so that people using this in a cla

Re: Selinux bash prompt decorations

2006-04-04 Thread Steve Grubb
On Tuesday 04 April 2006 15:51, Chet Ramey wrote: > Are these values available to the user any other way -- say, through > environment or shell variables? No, they aren't available this way. > How about commands whose output may be assigned to shell variables? Yes, they can be acquired in a numb

Selinux bash prompt decorations

2006-04-04 Thread Ivan Gyurdiev
Hi, Redhat would like to add more decoration options to the bash prompt. We want to make the 4 SELinux fields available on the prompt: - current SELinux user - current SELinux role - current SELinux type - current MLS clearance This would require dependency on libselinux, libsetrans, and libsep

Re: Selinux bash prompt decorations

2006-04-04 Thread Ivan Gyurdiev
I had a pretty good idea about the motivation. However, it introduces dependencies on uncommon libraries, and does not have wide applicability, so I am trying to figure out if it can be done using existing mechanisms. Well, this would be an optional feature, only active in a SELinux environ

Re: Selinux bash prompt decorations

2006-04-04 Thread Chet Ramey
Steve Grubb wrote: > On Tuesday 04 April 2006 15:51, Chet Ramey wrote: >> Are these values available to the user any other way -- say, through >> environment or shell variables? > > No, they aren't available this way. > >> How about commands whose output may be assigned to shell variables? > > Y

Re: Selinux bash prompt decorations

2006-04-04 Thread Chet Ramey
> Redhat would like to add more decoration options to the bash prompt. > We want to make the 4 SELinux fields available on the prompt: > > - current SELinux user > - current SELinux role > - current SELinux type > - current MLS clearance > > This would require dependency on libselinux, libsetrans

Selinux bash prompt decorations

2006-04-04 Thread Ivan Gyurdiev
Hi, [ I'm sorry if this is a dupe, was previously not subscribed ]. Redhat would like to add more decoration options to the bash prompt. We want to make the 4 SELinux fields available on the prompt: - current SELinux user - current SELinux role - current SELinux type - current MLS clearance Th

Re: printf error?

2006-04-04 Thread Chet Ramey
Robinson, Mark wrote: > hi > > Compiled bash version 3.1.16 on Solaris 9 (AIX 5.1 also shows problem) > after configuring without parameters. Got this error: > > % ./bash --version > GNU bash, version 3.1.16(3)-release (sparc-sun-solaris2.9) > Copyright (C) 2005 Free Software Foundation, Inc. >