portage._selinux module¶
- portage._selinux.copyfile(src, dest)¶
- portage._selinux.getcontext()¶
- portage._selinux.is_selinux_enabled()¶
- portage._selinux.mkdir(target, refdir)¶
- portage._selinux.rename(src, dest)¶
- portage._selinux.setexec(ctx='\n')¶
- portage._selinux.setfscreate(ctx='\n')¶
- portage._selinux.settype(newtype)¶
- class portage._selinux.spawn_wrapper(spawn_func, selinux_type)¶
Bases:
object
Create a wrapper function for the given spawn function. When the wrapper is called, it will adjust the arguments such that setexec() to be called after the fork (thereby avoiding any interference with concurrent threads in the calling process).
- _con¶
- _spawn_func¶
- portage._selinux.symlink(target, link, reflnk)¶