aboutsummaryrefslogtreecommitdiff
path: root/modules/pam_namespace/pam_namespace.h
diff options
context:
space:
mode:
authorTomas Mraz <tmraz@fedoraproject.org>2019-11-04 10:12:22 +0100
committerTomas Mraz <tmraz@fedoraproject.org>2019-11-04 10:12:22 +0100
commite7abfc94824b5d0f9752ebcfc303e128060609a3 (patch)
treeb58d54709e36a0ceecb484ab9f200ea42e667974 /modules/pam_namespace/pam_namespace.h
parentc6bef96651ee861baf099a36f0cb1fd4d36669ca (diff)
downloadpam-e7abfc94824b5d0f9752ebcfc303e128060609a3.tar.gz
pam-e7abfc94824b5d0f9752ebcfc303e128060609a3.tar.bz2
pam-e7abfc94824b5d0f9752ebcfc303e128060609a3.zip
pam_namespace: Support for noexec, nosuid and nodev flags for tmpfs mounts
* modules/pam_namespace/namespace.conf.5.xml: Add documentation for the noexec, nosuid, and nodev flags support. * modules/pam_namespace/pam_namespace.c (filter_mntopts): New function to filter out the flags. (parse_method): Call the function. (ns_setup): Apply the flags to the tmpfs mount. * modules/pam_namespace/pam_namespace.h: Add mount_flags to polydir_s struct.
Diffstat (limited to 'modules/pam_namespace/pam_namespace.h')
-rw-r--r--modules/pam_namespace/pam_namespace.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/pam_namespace/pam_namespace.h b/modules/pam_namespace/pam_namespace.h
index 47ebcc33..1522386a 100644
--- a/modules/pam_namespace/pam_namespace.h
+++ b/modules/pam_namespace/pam_namespace.h
@@ -166,6 +166,7 @@ struct polydir_s {
unsigned int flags; /* polydir flags */
char *init_script; /* path to init script */
char *mount_opts; /* mount options for tmpfs mount */
+ unsigned long mount_flags; /* mount flags for tmpfs mount */
uid_t owner; /* user which should own the polydir */
gid_t group; /* group which should own the polydir */
mode_t mode; /* mode of the polydir */