Code Monkey home page Code Monkey logo

pf_exporter's Introduction

pf_exporter

pf exporter for prometheus

pf_exporter's People

Contributors

mischief avatar

Stargazers

Johan Eckerström avatar Sean Malloy avatar Rayne avatar Zac Brown avatar Dinos Costanti avatar Aaron Bieber avatar Sudhi Herle avatar Radek 'blufor' Slavicinsky avatar Jasper Siepkes avatar zv avatar

Watchers

James Cloos avatar  avatar  avatar Dinos Costanti avatar

Forkers

mhalden

pf_exporter's Issues

pledge/privdrop

currently IIRC there is no easy way to privdrop a go program. one method might be to LockOSThread, setuid and exec self.

in the future it should be possible to pledge pf_exporter, but not currently because the pf pledge doesn't include at least DIOCGETQUEUES, possibly more require pf ioctls.

currently my method for running pf_exporter is:

doas -u nobody ./pf_exporter -pf.fd 0 0<>/dev/pf

abusing ksh to open the pf descriptor for me. eventually something like this should go in an rc script. if privdropping worked, we probably would not need to pre-open the pf fd.

note: doas closes every fd after STDERR_FILENO, so we use stdin (fd 0)

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.