This is the upstream repository for the Security Enhanced Linux (SELinux) userland libraries and tools. The software provided by this project complements the SELinux features integrated into the Linux kernel and is used by Linux distributions. All bugs and patches should be submitted to selinux@vger.kernel.org
Other
1.35k
stars
360
forks
source link
libselinux: wrong swig code for security_load_policy(3) #354
The swig typemap https://github.com/SELinuxProject/selinux/blob/0a8c177dacdc1df96ea11bb8aa75e16c4fa82285/libselinux/src/selinuxswig_python.i#L131-L133 added in https://github.com/SELinuxProject/selinux/commit/9639f5d9a837df2d026748543c96cecbc95cb1e2 leads to wrong wrapper code being generated:
selinux.py:
selinuxswig_python_wrap.c:
The typemap might have been indented for selinux_getenforcemode(3) only but does affect many more functions, e.g. selinux_check_access(3).