/[smeserver]/rpms/sudo/sme9/sudo-1.8.6p3-unprivileged-list-fix.patch
ViewVC logotype

Contents of /rpms/sudo/sme9/sudo-1.8.6p3-unprivileged-list-fix.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Thu Feb 4 19:44:47 2021 UTC (3 years, 3 months ago) by jpp
Branch: MAIN
CVS Tags: sudo-1_8_6p3-30_el6_sme, sudo-1_8_6p3-29_el6_9, HEAD
Sudo

1 diff -up sudo-1.8.6p3/plugins/sudoers/ldap.c.unprivileged-list-fix sudo-1.8.6p3/plugins/sudoers/ldap.c
2 --- sudo-1.8.6p3/plugins/sudoers/ldap.c.unprivileged-list-fix 2016-03-01 15:43:01.345360925 +0100
3 +++ sudo-1.8.6p3/plugins/sudoers/ldap.c 2016-03-01 15:47:27.528760899 +0100
4 @@ -2425,12 +2425,12 @@ sudo_ldap_lookup(struct sudo_nss *nss, i
5 /* Only check the command when listing another user. */
6 if (user_uid == 0 || list_pw == NULL ||
7 user_uid == list_pw->pw_uid ||
8 - sudo_ldap_check_command(ld, entry, NULL)) {
9 + sudo_ldap_check_command(ld, entry, NULL) == true) {
10 matched = true;
11 break;
12 }
13 }
14 - if (matched || user_uid == 0) {
15 + if (matched == true || user_uid == 0) {
16 SET(ret, VALIDATE_OK);
17 CLR(ret, VALIDATE_NOT_OK);
18 if (def_authenticate) {
19 diff -up sudo-1.8.6p3/plugins/sudoers/sssd.c.unprivileged-list-fix sudo-1.8.6p3/plugins/sudoers/sssd.c
20 --- sudo-1.8.6p3/plugins/sudoers/sssd.c.unprivileged-list-fix 2016-03-01 15:43:09.010257262 +0100
21 +++ sudo-1.8.6p3/plugins/sudoers/sssd.c 2016-03-01 15:44:48.687909159 +0100
22 @@ -1059,13 +1059,13 @@ sudo_sss_lookup(struct sudo_nss *nss, in
23 /* Only check the command when listing another user. */
24 if (user_uid == 0 || list_pw == NULL ||
25 user_uid == list_pw->pw_uid ||
26 - sudo_sss_check_command(handle, rule, NULL)) {
27 + sudo_sss_check_command(handle, rule, NULL) == true) {
28 matched = true;
29 break;
30 }
31 }
32 }
33 - if (matched || user_uid == 0) {
34 + if (matched == true || user_uid == 0) {
35 SET(ret, VALIDATE_OK);
36 CLR(ret, VALIDATE_NOT_OK);
37 if (def_authenticate) {

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed