Displaying 3 results from an estimated 3 matches for "allow_ntsec".
2001 Jul 11
2
[PATCH]: Cygwin: Allow sshd to switch user context without password
.../* Evaluate current CYGWIN settings. */
- if ((cygwin = getenv("CYGWIN")) != NULL) {
- if (strstr(cygwin, "ntea") && !strstr(cygwin, "nontea"))
- allow_ntea = 1;
- if (strstr(cygwin, "ntsec") && !strstr(cygwin, "nontsec"))
- allow_ntsec = 1;
- }
+ cygwin = getenv("CYGWIN");
+ allow_ntea = ntea_on(cygwin);
+ allow_ntsec = ntsec_on(cygwin);
/*
* `ntea' is an emulation of POSIX attributes. It doesn't support
--
Corinna Vinschen
Cygwin Developer
Red Hat, Inc.
mailto:vinschen at redhat.com
2002 Jul 31
0
[PATCH]: Match Cygwin version check to reality
...ate_token = 1;
}
if (has_create_token < 1 &&
!pwd_authenticated && geteuid() != pw->pw_uid)
@@ -128,7 +174,9 @@ int check_ntsec(const char *filename)
/* Evaluate current CYGWIN settings. */
cygwin = getenv("CYGWIN");
allow_ntea = ntea_on(cygwin);
- allow_ntsec = ntsec_on(cygwin);
+ allow_ntsec = ntsec_on(cygwin) ||
+ (has_capability(HAS_NTSEC_BY_DEFAULT) &&
+ !ntsec_off(cygwin));
/*
* `ntea' is an emulation of POSIX attributes. It doesn't support
--
Corinna Vinschen
Cygwin Developer
Red Hat, Inc.
mailto:vinschen at...
2002 Nov 09
1
[PATCH] Two Cygwin related patches
...ate_token = 1;
}
if (has_create_token < 1 &&
!pwd_authenticated && geteuid() != pw->pw_uid)
@@ -128,7 +174,9 @@ int check_ntsec(const char *filename)
/* Evaluate current CYGWIN settings. */
cygwin = getenv("CYGWIN");
allow_ntea = ntea_on(cygwin);
- allow_ntsec = ntsec_on(cygwin);
+ allow_ntsec = ntsec_on(cygwin) ||
+ (has_capability(HAS_NTSEC_BY_DEFAULT) &&
+ !ntsec_off(cygwin));
/*
* `ntea' is an emulation of POSIX attributes. It doesn't support