#NEWLINE# @ property #NEWLINE# def selinux_mode( self ) : #NEWLINE# #INDENT# 'The device SELinux mode (enforcing/permissive).' #NEWLINE# if ( not self . _selinux_mode ) : #NEWLINE# #INDENT# cmd = [ 'getenforce' ] #NEWLINE# tmp = subprocess . check_output ( ( self . shell + cmd ) ) #NEWLINE# self . _selinux_mode = tmp . strip ( '\r\n' ) . lower ( ) #NEWLINE# #UNINDENT# return self . _selinux_mode