Git Product home page Git Product logo

grafana-selinux's People

Contributors

georou avatar sfeifer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

grafana-selinux's Issues

Grafana

Hi,

I found some issues with the policy when playing around with Grafana and SELINUX,
but was able to solve/circumvent the issues.

My configuration uses Grafana with icinga2/icingaweb and with influxdb as backend;
Grafana sesssion/dashboards/settings are stored in mysql.

My modifications to your policy 1.0.0.0:
gen_require(`
type httpd_t;
type mysqld_port_t;
type devlog_t;
type fonts_t;
type fs_t;
type ld_so_cache_t;
type locale_t;
type usr_t;
type unreserved_port_t;
class file entrypoint;
')
..

MG: 00 - fixes connection with mysql

allow grafanad_t kernel_t:system module_request;
allow grafanad_t mysqld_port_t:tcp_socket name_connect;
allow grafanad_t self:netlink_route_socket { bind create getattr nlmsg_read };

MG: 01 - fixes grafana logging to syslog

allow grafanad_t devlog_t:sock_file write;

MG: 02 - phantomjs binary execution

note: /usr/share/grafana/tools/phantomjs/phantomjs needs relabeling

allow grafanad_t usr_t:file execute;
allow grafanad_t fonts_t:file execute;
allow grafanad_t grafanad_port_t:tcp_socket name_connect;
allow grafanad_t fs_t:filesystem getattr;
allow grafanad_t ld_so_cache_t:file execute;
allow grafanad_t locale_t:file execute;
allow grafanad_t self:process { execmem setrlimit };

MG: 03 - grafana connect to itself

allow grafanad_t unreserved_port_t:tcp_socket name_connect;

If you need further info about my setting -please contact me.

regards

MG

Grafana selinux policy

Hi!

I am working on developing a selinux policy for grafana and this seemed like a good spot to start. Is there interest in collaborating on this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.