Re: python34 and selinux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> For the general info you can use help():
> 
> # python3
> > 
> > > 
> > > > 
> > > > import selinux
> > > > help(selinux)
> > > > import semanage
> > > > help(semanage)
> e.g.
> > 
> > > 
> > > > 
> > > > selinux.is_selinux_enabled()
> 1
> > 
> > > 
> > > > 
> > > > selinux.selinux_getpolicytype()
> [0, 'targeted']
> 

Perfect! This is exactly what I needed. Thanks for your advice,


-- 
William <william@xxxxxxxxxxxxxxxx>
--
selinux mailing list
selinux@xxxxxxxxxxxxxxxxxxxxxxx
http://lists.fedoraproject.org/admin/lists/selinux@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux