summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr/src/lib/brand/lx/lx_brand/common/misc.c12
-rw-r--r--usr/src/lib/brand/lx/lx_brand/sys/lx_misc.h2
2 files changed, 14 insertions, 0 deletions
diff --git a/usr/src/lib/brand/lx/lx_brand/common/misc.c b/usr/src/lib/brand/lx/lx_brand/common/misc.c
index 990ee9dce7..48b2c73758 100644
--- a/usr/src/lib/brand/lx/lx_brand/common/misc.c
+++ b/usr/src/lib/brand/lx/lx_brand/common/misc.c
@@ -601,6 +601,18 @@ lx_prctl(int option, uintptr_t arg2, uintptr_t arg3,
size_t psargslen = sizeof (psinfo.pr_psargs);
int fd;
+ if (option == LX_PR_GET_DUMPABLE) {
+ /* Indicate that process is always dumpable */
+ return (1);
+ }
+
+ if (option == LX_PR_SET_DUMPABLE) {
+ if (arg2 != 1 && arg2 != 0)
+ return (-EINVAL);
+ /* Lie about altering process dumpability */
+ return (0);
+ }
+
if (option == LX_PR_SET_KEEPCAPS) {
/*
* The closest illumos analog to SET_KEEPCAPS is the PRIV_AWARE
diff --git a/usr/src/lib/brand/lx/lx_brand/sys/lx_misc.h b/usr/src/lib/brand/lx/lx_brand/sys/lx_misc.h
index cb0b5b4661..220ae0b48f 100644
--- a/usr/src/lib/brand/lx/lx_brand/sys/lx_misc.h
+++ b/usr/src/lib/brand/lx/lx_brand/sys/lx_misc.h
@@ -109,6 +109,8 @@ extern boolean_t lx_is_rpm;
* Constants for prctl(). We only include the ones here that we actually
* support; everything else will be ENOSYS.
*/
+#define LX_PR_GET_DUMPABLE 3
+#define LX_PR_SET_DUMPABLE 4
#define LX_PR_SET_KEEPCAPS 8
#define LX_PR_SET_NAME 15