aboutsummaryrefslogtreecommitdiff
path: root/common.h
diff options
context:
space:
mode:
authorTrumeet <yuuta@yuuta.moe>2022-12-23 22:33:19 -0800
committerTrumeet <yuuta@yuuta.moe>2022-12-23 22:33:19 -0800
commit184dab1c74db05d59d63bfaabedf0ef4e6bf61c9 (patch)
tree8a981236189dae398c60e70769c343f66b9762bd /common.h
parent18198a5f1d224aca711f3be617877f6e5f9d83ed (diff)
downloadsecdesk-184dab1c74db05d59d63bfaabedf0ef4e6bf61c9.tar
secdesk-184dab1c74db05d59d63bfaabedf0ef4e6bf61c9.tar.gz
secdesk-184dab1c74db05d59d63bfaabedf0ef4e6bf61c9.tar.bz2
secdesk-184dab1c74db05d59d63bfaabedf0ef4e6bf61c9.zip
Various improvements
Diffstat (limited to 'common.h')
-rw-r--r--common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/common.h b/common.h
index 0bf7c6d..d18efcd 100644
--- a/common.h
+++ b/common.h
@@ -6,6 +6,7 @@
#define SECDESK_COMMON_H
#include <unistd.h>
+#include <limits.h>
enum modes {
/* Yes / No on action <prompt>. */
@@ -24,12 +25,14 @@ struct auth_env {
uid_t usr;
pid_t pid;
const char *prompt;
+ char exe[PATH_MAX + 1];
};
struct proc_env {
int in;
int out;
int err;
+ int vt;
};
extern struct proc_env p_env;