[PATCH] sestatus, displays the current status of SELinux
KaiGai Kohei
kaigai at ak.jp.nec.com
Tue Nov 20 01:57:52 PST 2007
Hi,
The attached patch provides a new applet of "/usr/sbin/sestatus".
This command is one of the policycoreutils package,
and displays the current status of SELinux, as follows:
Please consider to apply it.
Thanks,
---------------------------------------------
[kaigai at saba busybox]$ ./busybox sestatus -vb
SELinux status: enabled
SELinuxfs mount: /selinux
Current mode: enforcing
Mode from config file: enforcing
Policy version: 21
Policy from config file: targeted
Policy booleans:
allow_console_login off
allow_cvs_read_shadow off
:
<snip>
:
xdm_sysadm_login off
xen_use_nfs off
Process contexts:
Current context: kaigai:system_r:unconfined_t:s0-s0:c0.c63
Init context: system_u:system_r:init_t:s0
/sbin/mingetty system_u:system_r:getty_t:s0
/sbin/agetty system_u:system_r:getty_t:s0
/usr/sbin/sshd system_u:system_r:sshd_t:s0-s0:c0.c1023
File contexts:
/dev/pts/3
Controlling term: kaigai:object_r:unconfined_devpts_t:s0
/etc/passwd system_u:object_r:etc_t:s0
/etc/shadow system_u:object_r:shadow_t:s0
/bin/bash system_u:object_r:shell_exec_t:s0
/bin/login system_u:object_r:login_exec_t:s0
/bin/sh system_u:object_r:shell_exec_t:s0 -> system_u:object_r:bin_t:s0
/sbin/agetty system_u:object_r:getty_exec_t:s0
/sbin/init system_u:object_r:init_exec_t:s0
/sbin/mingetty system_u:object_r:getty_exec_t:s0
/usr/sbin/sshd system_u:object_r:sshd_exec_t:s0
/lib/libc.so.6 system_u:object_r:lib_t:s0 -> system_u:object_r:lib_t:s0
/lib/ld-linux.so.2 system_u:object_r:ld_so_t:s0 -> system_u:object_r:lib_t:s0
--
OSS Platform Development Division, NEC
KaiGai Kohei <kaigai at ak.jp.nec.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sebusybox-sestatus.2.patch
Type: text/x-patch
Size: 7262 bytes
Desc: not available
Url : http://busybox.net/lists/busybox/attachments/20071120/e24c5d6b/attachment.bin
More information about the busybox
mailing list