grc-iit / symbios

0 stars 0 forks source link

On Posix.cpp #30

Open JaimeCernuda opened 3 years ago

JaimeCernuda commented 3 years ago

In the interception code, I believe we should expand the list of ignored files

FILE *fopen(const char *filename, const char *mode) {
    MAP_OR_FAIL(fopen);
    FILE *fh;
    if(strncmp(filename, SYMBIOS_CONF->CONFIGURATION_FILE.c_str(), SYMBIOS_CONF->CONFIGURATION_FILE.size()) == 0)
        //TODO: SERVER_DIR, CLIENT_LIST, SERVER_LIST, LOGGING_FOLDER (main/damenon + other?)
        return __real_fopen(filename, mode);
hariharan-devarajan commented 3 years ago

Sure add an auxiliary list within configuration manager. An vector of strings which you can load up from configuration to add to exclusion list. You can call it FILE_IGNORE_DIRS