Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add /opt to allowed directories #125

Merged
merged 1 commit into from
Dec 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions contrib/etc/lockc/lockc.toml
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ allowed_paths_access_restricted = [
"/home",
"/lib",
"/lib64",
"/opt",
"/pause",
"/proc",
"/run",
Expand Down Expand Up @@ -390,6 +391,7 @@ allowed_paths_access_baseline = [
"/home",
"/lib",
"/lib64",
"/opt",
"/pause",
"/proc",
"/run",
Expand Down
3 changes: 3 additions & 0 deletions lockc/src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ static DIR_ETC: &str = "/etc";
static DIR_LIB: &str = "/lib";
static DIR_LIB64: &str = "/lib64";
static PAUSE: &str = "/pause";
static DIR_OPT: &str = "/opt";
static DIR_PROC: &str = "/proc";
static DIR_RUN: &str = "/run";
static DIR_CGROUP: &str = "/sys/fs/cgroup";
Expand Down Expand Up @@ -460,6 +461,7 @@ impl Settings {
DIR_LIB.to_string(),
DIR_LIB64.to_string(),
PAUSE.to_string(),
DIR_OPT.to_string(),
DIR_PROC.to_string(),
DIR_RUN.to_string(),
DIR_CGROUP.to_string(),
Expand Down Expand Up @@ -494,6 +496,7 @@ impl Settings {
DIR_LIB.to_string(),
DIR_LIB64.to_string(),
PAUSE.to_string(),
DIR_OPT.to_string(),
DIR_PROC.to_string(),
DIR_RUN.to_string(),
DIR_CGROUP.to_string(),
Expand Down