Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-61900

mssql datasource in grafana can not access MSSQL server due to selinux issue

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • rhel-10.0
    • rhel-10.0
    • grafana
    • None
    • grafana-10.2.6-10.el10
    • Yes
    • Moderate
    • 1
    • rhel-sst-pt-pcp
    • ssg_platform_tools
    • 21
    • 1
    • QE ack
    • False
    • Hide

      None

      Show
      None
    • No
    • Red Hat Enterprise Linux
    • PCP Sprint 13
    • Unspecified Release Note Type - Unknown
    • None

      What were you trying to do that didn't work?

      When a mssql datasource is created, it can not access the MSSQL server because the connection is not allowed in grafana-selinux policy.

      What is the impact of this issue to you?

      mssql datasource does not work

      Please provide the package NVR for which the bug is seen:

      grafana-10.2.6-7.el10
      ( reproducible also on grafana-10.2.6-6.el10 )

      How reproducible is this bug?:

      Always

      Steps to reproduce

      1. Install grafana & MSSQL server
      2. Configure a mssql datasource to access the MSSQL server
      3. Push the "Save and Test" button on the datasource page

      Expected results

      The datasource works

      Actual results

      The datasource fails with the following error message:

      [sqleng.connectionError] failed to connect to server - please inspect Grafana server log for details
      

      There is also an AVC record generated:

      # audit2allow -a
      #============= grafana_t ==============
      allow grafana_t mssql_port_t:tcp_socket name_connect;
      

              rh-ee-sfeifer Sam Feifer
              jkurik@redhat.com Jan Kurik
              pcp-maint pcp-maint
              Jan Kurik Jan Kurik
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: