mirror of
https://github.com/google/nsjail.git
synced 2026-08-30 18:41:30 -07:00
config: remove deprecated config options
This commit is contained in:
@@ -82,10 +82,6 @@ static bool configParseInternal(nsjconf_t* nsjconf, const nsjail::NsJailConfig&
|
||||
LOG_E("Unknown running mode: %d", njc.mode());
|
||||
return false;
|
||||
}
|
||||
if (njc.has_chroot_dir()) {
|
||||
nsjconf->chroot = njc.chroot_dir();
|
||||
}
|
||||
nsjconf->is_root_rw = njc.is_root_rw();
|
||||
nsjconf->hostname = njc.hostname();
|
||||
nsjconf->cwd = njc.cwd();
|
||||
nsjconf->port = njc.port();
|
||||
|
||||
@@ -81,10 +81,6 @@ message NsJailConfig {
|
||||
|
||||
/* Execution mode: see 'msg Mode' description for more */
|
||||
optional Mode mode = 3 [default = ONCE];
|
||||
/* Equivalent to a bind mount with dst='/'. DEPRECATED: Use bind mounts. */
|
||||
optional string chroot_dir = 4 [deprecated = true];
|
||||
/* Applies both to the chroot_dir and to /proc mounts. DEPRECATED: Use bind mounts */
|
||||
optional bool is_root_rw = 5 [default = false, deprecated = true];
|
||||
/* Hostname inside jail */
|
||||
optional string hostname = 8 [default = "NSJAIL"];
|
||||
/* Initial current working directory for the binary */
|
||||
|
||||
Reference in New Issue
Block a user