* MLS Not enforcing secadm and auditadm
@ 2011-07-06 12:42 Kurt.Nelson
2011-07-06 13:08 ` Christopher J. PeBenito
2011-07-06 19:17 ` Daniel J Walsh
0 siblings, 2 replies; 3+ messages in thread
From: Kurt.Nelson @ 2011-07-06 12:42 UTC (permalink / raw)
To: selinux
[-- Attachment #1.1: Type: text/plain, Size: 2797 bytes --]
I'm setting up a RHEL6 box with MLS and am having issues with it enforcing
the use of roles. Secadm_r and auditadm_r are not required to run setenforce
or semanage and no role is able to write in /etc/audit/ at all. The IRC
channel seems to believe there is an issue with the ifndef('enable_mls'. not
triggering.
[root@hatch ~]$ id -Z
staff_u:sysadm_r:sysadm_t:s0
[knelson6@hatch ~]$ ls -Z /usr/sbin/semanage
-rwxr-xr-x. root root system_u:object_r:semanage_exec_t:s0
/usr/sbin/semanage
[knelson6@hatch ~]$ sestatus
SELinux status: enabled
SELinuxfs mount: /selinux
Current mode: enforcing
Mode from config file: enforcing
Policy version: 24
Policy from config file: mls
[root@hatch ~]# sesearch --allow -s sysadm_t -t semanage_exec_t -c file -p
execute
Found 3 semantic av rules:
allow sysadm_t application_exec_type : file { ioctl read getattr lock
execute execute_no_trans open } ;
allow sysadm_usertype application_exec_type : file { ioctl read getattr
lock execute execute_no_trans open } ;
allow sysadm_t semanage_exec_t : file { ioctl read write create getattr
setattr lock relabelfrom relabelto append unlink link rename execute open }
;
[root@hatch ~]# sesearch -SCT --allow -s sysadm_t -t semanage_exec_t
Found 11 semantic av rules:
allow sysadm_t application_exec_type : file { ioctl read getattr lock
execute execute_no_trans open } ;
allow sysadm_t file_type : filesystem getattr ;
allow sysadm_usertype application_exec_type : file { ioctl read getattr
lock execute execute_no_trans open } ;
allow sysadm_usertype file_type : filesystem getattr ;
allow sysadm_t semanage_exec_t : file { ioctl read write create getattr
setattr lock relabelfrom relabelto append unlink link rename execute open }
;
allow sysadm_t semanage_exec_t : dir { ioctl read write create getattr
setattr lock relabelfrom relabelto unlink link rename add_name remove_name
reparent search rmdir open } ;
allow sysadm_t semanage_exec_t : lnk_file { ioctl read write create
getattr setattr lock relabelfrom relabelto append unlink link rename } ;
allow sysadm_t semanage_exec_t : chr_file { getattr relabelfrom relabelto
} ;
allow sysadm_t semanage_exec_t : blk_file { getattr relabelfrom relabelto
} ;
allow sysadm_t semanage_exec_t : sock_file { ioctl read write create
getattr setattr lock relabelfrom relabelto append unlink link rename open }
;
allow sysadm_t semanage_exec_t : fifo_file { ioctl read write create
getattr setattr lock relabelfrom relabelto append unlink link rename open }
;
Found 1 semantic te rules:
type_transition sysadm_t semanage_exec_t : process semanage_t;
--
Kurt Nelson
GTRI-STL IT Coop
[-- Attachment #1.2: Type: text/html, Size: 6395 bytes --]
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 2917 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: MLS Not enforcing secadm and auditadm
2011-07-06 12:42 MLS Not enforcing secadm and auditadm Kurt.Nelson
@ 2011-07-06 13:08 ` Christopher J. PeBenito
2011-07-06 19:17 ` Daniel J Walsh
1 sibling, 0 replies; 3+ messages in thread
From: Christopher J. PeBenito @ 2011-07-06 13:08 UTC (permalink / raw)
To: Kurt.Nelson; +Cc: selinux
On 07/06/11 08:42, Kurt.Nelson@gtri.gatech.edu wrote:
> I’m setting up a RHEL6 box with MLS and am having issues with it
> enforcing the use of roles. Secadm_r and auditadm_r are not required to
> run setenforce or semanage and no role is able to write in /etc/audit/
> at all. The IRC channel seems to believe there is an issue with the
> ifndef(‘enable_mls’… not triggering.
[....]
> [root@hatch ~]# sesearch --allow -s sysadm_t -t semanage_exec_t -c file
> -p execute
> allow sysadm_t application_exec_type : file { ioctl read getattr lock
> execute execute_no_trans open } ;
> type_transition sysadm_t semanage_exec_t : process semanage_t;
I did some looking at Refpolicy, and it doesn't appear to have this problem.
--
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: MLS Not enforcing secadm and auditadm
2011-07-06 12:42 MLS Not enforcing secadm and auditadm Kurt.Nelson
2011-07-06 13:08 ` Christopher J. PeBenito
@ 2011-07-06 19:17 ` Daniel J Walsh
1 sibling, 0 replies; 3+ messages in thread
From: Daniel J Walsh @ 2011-07-06 19:17 UTC (permalink / raw)
To: Kurt.Nelson; +Cc: selinux
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 07/06/2011 08:42 AM, Kurt.Nelson@gtri.gatech.edu wrote:
> I?m setting up a RHEL6 box with MLS and am having issues with it
> enforcing the use of roles. Secadm_r and auditadm_r are not required to
> run setenforce or semanage and no role is able to write in /etc/audit/
> at all. The IRC channel seems to believe there is an issue with the
> ifndef(?enable_mls?? not triggering.
>
>
>
> [root@hatch ~]$ id -Z
>
> staff_u:sysadm_r:sysadm_t:s0
>
>
>
> [knelson6@hatch ~]$ ls -Z /usr/sbin/semanage
>
> -rwxr-xr-x. root root system_u:object_r:semanage_exec_t:s0
> /usr/sbin/semanage
>
>
>
> [knelson6@hatch ~]$ sestatus
>
> SELinux status: enabled
>
> SELinuxfs mount: /selinux
>
> Current mode: enforcing
>
> Mode from config file: enforcing
>
> Policy version: 24
>
> Policy from config file: mls
>
>
>
> [root@hatch ~]# sesearch --allow -s sysadm_t -t semanage_exec_t -c file
> -p execute
>
> Found 3 semantic av rules:
>
> allow sysadm_t application_exec_type : file { ioctl read getattr lock
> execute execute_no_trans open } ;
>
> allow sysadm_usertype application_exec_type : file { ioctl read
> getattr lock execute execute_no_trans open } ;
>
> allow sysadm_t semanage_exec_t : file { ioctl read write create
> getattr setattr lock relabelfrom relabelto append unlink link rename
> execute open } ;
>
>
>
> [root@hatch ~]# sesearch -SCT --allow -s sysadm_t -t semanage_exec_t
>
> Found 11 semantic av rules:
>
> allow sysadm_t application_exec_type : file { ioctl read getattr lock
> execute execute_no_trans open } ;
>
> allow sysadm_t file_type : filesystem getattr ;
>
> allow sysadm_usertype application_exec_type : file { ioctl read
> getattr lock execute execute_no_trans open } ;
>
> allow sysadm_usertype file_type : filesystem getattr ;
>
> allow sysadm_t semanage_exec_t : file { ioctl read write create
> getattr setattr lock relabelfrom relabelto append unlink link rename
> execute open } ;
>
> allow sysadm_t semanage_exec_t : dir { ioctl read write create
> getattr setattr lock relabelfrom relabelto unlink link rename add_name
> remove_name reparent search rmdir open } ;
>
> allow sysadm_t semanage_exec_t : lnk_file { ioctl read write create
> getattr setattr lock relabelfrom relabelto append unlink link rename } ;
>
> allow sysadm_t semanage_exec_t : chr_file { getattr relabelfrom
> relabelto } ;
>
> allow sysadm_t semanage_exec_t : blk_file { getattr relabelfrom
> relabelto } ;
>
> allow sysadm_t semanage_exec_t : sock_file { ioctl read write create
> getattr setattr lock relabelfrom relabelto append unlink link rename
> open } ;
>
> allow sysadm_t semanage_exec_t : fifo_file { ioctl read write create
> getattr setattr lock relabelfrom relabelto append unlink link rename
> open } ;
>
>
>
> Found 1 semantic te rules:
>
> type_transition sysadm_t semanage_exec_t : process semanage_t;
>
> --
>
> Kurt Nelson
>
> GTRI-STL IT Coop
>
>
>
Did you destribute your own policy or are you using the RHEL6 MLS Policy?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
iEYEARECAAYFAk4UtKwACgkQrlYvE4MpobMnhgCdEHw0Mc6ci02ZqdHs9cFTnq6w
/ukAnAuvjE2WsfkVCW4O1aqiNt/kUerV
=h8Dn
-----END PGP SIGNATURE-----
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-07-06 19:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-06 12:42 MLS Not enforcing secadm and auditadm Kurt.Nelson
2011-07-06 13:08 ` Christopher J. PeBenito
2011-07-06 19:17 ` Daniel J Walsh
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.