Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 134743
Collapse All | Expand All

(-)pym/portage_selinux.py (-10 / +1 lines)
Lines 5-17 Link Here
5
import selinux
5
import selinux
6
from selinux import is_selinux_enabled
6
from selinux import is_selinux_enabled
7
from selinux_aux import setexec, secure_symlink, secure_rename, \
7
from selinux_aux import setexec, secure_symlink, secure_rename, \
8
	secure_copy, secure_mkdir
8
	secure_copy, secure_mkdir, getcontext, get_sid, get_lsid
9
10
def getcontext():
11
	return selinux.getcon()[1]
12
13
def get_sid(filename):
14
	return selinux.getfilecon(filename)[1]
15
16
def get_lsid(filename):
17
	return selinux.lgetfilecon(filename)[1]

Return to bug 134743