??????????????
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 173
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 174
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 175
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 176
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 177
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 178
ó
c‰`c @ sç d d d d d d d d d d d
g Z d d l Z d d l Z d d l Z d d
l m Z d d l m Z e j d k Z d „ Z
d „ Z d „ Z d „ Z
d „ Z d „ Z d „ Z d d „ Z d „ Z d d „ Z d „ Z d S( t command_of_pidt
pid_of_sendert
uid_of_sendert user_of_uidt context_of_sendert command_of_sendert user_of_sendert dbus_to_pythont dbus_signaturet% dbus_introspection_prepare_propertiest! dbus_introspection_add_propertiesiÿÿÿÿN( t minidom( t logt 3c C s[ yB t d | d ƒ ) } | j ƒ d j d d ƒ j ƒ } Wd QXWn t k
rV d SX| S( s Get command for pid from /proc s /proc/%d/cmdlinet ri t t N( t opent readlinest replacet stript Exceptiont None( t pidt ft cmd( ( s7 /usr/lib/python2.7/site-packages/firewall/dbus_utils.pyR % s ,
c C sV | j d d ƒ } t j | d ƒ } y t | j | ƒ ƒ } Wn t k
rQ d SX| S( sW Get pid from sender string using
org.freedesktop.DBus.GetConnectionUnixProcessID s org.freedesktop.DBuss /org/freedesktop/DBusN( t
get_objectt dbust Interfacet intt GetConnectionUnixProcessIDt
ValueErrorR ( t bust sendert dbus_objt
dbus_ifaceR ( ( s7 /usr/lib/python2.7/site-packages/firewall/dbus_utils.pyR . s
c C sV | j d d ƒ } t j | d ƒ } y t | j | ƒ ƒ } Wn t k
rQ d SX| S( sV Get user id from sender string using
org.freedesktop.DBus.GetConnectionUnixUser s org.freedesktop.DBuss /org/freedesktop/DBusN( R R R R t GetConnectionUnixUserR R ( R R! R" R# t uid( ( s7 /usr/lib/python2.7/site-packages/firewall/dbus_utils.pyR ; s
c C s0 y t j | ƒ } Wn t k
r' d SX| d S( s Get user for uid from pwd i N( t pwdt getpwuidR R ( R% t pws( ( s7 /usr/lib/python2.7/site-packages/firewall/dbus_utils.pyR H s
c C sh | j d d ƒ } t j | d ƒ } y | j | ƒ } Wn t k
rK d SXd j t t t | ƒ ƒ ƒ S( sl Get SELinux context from sender string using
org.freedesktop.DBus.GetConnectionSELinuxSecurityContext s org.freedesktop.DBuss /org/freedesktop/DBust N(
R R R t# GetConnectionSELinuxSecurityContextR R t joint mapt chrR ( R R! R" R# t context( ( s7 /usr/lib/python2.7/site-packages/firewall/dbus_utils.pyR Q s
c C s t t | | ƒ ƒ S( s Return command of D-Bus sender ( R R ( R R! ( ( s7 /usr/lib/python2.7/site-packages/firewall/dbus_utils.pyR _ s c C s t t | | ƒ ƒ S( N( R R ( R R! ( ( s7 /usr/lib/python2.7/site-packages/firewall/dbus_utils.pyR d s c C s‹ | d k r | } n}t | t j ƒ r6 t | ƒ } n\t | t j ƒ rl t r] | j d ƒ n t | ƒ } n&t r“ t | t j ƒ r“ t | ƒ } nÿt | t j
ƒ r´ t | ƒ } nÞt | t j ƒ s2t | t j ƒ s2t | t j
ƒ s2t | t j ƒ s2t | t j ƒ s2t | t j ƒ s2t | t j ƒ rAt | ƒ } nQt | t j ƒ rbt | ƒ } n0t | t j ƒ r–g | D] } t | ƒ ^ q{} nü t | t j ƒ rÐt g | D] } t | ƒ ^ q²ƒ } n t | t j ƒ rûd „ | j ƒ Dƒ } n— t | t ƒ sst | t ƒ sst | t ƒ sst | t ƒ sst | t ƒ sst | t ƒ sst | t ƒ sst | t ƒ r|| } n t d t | ƒ ƒ ‚ | d k r‡| t k rºt | t ƒ sb| t k rÖt | t ƒ sb| t k ròt | t ƒ sb| t k rt | t ƒ sb| t k r*t | t ƒ sb| t k rFt | t ƒ sb| t k r‡t | t ƒ r‡t d | t | ƒ | f ƒ ‚ q‡n | S( Ns utf-8c S s+ i | ]! \ } } t | ƒ t | ƒ “ q S( ( R ( t .0t kt v( ( s7 /usr/lib/python2.7/site-packages/firewall/dbus_utils.pys