Giter Club home page Giter Club logo

Comments (3)

robertswiecki avatar robertswiecki commented on July 17, 2024 1

Hi,

each arg should be an individual arg, as in you cannot quote them as in bash

exec_bin {
path: "/usr/sbin/httpd"
arg : "-C"
arg: "Include"
arg: "/etc/apache2/sysconfig.d/loadmodule.conf"
....
}

from nsjail.

FlorianHeigl avatar FlorianHeigl commented on July 17, 2024

None of that would have been needed to be quoted in a shell, i just did that trying to get it passed through protobuf ;-)

hopefully get it working tomorrow.
it looks correct (in middle of night) but doesn't work.

exec_bin {
        path: "/usr/sbin/httpd"
        arg: "-C"
        arg: "Include"
        arg: "/etc/apache2/sysconfig.d/loadmodule.conf"
        arg: "-C"
        arg: "Include"
        arg: "/etc/apache2/sysconfig.d/global.conf"
        arg: "-C"
        arg: "Include"
        arg: "/etc/apache2/sysconfig.d/include.conf"
        arg: "-f"
        arg: "/etc/apache2/httpd.conf"
        arg: "-X"
        arg: "-T"
}
nsjail:~/nsjail # ./nsjail --config configs/apache-sles.cfg   
[2018-07-23T21:36:17+0000] [W][4714] void config::LogHandler(google::protobuf::LogLevel, const char*, int, const string&)():277 config.cc: 'Error parsing text-format nsjail.NsJailConfig: 162:1: Interpreting non ascii codepoint 194.'
[2018-07-23T21:36:17+0000] [W][4714] void config::LogHandler(google::protobuf::LogLevel, const char*, int, const string&)():277 config.cc: 'Error parsing text-format nsjail.NsJailConfig: 162:1: Expected identifier.'
[2018-07-23T21:36:17+0000] [W][4714] bool config::parseFile(nsjconf_t*, const char*)():298 Couldn't parse file 'configs/apache-sles.cfg' from Text into ProtoBuf
[2018-07-23T21:36:17+0000] [F][4714] std::unique_ptr<nsjconf_t> cmdline::parseArgs(int, char**)():459 Couldn't parse configuration from 'configs/apache-sles.cfg' file

for all i can tell I just got a weird char in there ;-)

Thanks for the help today. I'll post back.

from nsjail.

robertswiecki avatar robertswiecki commented on July 17, 2024

I hope this "solved itself" :)

from nsjail.

Related Issues (20)

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.