| Server IP : 182.53.201.61 / Your IP : 216.73.217.175 Web Server : Apache/2.2.15 (Fedora) System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 User : apache ( 48) PHP Version : 5.3.3 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/lib/python2.6/site-packages/sepolgen/ |
Upload File : |
Ñò
†·Jc @ s d d k Z d d k Z d d k Z d „ Z d „ Z d „ Z d „ Z d d d „ ƒ YZ d e f d „ ƒ YZ d
e f d „ ƒ YZ d e f d
„ ƒ YZ
d e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ
d d d „ ƒ YZ d d d „ ƒ YZ d d d „ ƒ YZ d S( iÿÿÿÿNc C sç d d k } d d k } t d d ƒ } t | i ƒ i ƒ d ƒ } | i | i | i ƒ | ƒ } | i d | ƒ i d ƒ } d | d | d | d
f } | i d | ƒ } | i d d
d d | | g d | i
ƒi ƒ d } | S( s
Obtain all of the avc and policy load messages from the audit
log. This function uses ausearch and requires that the current
process have sufficient rights to run ausearch.
Returns:
string contain all of the audit messages returned by ausearch.
iÿÿÿÿNs /proc/uptimet ri s %D/%Yt /s %s/%s/%si i s %Xs /sbin/ausearchs -ms5 AVC,USER_AVC,MAC_POLICY_LOAD,DAEMON_START,SELINUX_ERRs -tst stdout( t
subprocesst timet opent floatt readt splitt closet localtimet strftimet Popent PIPEt communicate( R R t fdt offt st datet bootdatet boottimet output( ( s2 /usr/lib/python2.6/site-packages/sepolgen/audit.pyt get_audit_boot_msgs s c C s; d d k } | i d d d g d | i ƒi ƒ d } | S( s
Obtain all of the avc and policy load messages from the audit
log. This function uses ausearch and requires that the current
process have sufficient rights to run ausearch.
Returns:
string contain all of the audit messages returned by ausearch.
iÿÿÿÿNs /sbin/ausearchs -ms5 AVC,USER_AVC,MAC_POLICY_LOAD,DAEMON_START,SELINUX_ERRR i ( R R R
R ( R R ( ( s2 /usr/lib/python2.6/site-packages/sepolgen/audit.pyt get_audit_msgs/ s c C s5 d d k } | i d g d | i ƒi ƒ d } | S( s• Obtain all of the avc and policy load messages from /bin/dmesg.
Returns:
string contain all of the audit messages returned by dmesg.
iÿÿÿÿNs
/bin/dmesgR i ( R R R
R ( R R ( ( s2 /usr/lib/python2.6/site-packages/sepolgen/audit.pyt get_dmesg_msgs<