aboutsummaryrefslogtreecommitdiff
path: root/modules/pam_namespace/pam_namespace.h
diff options
context:
space:
mode:
authorTomas Mraz <tmraz@fedoraproject.org>2012-10-10 19:46:02 +0200
committerTomas Mraz <tmraz@fedoraproject.org>2012-10-10 19:46:02 +0200
commitfbcbb0e302b0c7561e565531b47fba9477b238ba (patch)
tree0fd09590cb7c15f11ba9473f81866db694d88529 /modules/pam_namespace/pam_namespace.h
parent6b2a5b9f5595f39fb919c12c52c7f3c53f33f914 (diff)
downloadpam-fbcbb0e302b0c7561e565531b47fba9477b238ba.tar.gz
pam-fbcbb0e302b0c7561e565531b47fba9477b238ba.tar.bz2
pam-fbcbb0e302b0c7561e565531b47fba9477b238ba.zip
pam_namespace: add mntopts flag for tmpfs mount options
modules/pam_namespace/pam_namespace.h: Add mount_opts member to polydir structure. modules/pam_namespace/pam_namespace.c (del_polydir): Free the mount_opts. (parse_method): Parse the mntopts flag. (ns_setup): Pass the mount_opts to mount(). modules/pam_namespace/namespace.conf.5.xml: Document the mntopts flag.
Diffstat (limited to 'modules/pam_namespace/pam_namespace.h')
-rw-r--r--modules/pam_namespace/pam_namespace.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/pam_namespace/pam_namespace.h b/modules/pam_namespace/pam_namespace.h
index 51d23886..47ebcc33 100644
--- a/modules/pam_namespace/pam_namespace.h
+++ b/modules/pam_namespace/pam_namespace.h
@@ -116,6 +116,7 @@
#define POLYDIR_NOINIT 0x00000004 /* no init script */
#define POLYDIR_SHARED 0x00000008 /* share context/level instances among users */
#define POLYDIR_ISCRIPT 0x00000010 /* non default init script */
+#define POLYDIR_MNTOPTS 0x00000020 /* mount options for tmpfs mount */
#define NAMESPACE_MAX_DIR_LEN 80
@@ -164,6 +165,7 @@ struct polydir_s {
uid_t *uid; /* list of override uids */
unsigned int flags; /* polydir flags */
char *init_script; /* path to init script */
+ char *mount_opts; /* mount options 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 */