summaryrefslogtreecommitdiffstats
path: root/sys/sys
diff options
context:
space:
mode:
authoraraujo <araujo@FreeBSD.org>2016-02-24 02:34:11 +0000
committeraraujo <araujo@FreeBSD.org>2016-02-24 02:34:11 +0000
commitb357db3ca617d62e83fa0db20ccacbcd001761a6 (patch)
tree18f1f7870fb6232c7f6d464a41ed80aa2ab80889 /sys/sys
parent63b2f3db69ed14038164268fb5c942d5f7a3d8b4 (diff)
downloadFreeBSD-src-b357db3ca617d62e83fa0db20ccacbcd001761a6.zip
FreeBSD-src-b357db3ca617d62e83fa0db20ccacbcd001761a6.tar.gz
MFH: 285685
Add support to the jail framework to be able to mount linsysfs(5) and linprocfs(5). PR: 207179 Requested by: thomas@gibfest.dk Reviewed by: jamie, bapt Approved by: re (gjb) Sponsored by: gandi.net Differential Revision: https://reviews.freebsd.org/D5390
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/jail.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/sys/jail.h b/sys/sys/jail.h
index cfe71d8..63f5ab9 100644
--- a/sys/sys/jail.h
+++ b/sys/sys/jail.h
@@ -232,7 +232,9 @@ struct prison_racct {
#define PR_ALLOW_MOUNT_PROCFS 0x0400
#define PR_ALLOW_MOUNT_TMPFS 0x0800
#define PR_ALLOW_MOUNT_FDESCFS 0x1000
-#define PR_ALLOW_ALL 0x1fff
+#define PR_ALLOW_MOUNT_LINPROCFS 0x2000
+#define PR_ALLOW_MOUNT_LINSYSFS 0x4000
+#define PR_ALLOW_ALL 0x7fff
/*
* OSD methods
OpenPOWER on IntegriCloud