aboutsummaryrefslogtreecommitdiff
path: root/Linux-PAM/modules/pam_namespace/pam_namespace.h
diff options
context:
space:
mode:
authorSteve Langasek <steve.langasek@ubuntu.com>2019-01-03 15:47:11 -0800
committerSteve Langasek <steve.langasek@ubuntu.com>2019-01-03 15:53:40 -0800
commit174ef428caf670848743ff1060d30972981a741e (patch)
tree8dba0ea7cddd1c26e2cefe9febd2584fa792528c /Linux-PAM/modules/pam_namespace/pam_namespace.h
parentf5871e812510cdd089a605d8e6e1ec272b967a39 (diff)
parent9a4298687784e7812c8aeef6e0e97830febbf393 (diff)
downloadpam-174ef428caf670848743ff1060d30972981a741e.tar.gz
pam-174ef428caf670848743ff1060d30972981a741e.tar.bz2
pam-174ef428caf670848743ff1060d30972981a741e.zip
merge upstream version 0.99.8.1
Diffstat (limited to 'Linux-PAM/modules/pam_namespace/pam_namespace.h')
-rw-r--r--Linux-PAM/modules/pam_namespace/pam_namespace.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/Linux-PAM/modules/pam_namespace/pam_namespace.h b/Linux-PAM/modules/pam_namespace/pam_namespace.h
index c918cff3..0847ec08 100644
--- a/Linux-PAM/modules/pam_namespace/pam_namespace.h
+++ b/Linux-PAM/modules/pam_namespace/pam_namespace.h
@@ -63,6 +63,7 @@
#ifdef WITH_SELINUX
#include <selinux/selinux.h>
+#include <selinux/context.h>
#endif
#ifndef CLONE_NEWNS
@@ -86,15 +87,19 @@
#define PAMNS_GEN_HASH 0x00002000 /* Generate md5 hash for inst names */
#define PAMNS_IGN_CONFIG_ERR 0x00004000 /* Ignore format error in conf file */
#define PAMNS_IGN_INST_PARENT_MODE 0x00008000 /* Ignore instance parent mode */
+#define PAMNS_NO_UNMOUNT_ON_CLOSE 0x00010000 /* no unmount at session close */
+
+#define NAMESPACE_MAX_DIR_LEN 80
/*
* Polyinstantiation method options, based on user, security context
* or both
*/
enum polymethod {
+ NONE,
USER,
CONTEXT,
- BOTH,
+ LEVEL,
};
/*