Open ayushman4 opened 2 years ago
What version of sepolgen (or in general SELinux userspace) are you using?
Is seems https://github.com/SELinuxProject/selinux/commit/302443cbbb506ac9010a6f798115e0ef513a1550 should have fixed your issue, which is included in version 2.5 (23 Feb 2016).
@cgzone selinux-python 3.4 too
There seems to be multiple issues:
-type1
) as interface arguments
While do "make build-interface-db" I get the following parsing errors
The parsing errors are related to sepolgen-ifgen. Can someone let me know what is going wrong. I am using the policy files from here - https://github.com/SELinuxProject/refpolicy
##############/usr/share/selinux/refpolicy/include/kernel/selinux.if: Syntax error on line 43 - [type=MINUS] error parsing file /usr/share/selinux/refpolicy/include/kernel/selinux.if: could not parse text: "/usr/share/selinux/refpolicy/include/kernel/selinux.if: Syntax error on line 43 - [type=MINUS]" ############################/usr/share/selinux/refpolicy/include/services/ssh.if: Syntax error on line 183 $1_port_forwarding [type=IDENTIFIER] /usr/share/selinux/refpolicy/include/services/ssh.if: Syntax error on line 294 ' [type=SQUOTE] error parsing file /usr/share/selinux/refpolicy/include/services/ssh.if: could not parse text: "/usr/share/selinux/refpolicy/include/services/ssh.if: Syntax error on line 294 ' [type=SQUOTE]"
/usr/share/selinux/refpolicy/include/system/init.if: Syntax error on line 2164 true [type=TRUE]
/usr/share/selinux/refpolicy/include/system/init.if: Syntax error on line 2175 ' [type=SQUOTE] /usr/share/selinux/refpolicy/include/system/init.if: Syntax error on line 2179 ' [type=SQUOTE] /usr/share/selinux/refpolicy/include/system/init.if: Syntax error on line 2190 ' [type=SQUOTE] /usr/share/selinux/refpolicy/include/system/init.if: Syntax error on line 2194 ' [type=SQUOTE] error parsing file /usr/share/selinux/refpolicy/include/system/init.if: could not parse text: "/usr/share/selinux/refpolicy/include/system/init.if: Syntax error on line 2194 ' [type=SQUOTE]"
failed to parse some headers: /usr/share/selinux/refpolicy/include/kernel/selinux.if, /usr/share/selinux/refpolicy/include/services/ssh.if, /usr/share/selinux/refpolicy/include/system/init.if