Uploaded image for project: 'vpp'
  1. vpp
  2. VPP-1640

Missing rules in vpp-selinux-policy

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Open
    • Icon: Medium Medium
    • None
    • 19.01
    • Build system

      Hi,

       

      I installed VPP on a centos VM which includes the vpp-selinux-policy package.

      Even with that package, I had to create custom SELinux module to authorize access to /dev/vfio/ directory so I can create vmxnet3 interface.

       

      I'm also facing a similar situation when I try to create a host-interface and link it with a veth interface. Here is what I see in the audit.logs:

      type=AVC msg=audit(1554740751.564:59100): avc: denied { map } for pid=6078 comm="vpp_main" path="socket:[35534]" dev="sockfs" ino=35534 scontext=system_u:system_r:vpp_t:s0 tcontext=system_u:system_r:vpp_t:s0 tclass=packet_socket permissive=0

       

      vpp# create host-interface name vpp2
      create host-interface: Bad file descriptor (errno 9)

       

      Below is the version installed:

      vpp# show version verbose cmdline
      Version: v19.01.1-release
      Compiled by: root
      Compile host: 44f6c5ae1118
      Compile date: Wed Mar 6 23:25:46 UTC 2019
      Compile location: /w/workspace/vpp-merge-1901-centos7
      Compiler: GCC 7.3.1 20180303 (Red Hat 7.3.1-5)
      Current PID: 6078
      Command line arguments:
      {{ /usr/bin/vpp}}
      {{ unix}}
      {{ {}}
      {{ nodaemon}}
      {{ log}}
      {{ /var/log/vpp/vpp.log}}
      {{ full-coredump}}
      {{ cli-listen}}
      {{ /run/vpp/cli.sock}}
      {{ gid}}
      {{ vpp}}
      {{ exec}}
      {{ /etc/vpp/vpp.conf}}
      {{ }}}
      {{ api-trace}}
      {{ {}}
      {{ on}}
      {{ }}}
      {{ api-segment}}
      {{ {}}
      {{ gid}}
      {{ vpp}}
      {{ }}}
      {{ socksvr}}
      {{ {}}
      {{ default}}
      {{ }}}
      {{ cpu}}
      {{ {}}
      {{ }}}

       

      Is there some specific settings required ?

      Documentation said "if VPP has never been installed on a system, then starting in 18.04, the VPP Custom SELinux Policy will be installed with the other RPMs and all the system components managed by VPP will be labeled properly."

       

      Thanks

       

            BillyM Billy McFall
            laaubert Laurent Aubert
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: