diff options
3 files changed, 58 insertions, 26 deletions
diff --git a/meta-oe/recipes-extended/vlock/vlock-2.2.3/disable_vlockrc.patch b/meta-oe/recipes-extended/vlock/vlock-2.2.3/disable_vlockrc.patch index ee0d074de8..2412bb8deb 100644 --- a/meta-oe/recipes-extended/vlock/vlock-2.2.3/disable_vlockrc.patch +++ b/meta-oe/recipes-extended/vlock/vlock-2.2.3/disable_vlockrc.patch | |||
@@ -1,13 +1,23 @@ | |||
1 | From f71cc920528c3496b0118964ebbcf5440cda4ed1 Mon Sep 17 00:00:00 2001 | ||
2 | From: Jackie Huang <jackie.huang@windriver.com> | ||
3 | Date: Wed, 16 Aug 2017 13:37:40 +0800 | ||
4 | Subject: [PATCH] vlock: add new recipe | ||
5 | |||
1 | Upstream-Status: Inappropriate [configuration] | 6 | Upstream-Status: Inappropriate [configuration] |
2 | 7 | ||
3 | written by: Jeff Polk <jeff.polk@windriver.com> | 8 | written by: Jeff Polk <jeff.polk@windriver.com> |
4 | Signed-off-by: Jackie Huang <jackie.huang@windriver.com> | 9 | Signed-off-by: Jackie Huang <jackie.huang@windriver.com> |
5 | 10 | ||
6 | Index: vlock-2.2.2/man/vlock.1 | 11 | --- |
7 | =================================================================== | 12 | man/vlock.1 | 5 ----- |
8 | --- vlock-2.2.2.orig/man/vlock.1 2010-07-26 14:12:42.000000000 -0400 | 13 | src/vlock.sh | 5 ----- |
9 | +++ vlock-2.2.2/man/vlock.1 2010-07-26 14:13:06.000000000 -0400 | 14 | 2 files changed, 10 deletions(-) |
10 | @@ -111,11 +111,6 @@ | 15 | |
16 | diff --git a/man/vlock.1 b/man/vlock.1 | ||
17 | index 0d29b49..01cb944 100644 | ||
18 | --- a/man/vlock.1 | ||
19 | +++ b/man/vlock.1 | ||
20 | @@ -111,11 +111,6 @@ enter your password at the password prompt. If this variable is unset or set | ||
11 | to an invalid value or 0 no timeout is used. \fBWarning\fR: If this value is | 21 | to an invalid value or 0 no timeout is used. \fBWarning\fR: If this value is |
12 | too low, you may not be able to unlock your session. | 22 | too low, you may not be able to unlock your session. |
13 | .PP | 23 | .PP |
@@ -19,11 +29,11 @@ Index: vlock-2.2.2/man/vlock.1 | |||
19 | .SH SECURITY | 29 | .SH SECURITY |
20 | See the SECURITY file in the \fBvlock\fR distribution for more information. | 30 | See the SECURITY file in the \fBvlock\fR distribution for more information. |
21 | .PP | 31 | .PP |
22 | Index: vlock-2.2.2/src/vlock.sh | 32 | diff --git a/src/vlock.sh b/src/vlock.sh |
23 | =================================================================== | 33 | index 75f1369..f572776 100644 |
24 | --- vlock-2.2.2.orig/src/vlock.sh 2010-07-26 14:12:32.000000000 -0400 | 34 | --- a/src/vlock.sh |
25 | +++ vlock-2.2.2/src/vlock.sh 2010-07-26 14:13:33.000000000 -0400 | 35 | +++ b/src/vlock.sh |
26 | @@ -35,11 +35,6 @@ | 36 | @@ -35,11 +35,6 @@ This TTY is now locked. |
27 | 37 | ||
28 | ${VLOCK_ENTER_PROMPT}" | 38 | ${VLOCK_ENTER_PROMPT}" |
29 | 39 | ||
diff --git a/meta-oe/recipes-extended/vlock/vlock-2.2.3/vlock-no_tally.patch b/meta-oe/recipes-extended/vlock/vlock-2.2.3/vlock-no_tally.patch index 6e8a6a9fdc..3a344b2362 100644 --- a/meta-oe/recipes-extended/vlock/vlock-2.2.3/vlock-no_tally.patch +++ b/meta-oe/recipes-extended/vlock/vlock-2.2.3/vlock-no_tally.patch | |||
@@ -1,8 +1,21 @@ | |||
1 | From 17e5c8d32abc214aea408f0837be41e88bce7eb2 Mon Sep 17 00:00:00 2001 | ||
2 | From: Jackie Huang <jackie.huang@windriver.com> | ||
3 | Date: Wed, 16 Aug 2017 13:37:40 +0800 | ||
4 | Subject: [PATCH] vlock: add new recipe | ||
5 | |||
1 | Upstream-Status: Pending | 6 | Upstream-Status: Pending |
2 | 7 | ||
3 | written by: Jeff Polk <jeff.polk@windriver.com> | 8 | written by: Jeff Polk <jeff.polk@windriver.com> |
4 | Signed-off-by: Jackie Huang <jackie.huang@windriver.com> | 9 | Signed-off-by: Jackie Huang <jackie.huang@windriver.com> |
5 | 10 | ||
11 | --- | ||
12 | Makefile | 4 ++++ | ||
13 | configure | 9 +++++++++ | ||
14 | src/vlock-main.c | 8 ++++++++ | ||
15 | 3 files changed, 21 insertions(+) | ||
16 | |||
17 | diff --git a/Makefile b/Makefile | ||
18 | index 4eeb42a..834cd2c 100644 | ||
6 | --- a/Makefile | 19 | --- a/Makefile |
7 | +++ b/Makefile | 20 | +++ b/Makefile |
8 | @@ -126,6 +126,10 @@ ifeq ($(AUTH_METHOD),shadow) | 21 | @@ -126,6 +126,10 @@ ifeq ($(AUTH_METHOD),shadow) |
@@ -16,6 +29,8 @@ Signed-off-by: Jackie Huang <jackie.huang@windriver.com> | |||
16 | ifeq ($(ENABLE_PLUGINS),yes) | 29 | ifeq ($(ENABLE_PLUGINS),yes) |
17 | vlock-main: plugins.o plugin.o module.o process.o script.o tsort.o list.o | 30 | vlock-main: plugins.o plugin.o module.o process.o script.o tsort.o list.o |
18 | # -rdynamic is needed so that the all plugin can access the symbols from console_switch.o | 31 | # -rdynamic is needed so that the all plugin can access the symbols from console_switch.o |
32 | diff --git a/configure b/configure | ||
33 | index d5d84d6..1303598 100755 | ||
19 | --- a/configure | 34 | --- a/configure |
20 | +++ b/configure | 35 | +++ b/configure |
21 | @@ -44,6 +44,7 @@ Optional Features: | 36 | @@ -44,6 +44,7 @@ Optional Features: |
@@ -36,7 +51,7 @@ Signed-off-by: Jackie Huang <jackie.huang@windriver.com> | |||
36 | pam|shadow) | 51 | pam|shadow) |
37 | if [ "$2" = "yes" ] ; then | 52 | if [ "$2" = "yes" ] ; then |
38 | if [ -n "$auth_method" ] && [ "$auth_method" != "$1" ] ; then | 53 | if [ -n "$auth_method" ] && [ "$auth_method" != "$1" ] ; then |
39 | @@ -232,6 +232,7 @@ set_defaults() { | 54 | @@ -228,6 +232,7 @@ set_defaults() { |
40 | AUTH_METHOD="pam" | 55 | AUTH_METHOD="pam" |
41 | ENABLE_ROOT_PASSWORD="yes" | 56 | ENABLE_ROOT_PASSWORD="yes" |
42 | ENABLE_PLUGINS="yes" | 57 | ENABLE_PLUGINS="yes" |
@@ -44,9 +59,7 @@ Signed-off-by: Jackie Huang <jackie.huang@windriver.com> | |||
44 | SCRIPTS="" | 59 | SCRIPTS="" |
45 | 60 | ||
46 | VLOCK_GROUP="vlock" | 61 | VLOCK_GROUP="vlock" |
47 | @@ -356,10 +356,14 @@ ENABLE_PLUGINS = ${ENABLE_PLUGINS} | 62 | @@ -353,6 +358,10 @@ MODULES = ${MODULES} |
48 | # which plugins should be build | ||
49 | MODULES = ${MODULES} | ||
50 | # which scripts should be installed | 63 | # which scripts should be installed |
51 | SCRIPTS = ${SCRIPTS} | 64 | SCRIPTS = ${SCRIPTS} |
52 | 65 | ||
@@ -57,12 +70,12 @@ Signed-off-by: Jackie Huang <jackie.huang@windriver.com> | |||
57 | # root's group | 70 | # root's group |
58 | ROOT_GROUP = ${ROOT_GROUP} | 71 | ROOT_GROUP = ${ROOT_GROUP} |
59 | 72 | ||
60 | # group for privileged plugins | 73 | diff --git a/src/vlock-main.c b/src/vlock-main.c |
61 | VLOCK_GROUP = ${VLOCK_GROUP} | 74 | index 008f6f0..108ce8b 100644 |
62 | --- a/src/vlock-main.c | 75 | --- a/src/vlock-main.c |
63 | +++ b/src/vlock-main.c | 76 | +++ b/src/vlock-main.c |
64 | @@ -111,7 +111,9 @@ static void restore_terminal(void) | 77 | @@ -112,7 +112,9 @@ static void restore_terminal(void) |
65 | (void) tcsetattr(STDIN_FILENO, TCSANOW, &term); | 78 | (void) tcsetattr(STDIN_FILENO, TCSANOW, &old_term); |
66 | } | 79 | } |
67 | 80 | ||
68 | +#ifdef ENABLE_FAIL_COUNT | 81 | +#ifdef ENABLE_FAIL_COUNT |
@@ -71,7 +84,7 @@ Signed-off-by: Jackie Huang <jackie.huang@windriver.com> | |||
71 | 84 | ||
72 | static void auth_loop(const char *username) | 85 | static void auth_loop(const char *username) |
73 | { | 86 | { |
74 | @@ -181,7 +183,9 @@ static void auth_loop(const char *userna | 87 | @@ -182,7 +184,9 @@ static void auth_loop(const char *username) |
75 | } | 88 | } |
76 | #endif | 89 | #endif |
77 | 90 | ||
@@ -81,7 +94,7 @@ Signed-off-by: Jackie Huang <jackie.huang@windriver.com> | |||
81 | } | 94 | } |
82 | 95 | ||
83 | /* Free timeouts memory. */ | 96 | /* Free timeouts memory. */ |
84 | @@ -189,11 +193,13 @@ static void auth_loop(const char *userna | 97 | @@ -190,11 +194,13 @@ static void auth_loop(const char *username) |
85 | free(prompt_timeout); | 98 | free(prompt_timeout); |
86 | } | 99 | } |
87 | 100 | ||
@@ -95,7 +108,7 @@ Signed-off-by: Jackie Huang <jackie.huang@windriver.com> | |||
95 | 108 | ||
96 | #ifdef USE_PLUGINS | 109 | #ifdef USE_PLUGINS |
97 | static void call_end_hook(void) | 110 | static void call_end_hook(void) |
98 | @@ -216,7 +222,9 @@ int main(int argc, char *const argv[]) | 111 | @@ -217,7 +223,9 @@ int main(int argc, char *const argv[]) |
99 | if (username == NULL) | 112 | if (username == NULL) |
100 | fatal_perror("vlock: could not get username"); | 113 | fatal_perror("vlock: could not get username"); |
101 | 114 | ||
diff --git a/meta-oe/recipes-extended/vlock/vlock-2.2.3/vlock_pam_tally2_reset.patch b/meta-oe/recipes-extended/vlock/vlock-2.2.3/vlock_pam_tally2_reset.patch index 4ce0abc71b..460b292498 100644 --- a/meta-oe/recipes-extended/vlock/vlock-2.2.3/vlock_pam_tally2_reset.patch +++ b/meta-oe/recipes-extended/vlock/vlock-2.2.3/vlock_pam_tally2_reset.patch | |||
@@ -1,13 +1,22 @@ | |||
1 | From fcec4e7fe899f8c0077b3004eeccb7292a945a67 Mon Sep 17 00:00:00 2001 | ||
2 | From: Jackie Huang <jackie.huang@windriver.com> | ||
3 | Date: Wed, 16 Aug 2017 13:37:40 +0800 | ||
4 | Subject: [PATCH] vlock: add new recipe | ||
5 | |||
1 | Upstream-Status: Pending | 6 | Upstream-Status: Pending |
2 | 7 | ||
3 | written by: Jeff Polk <jeff.polk@windriver.com> | 8 | written by: Jeff Polk <jeff.polk@windriver.com> |
4 | Signed-off-by: Jackie Huang <jackie.huang@windriver.com> | 9 | Signed-off-by: Jackie Huang <jackie.huang@windriver.com> |
5 | 10 | ||
6 | Index: vlock-2.2.2/src/auth-pam.c | 11 | --- |
7 | =================================================================== | 12 | src/auth-pam.c | 3 +++ |
8 | --- vlock-2.2.2.orig/src/auth-pam.c 2010-06-14 14:38:51.000000000 -0400 | 13 | 1 file changed, 3 insertions(+) |
9 | +++ vlock-2.2.2/src/auth-pam.c 2010-06-14 14:39:12.000000000 -0400 | 14 | |
10 | @@ -148,6 +148,9 @@ | 15 | diff --git a/src/auth-pam.c b/src/auth-pam.c |
16 | index 5cf93f6..c5cc67a 100644 | ||
17 | --- a/src/auth-pam.c | ||
18 | +++ b/src/auth-pam.c | ||
19 | @@ -148,6 +148,9 @@ bool auth(const char *user, struct timespec *timeout) | ||
11 | 20 | ||
12 | if (pam_status != PAM_SUCCESS) { | 21 | if (pam_status != PAM_SUCCESS) { |
13 | fprintf(stderr, "vlock: %s\n", pam_strerror(pamh, pam_status)); | 22 | fprintf(stderr, "vlock: %s\n", pam_strerror(pamh, pam_status)); |