security.h

./lib/include/security.h · 1.2 KB

From the archive h7v3.0a.tar.gz

Download the archive   « Back to the archive contents

#ifndef SECURITY_H
#define SECURITY_H

#include <mudlib.h>
#include <master.cfg>
#include <player.cfg>

/*
 * Minimum security level to edit 'master' files
 * 
 * 'master' objects have full file access
 */

#define MASTER_SECURITY SEC8


/*
 * Unique objects that have 'master' file access
 */

#define MASTER_OBJECTS \
  ({ MASTER, SIMUL_EFUN, SPARE_SIMUL_EFUN_FILE, SECURITY_FILE, })


/*
 * Directories that have 'master' file access
 */

#define MASTER_DIRECTORIES ({ "/include/%s", })


/*
 * Directories that are flagged as 'restricted' paths
 */

#ifdef 312MASTER

#define RESTRICTED_PATHS ({ \
  "/include/%s", "/obj/%s", "/usr/%s", "/secure/%s", "/inherit/%s", \
  "/function/%s", "/skills/%s", "/room/%s", \
})

#else

#define RESTRICTED_PATHS ({ \
  "/include/%s", "/obj/%s", "/usr/%s", "/secure/%s", "/inherit/%s", \
  "/function/%s", "/skills/%s", \
})

#endif /* 312MASTER */

/*
 * Cloned objects that can use 'restricted' paths
 */

#define RESTRICTED_PATH_OBJECTS ({ PLAYER, WIZARD, DEBUG, TARX, })


/*
 * Files that are 'open' read access
 */

#define OPEN_FILES ({ WELCOME, NEWS, DEBUG_LOG, MAIN_LOG, \
  LOG_HB_ERROR, "/log/SHOUTS", "/lpmud.log", \
})


#endif /* SECURITY_H */

Site Stats

Snippets: 1791
Codebases: 571