Portage 2.0.54 (selinux/2005.1/amd64, gcc-3.4.4, glibc-2.3.5-r2, 2.6.14-hardened-r5 x86_64) ================================================================= System uname: 2.6.14-hardened-r5 x86_64 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.6.14 dev-lang/python: 2.3.5-r2, 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O2 -fomit-frame-pointer -frerun-loop-opt -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=k8 -O2 -fomit-frame-pointer -frerun-loop-opt -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks loadpolicy sandbox selinux sfperms strict" GENTOO_MIRRORS="ftp://trumpetti.atm.tut.fi/gentoo/ http://gentoo.binarycompass.org ftp://ftp.uninett.no/pub/linux/Gentoo ftp://mirror.pudas.net/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="acpi aim aliaschain amd64 apache2 bash-completion berkdb bidi bzip2 chroot crypt cups curl doc emul-linux-x86 expat gdbm gif gmp gpm hardened icq idea imagemagick innodb ipv6 irc jabber java jpeg kerberos krb4 libclamav libwww loadpolicy mbox mhash mpeg msn ncurses nls nptl nptlonly oav pam pcre perl png ppds python quotas readline samba sasl selinux semanticfix sftplogging ssl tcpd tiff udev usb userlocales uudeview winbind xml xml2 yahoo zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY I am currently using sys-apps/coreutils-5.2.1-r7 but also sys-apps/coreutils-5.3.0-r2 seemed to have this missing. I should be able to get this sort of output: # id -Z root:staff_r:staff_t # newrole -r sysadm_r Authenticating root. Password: # id -Z root:sysadm_r:sysadm_t but instead of that I get only: # id -Z id: invalid option -- Z Try `id --help' for more information.
Coreutils 5.3 and earlier use `id -c` to return the SELinux context. -Z is used in 5.93, which is currently in ~arch.
Thanks for the info.
as noted, it exists in the 5.93. won't fix for the older versions.