Skip to content

Commit

Permalink
support allow_mount_linprocfs (iocage#1211)
Browse files Browse the repository at this point in the history
needs so nested jails can use linprocfs
e.g., for poudriere in a jail

Signed-off-by: Christopher Hall <[email protected]>
  • Loading branch information
hxw authored Nov 23, 2023
1 parent 75f6b11 commit 5068c36
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
12 changes: 11 additions & 1 deletion iocage.8
Original file line number Diff line number Diff line change
Expand Up @@ -1074,7 +1074,7 @@ Only applies when
and
.Ql assign_localhost=1 .
Assign the jail localhost IP address to a custom IP address instead
of the first available
of the first available
.Dq 127.0.0.#
address.
.Nm
Expand Down Expand Up @@ -1688,6 +1688,16 @@ Default: 0
.Pp
Source:
.Xr jail 8
.It Pf allow_mount_linprocfs= Op 1 | 0
Allow privileged users inside the jail to mount and unmount the linprocfs
file system.
This permission is effective only together with allow.mount and if
enforce_statfs is set to a value lower than 2.
.Pp
Default: 0
.Pp
Source:
.Xr jail 8
.It Pf allow_mount_tmpfs= Op 1 | 0
Allow privileged users inside the jail to mount and unmount the tmpfs
file system.
Expand Down
2 changes: 2 additions & 0 deletions iocage_lib/ioc_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -1172,6 +1172,7 @@ def retrieve_default_props():
'allow_mount_fusefs': 0,
'allow_mount_nullfs': 0,
'allow_mount_procfs': 0,
'allow_mount_linprocfs': 0,
'allow_mount_tmpfs': 0,
'allow_mount_zfs': 0,
'allow_quotas': 0,
Expand Down Expand Up @@ -2093,6 +2094,7 @@ def json_check_prop(self, key, value, conf, default=False):
"allow_mount_fusefs": truth_variations,
"allow_mount_nullfs": truth_variations,
"allow_mount_procfs": truth_variations,
"allow_mount_linprocfs": truth_variations,
"allow_mount_tmpfs": truth_variations,
"allow_mount_zfs": truth_variations,
"allow_quotas": truth_variations,
Expand Down
2 changes: 2 additions & 0 deletions iocage_lib/ioc_start.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ def __start_jail__(self):
allow_mount_fusefs = self.conf["allow_mount_fusefs"]
allow_mount_nullfs = self.conf["allow_mount_nullfs"]
allow_mount_procfs = self.conf["allow_mount_procfs"]
allow_mount_linprocfs = self.conf["allow_mount_linprocfs"]
allow_mount_tmpfs = self.conf["allow_mount_tmpfs"]
allow_mount_zfs = self.conf["allow_mount_zfs"]
allow_quotas = self.conf["allow_quotas"]
Expand Down Expand Up @@ -556,6 +557,7 @@ def __start_jail__(self):
f"allow.mount.devfs={allow_mount_devfs}",
f"allow.mount.nullfs={allow_mount_nullfs}",
f"allow.mount.procfs={allow_mount_procfs}",
f"allow.mount.linprocfs={allow_mount_linprocfs}",
f"allow.mount.zfs={allow_mount_zfs}"
]

Expand Down

0 comments on commit 5068c36

Please sign in to comment.